Microsoft KB Archive/154922

= DBWEB: DbWeb Administrator Reports the Datasource is Invalid =

Article ID: 154922

Article Last Modified on 9/26/2003

-

APPLIES TO


 * Microsoft dbWeb 1.0
 * Microsoft dbWeb 1.1

-



This article was previously published under Q154922



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
 Using a text editor like Notepad, open the ODBC.ini file in the Winnt folder. Go to the [dbwebschema] section.  Place a semicolon at the start of the following line: Driver32=C:\Winnt\System32\Odbcjt32.dll  On the File menu, click Save. In the dbWeb program group, double-click the dbWeb Administrator.</li> In the Data Sources window, double-click the dbwbSchema entry.</li> Double-click the Schemas entry to open the schema for modification.</li> The following error message appears:

Error IM002: ODBC Data Source not found

</li></ol>

Keywords: kberrmsg kbprb kbusage KB154922

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.