Share via


SMOServerConn Constructors

Definition

Initializes a new instance of the SMOServerConn class.

Overloads

SMOServerConn()

Initializes a new instance of the SMOServerConn class.

SMOServerConn(Boolean, String, String)

Initializes a new instance of the SMOServerConn class, initializing the authentication mode, user name, and password.

SMOServerConn(Boolean, String, String, String)

Initializes a new instance of the SMOServerConn class, initializing the authentication mode, user name, password, and server.

SMOServerConn()

Initializes a new instance of the SMOServerConn class.

public:
 SMOServerConn();
public SMOServerConn ();
Public Sub New ()

Applies to

SMOServerConn(Boolean, String, String)

Initializes a new instance of the SMOServerConn class, initializing the authentication mode, user name, and password.

public:
 SMOServerConn(bool bUseWindowsAuthentication, System::String ^ UserName, System::String ^ Password);
public SMOServerConn (bool bUseWindowsAuthentication, string UserName, string Password);
new Microsoft.SqlServer.Dts.ManagedConnections.SMOServerConn : bool * string * string -> Microsoft.SqlServer.Dts.ManagedConnections.SMOServerConn
Public Sub New (bUseWindowsAuthentication As Boolean, UserName As String, Password As String)

Parameters

bUseWindowsAuthentication
Boolean

A Boolean that specifies whether the connection manager uses Windows Authentication. true if Windows Authentication is used.

UserName
String

The user name that the connection manager uses.

Password
String

The password that the connection manager uses.

Applies to

SMOServerConn(Boolean, String, String, String)

Initializes a new instance of the SMOServerConn class, initializing the authentication mode, user name, password, and server.

public:
 SMOServerConn(bool bUseWindowsAuthentication, System::String ^ UserName, System::String ^ Password, System::String ^ SqlServerName);
public SMOServerConn (bool bUseWindowsAuthentication, string UserName, string Password, string SqlServerName);
new Microsoft.SqlServer.Dts.ManagedConnections.SMOServerConn : bool * string * string * string -> Microsoft.SqlServer.Dts.ManagedConnections.SMOServerConn
Public Sub New (bUseWindowsAuthentication As Boolean, UserName As String, Password As String, SqlServerName As String)

Parameters

bUseWindowsAuthentication
Boolean

A Boolean that specifies whether the connection manager uses Windows Authentication. true if Windows Authentication is used.

UserName
String

The user name that the connection manager uses.

Password
String

The password that the connection manager uses.

SqlServerName
String

The name of the server to which you want to make the SMO connection.

Applies to