ServerConnection Constructor (SqlConnection)

Initializes a new instance of the ServerConnection class with the specified connection parameters.

Namespace: Microsoft.SqlServer.Management.Common
Assembly: Microsoft.SqlServer.ConnectionInfo (in microsoft.sqlserver.connectioninfo.dll)

Syntax

'Declaration
Public Sub New ( _
    sqlConnection As SqlConnection _
)
public ServerConnection (
    SqlConnection sqlConnection
)
public:
ServerConnection (
    SqlConnection^ sqlConnection
)
public ServerConnection (
    SqlConnection sqlConnection
)
public function ServerConnection (
    sqlConnection : SqlConnection
)

Parameters

  • sqlConnection
    A SqlConnection system object that specifies connection parameters associated with the referenced connection.

Remarks

This namespace, class, or member is supported only in version 2.0 of the Microsoft .NET Framework.

Platforms

Development Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server 2005.

Target Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server 2005.

See Also

Reference

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

Other Resources

Connecting to an Instance of SQL Server