다음을 통해 공유


Server Constructors

Definition

Overloads

Server()
Server(ServerConnection)

Constructs a new Server object that relies on the given ServerConnection for connectivity.

Server(String)

Server()

public Server ();
Public Sub New ()

Applies to

Server(ServerConnection)

Constructs a new Server object that relies on the given ServerConnection for connectivity.

public Server (Microsoft.SqlServer.Management.Common.ServerConnection serverConnection);
new Microsoft.SqlServer.Management.Smo.Server : Microsoft.SqlServer.Management.Common.ServerConnection -> Microsoft.SqlServer.Management.Smo.Server
Public Sub New (serverConnection As ServerConnection)

Parameters

serverConnection
ServerConnection

Remarks

If serverConnection.ConnectAsUser is true, its NonPooledConnection property must also be true. Otherwise, Server may attempt to duplicate the ServerConnection without preserving the ConnectAsUser parameters, leading to either failed connections or connections as the incorrect user when using integrated security.

Applies to

Server(String)

public Server (string name);
new Microsoft.SqlServer.Management.Smo.Server : string -> Microsoft.SqlServer.Management.Smo.Server
Public Sub New (name As String)

Parameters

name
String

Applies to