Article ID: 822642 - Last Review: February 9, 2004 - Revision: 1.4 How to configure the SQL Server Network Libraries by using SQL-DMOImportant This article contains information about modifying the registry.
Before you modify the registry, make sure to back it up and make sure that you
understand how to restore the registry if a problem occurs. For information
about how to back up, restore, and edit the registry, click the following
article number to view the article in the Microsoft Knowledge Base: 256986
(http://support.microsoft.com/kb/256986/
)
Description of the Microsoft Windows Registry On This PageSUMMARYThis article describes how to programmatically enable or disable the SQL Server network
libraries for an instance of Microsoft SQL Server 2000 by using SQL Distributed
Management Objects (SQL-DMO). MORE INFORMATION SQL Server 2000 uses the server network libraries to shield
the database engine from the details of communication with different
Interprocess Communication (IPC) components by extending the server network
libraries support to different protocols. SQL Server installs a network library
on the client and on the server for each protocol. The client application and
SQL Server use these network libraries to communicate with each
other. Here is a list of the server network libraries that are available for SQL Server 2000.
Generally, you use the Server Network utility that is provided with SQL Server 2000 to configure the server network libraries. However, you may have to configure the server network libraries programmatically for some SQL Server applications. You can programmatically configure the server network libraries by using the Registry2 object of the SQL Distributed Management Objects (SQL-DMO) API. When you use the Registry2 object of the SQL-DMO API, you must set the SuperSocketList property of the Registry2 object to the super socket protocol list that is represented by the SQL-DMO multi-string. The following table lists the super socket protocols that correspond to each server network library. The table also lists the string value that corresponds to each super socket protocol. The string value is what you must use when you set the SuperSocketList property of the Registry2 object. Collapse this table
Note SQL Server uses these network libraries to communicate with the client applications that exist on other computers. SQL Server uses the Shared Memory network library to communicate with the applications that are on the same computer as the instance of SQL Server 2000. The Shared Memory network library is always enabled and does not have to be configured. How to enable the server network librariesWarning If you use Registry Editor incorrectly, you may cause serious problems that may require you to reinstall your operating system. Microsoft cannot guarantee that you can solve problems that result from using Registry Editor incorrectly. Use Registry Editor at your own risk. Note The following code example sets the Named Pipes (np) and the TCP/IP (tcp) network libraries for SQL Server. You can replace the server network libraries that are in the code example with the server network libraries that you want. To enable the server network libraries, follow these steps:
How to disable the server network librariesWarning If you use Registry Editor incorrectly, you may cause serious problems that may require you to reinstall your operating system. Microsoft cannot guarantee that you can solve problems that result from using Registry Editor incorrectly. Use Registry Editor at your own risk. To disable all the server network libraries, set the SuperSocketList property to an empty string. To do so, follow these steps:
How to verify the SQL Server network libraries settingsTo verify what SQL Server network libraries are enabled, follow these steps:
REFERENCESFor more information about how to connect to an instance of
SQL Server, visit the following Microsoft Web site: For additional information about the Registry2 object, visit the following Microsoft Web sites: Registry2
Object
(http://msdn.microsoft.com/en-us/library/aa276033.aspx)
SuperSocketList Property (http://msdn.microsoft.com/en-us/library/aa227734.aspx)
| Article Translations
|
Back to the top
