PRB: 16-bit Installer May Create Bad ODBCINST.INI & ODBC.INIID: Q141596
|
When a 16-bit Installer, that is, ODBCINST.DLL, is used to install 16-bit
drivers on a Windows NT computer without any ODBC components,
SQLInstallODBC will fail and a bad ODBCINST.INI file will be created.
If the ODBC.INF file contains data source information, SQLInstallODBC
fails with one more bad ODBC.INI file.
If SQLConfigDataSource is called after SQLInstallODBC, instead of
specifying data source information in the ODBC.INF,
SQLConfigDataSource will fail with the same result.
One symptom is that, after the installation, driver information will not
be available when you click "About," and no data source is listed in the
data source window in the 16-bit ODBC Administrator.
The following are examples of bad ODBCINST.INI and ODBC.INI files. You can
see that newline characters are missing from the last comment line:
++++++++++++ Beginning of ODBCINST.INI +++++++++++++++++++++
;-------------------------------------------------------------------------
; WARNING:Do not make changes to this file without using the ODBC Control
; panel device or other utilities provided for maintaining data
; sources.
;
; Incorrect changes to this file could prevent ODBC from
; operating or operating correctly.
;-------------------------------------------------------------------------
[Microsoft Access Driver (*.mdb)]
Driver=C:\WINNT35\SYSTEM\odbcjt16.dll
Setup=C:\WINNT35\SYSTEM\odbcjt16.dll
SQLLevel=0
FileExtns=*.mdb
FileUsage=2
DriverODBCVer=02.01
ConnectFunctions=YYN
APILevel=1
.
.
.
++++++++++++ End of ODBCINST.INI +++++++++++++++++++++
++++++++++++ Beginning of ODBC.INI +++++++++++++++++++++
;-------------------------------------------------------------------------
; WARNING:Do not make changes to this file without using the ODBC Control
; panel device or other utilities provided for maintaining data
; sources.
;
; Incorrect changes to this file could prevent ODBC from
; operating or operating correctly.
;-------------------------------------------------------------------------
[ODBC Data Sources]
MyAccess=Microsoft Access Driver (*.mdb)
[MyAccess]
Driver=C:\WINNT35\SYSTEM\odbcjt16.dll
DriverId=25
FIL=MS Access;
JetIniPath=odbcddp.ini
UID=admin
++++++++++++ End of ODBC.INI +++++++++++++++++++++
Additional query words: odbc vc SQLInstallODBC SQLConfigDataSource
Keywords : kbprg ODBC
Version : 2.0 2.1
Platform : WINDOWS
Issue type : kbprb
Last Reviewed: March 23, 1999