大网数据广告活动
Windows 系统接口

ConnectTo

· 52CE 我爱测

HKLM\SOFTWARE\Microsoft\MSSQLServer\Client.

HKLM\SOFTWARE\Microsoft\MSSQLServer\Client

Description

The ConnectTo subkey stores connection information for Windows-based clients that connect to instances of the Microsoft SQL Server database engine. Registry entries in this subkey are of data type REG_SZ, and their values specify the Net-Library to use for connecting to the instance, as well as any network-specific parameters.

The connection information stored in this subkey is read by the OLE DB Provider for SQL Server, the SQL Server ODBC driver, or the SQL Server DB-Library dynamic-link library (DLL).

Change Method

You should not modify entries in this subkey by using the registry editor. Use the SQL Server Client Network Utility to configure server name and connection information. See SQL Server Client Network Utility Help for further instructions.

Notes

  • The ConnectTo subkey is used by the OLE DB Provider for SQL Server, the SQL Server ODBC Driver, and the SQL Server DB-Library DLL. Entries in this subkey identify which Net-Library these data access application programming interface (API) components call.
  • Net-Libraries are SQL Server components that shield the data access API components from the details of using different Interprocess Communication (IPC) methods to communicate with an instancess of the SQL Server database engine.
  • Improperly updating the ConnectTo subkey might prevent applications from successfully connecting to an instance of the SQL Server database engine.

Source: Microsoft Learn / Windows Win32 documentation by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.

资料来源与适用范围

资料来源
Microsoft Learn / Windows Win32 documentation
适用范围
Windows Win32 API · Source date 05/31/2018
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。