共用方式為


ServerConnection Constructor

Initializes a new instance of the ServerConnection class.

備註

只有 Microsoft .NET Framework 2.0 版支援此命名空間、類別或成員。

多載清單

名稱 Description
ServerConnection ()
Initializes a new instance of the ServerConnection class.
ServerConnection (SqlConnection)
Initializes a new instance of the ServerConnection class with the specified connection parameters.
ServerConnection (SqlConnectionInfo)
Initializes a new instance of the ServerConnection class with the specified connection information.
ServerConnection (String)
Initializes a new instance of the ServerConnection class with the specified server instance.
ServerConnection (String, String, SecureString)
Initializes a new instance of the ServerConnection class with the specified server instance and logon credentials.
ServerConnection (String, String, String)
Initializes a new instance of the ServerConnection class with the specified server instance and logon credentials.

請參閱

參考

ServerConnection Class
ServerConnection Members
Microsoft.SqlServer.Management.Common Namespace

其他資源

How to: Connect to the Local Instance of SQL Server by Using Windows Authentication in Visual Basic .NET
Connecting to an Instance of SQL Server