DBWEB: DbWeb Administrator Reports the Datasource is Invalid

Last reviewed: April 9, 1997
Article ID: Q154922
The information in this article applies to:
  • Microsoft dbWeb versions 1.0, 1.1

SYMPTOMS

Moderate: Requires basic macro, coding, and interoperability skills.

A sample schema works when accessed through the Web browser, but the dbWeb Administrator reports that the data source you are trying to access is either non-existent or invalid when attempting to view the schema. This produces the following error:

   Error IM002: ODBC Data Source not found

CAUSE

The dbWeb installation program creates two ODBC system data sources named dbWebSchema and dbpubs in the NT registry. Because the dbWeb Administrator is a 16-bit application, it looks for these data sources in the ODBC initialization file (ODBC.ini). When it fails to locate the data sources, the dbWeb Administrator reports that the data source is nonexistent or was not found.

RESOLUTION

The ODBC.ini file must be synchronized with the Windows NT registry.

MORE INFORMATION

To synchronize the ODBC.ini file with the NT registry, follow the steps below:

  1. Open the Control Panel by double clicking its icon in the Main program group

  2. Double-click the 32-bit ODBC Administrator Icon to launch the ODBC administrator. You can identify the 32-bit ODBC Administrator because it has a 32 in the icon. You can also launch the ODBC Manager in the dbWeb Administrator by clicking Utilities on the dbWeb menu bar and selecting ODBC Manager.

  3. Click System DSN at the bottom of the ODBC Administrator window.

  4. Click on a data source in the System Data Sources (Driver) pane of the System Data Sources Window, then click Setup.

  5. Type a comment in the Description field to modify the data source setup, then click OK.

  6. Repeat steps 4 and 5 for each System Data Source the dbWeb administrator was unable to recognize.

  7. Click Close on the System Data Sources window.

  8. Click Close on the Data Sources Window.

Adding comments to the Description field forces a refresh of the Windows NT registry and the ODBC.INI file. This enables the dbWeb Administrator to detect the list of system data sources.

Steps to Reproduce Behavior

  1. Using a text editor like Notepad, open the ODBC.ini file in the Winnt folder.

  2. Go to the [dbwebschema] section.

  3. Place a semicolon at the start of the following line:

          Driver32=C:\Winnt\System32\Odbcjt32.dll
    

  4. On the File menu, click Save.

  5. In the dbWeb program group, double-click the dbWeb Administrator.

  6. In the Data Sources window, double-click the dbwbSchema entry.

  7. Double-click the Schemas entry to open the schema for modification.

  8. The following error message appears:

          Error IM002:  ODBC Data Source not found
     
    
    
    	
    	


Keywords : kberrmsg kbusage
Version : 1.0 1.1
Platform : WINDOWS
Hardware : X86
Issue type : kbprb


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: April 9, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.