The information in this article applies to:
SUMMARYThis article discusses where you can find information on specifying the network parameters when you configure ODBC data sources for the Microsoft SQL Server ODBC Driver. This information applies only to the Microsoft SQL Server ODBC Driver; users of other vendors' SQL Server drivers should consult the vendors' documentation for those drivers. MORE INFORMATION
The Microsoft SQL Server ODBC driver uses the same basic mechanism to
establish connections to SQL Server as is used by applications using SQL
Server's proprietary DBLIB API. Both DBLIB clients and the Microsoft SQL
Server ODBC driver communicate to the underlying network through a SQL
Server network library. There is a network library for each of the network
protocols SQL Server can use for client/server communications. The purpose
of the network library is to take generic requests from DBLIB or the ODBC
driver and encapsulate those requests in the packets of the underlying
network. When you configure an ODBC data source for the Microsoft driver,
you must provide the driver with the same information regarding network
libraries as you provide to DBLIB applications.
It is important that data sources you define for the Win32 SQL Server driver always reference a Win32 network library, and data sources for the Win16 SQL Server driver always reference Win16 network libraries:
The connection information from an ODBC data source is stored in the same location and format as a Client Configuration Utility advanced client entry. After you define an ODBC DSN, its connection entry will show up as an advanced entry in the Client Configuration Utility, and DBLIB clients could use the server name to connect to SQL Server. There are a couple of special cases regarding the parameters for ODBC data sources. If you want a data source that will always connect to a server using the current default network library defined with the Client Configuration Utility, you should specify:
where <servername> is the network name of the Windows NT server running SQL Server. Any DSN set up this way should work at sites that have not installed the SQL Server Client Utilities because the ODBC driver will default to the named pipes network library, which is installed by all products that install the Microsoft driver. If the ODBC application is on the same server as SQL Server, the following data source will connect using local named pipes:
NOTE: (local) and (default) should be keyed in exactly as shown, including the parenthesis. Additional query words: 2.50 sql6 windows nt net-lib dblib
Keywords : kbnetwork kbother SSrvLAN SSrvNet_Lib |
Last Reviewed: April 10, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |