INF: SQL Server Drivers' Use of ODBC.INI and WIN.INI Files |
Q110474
1.01.2807This article discusses the connection mechanics of the SQL Server driver version 1.01.2807 and later. It shows how the various .INI file entries are used to make the connection and also how entries are made in the WIN.INI file when installing a data source with the driver.
The following ODBC.INI and WIN.INI files will be used in this section:
[ODBC Data Sources]
InventorySQL=SQL Server
[InventorySQL]
Driver=C:\WINDOWS\SYSTEM\sqlsrvr.dll
Description=Inventory server for Corp.
Server=INVSQL
OemToAnsi=No
[SQL Server]
INVSQL=dbmsspx3,INVSQL
When the SQL Server driver is loaded by the Driver Manager, because the
InventorySQL data source has been chosen by the user, the SQL Server driver
determines the server name by looking up the SERVER entry in the section
for InventorySQL from the ODBC.INI file. The SQL Server driver then looks
at the WIN.INI file[ASCII 146]s SQL Server Section to find an entry for INVSQL.
[SQL Server]
DSQUERY=dbmsspx3
Furthermore, if there were no entry for INVSQL in the WIN.INI file and if
the DSQUERY entry does not exist in the WIN.INI file either, the SQL Server
driver will by default load DBNMP3.DLL.
Additional query words: 1.01.2807
Keywords :
Issue type :
Technology : kbAudDeveloper kbODBCSearch kbODBC100
|
Last Reviewed: August 26, 1999 © 2001 Microsoft Corporation. All rights reserved. Terms of Use. |