DacServices Constructors

Definition

Overloads

DacServices(String)

Construct a new instance of the DacServices class that operates against the database specified by the supplied connection string.

DacServices(String, IUniversalAuthProvider)

Construct a new instance of the DacServices class that operates against the database specified by the supplied connection string and authentication provider.

DacServices(String, SecureString)

Construct a new instance of the DacServices class that operates against the database specified by the supplied connection string.

DacServices(String)

Construct a new instance of the DacServices class that operates against the database specified by the supplied connection string.

public DacServices (string connectionString);
new Microsoft.SqlServer.Dac.DacServices : string -> Microsoft.SqlServer.Dac.DacServices
Public Sub New (connectionString As String)

Parameters

connectionString
String

String that supplies connection information for the database connection used by this instance.

Exceptions

If connectionString is a null reference.

If the supplied connectionString is not valid.

Applies to

DacServices(String, IUniversalAuthProvider)

Construct a new instance of the DacServices class that operates against the database specified by the supplied connection string and authentication provider.

public DacServices (string connectionString, Microsoft.SqlServer.Dac.IUniversalAuthProvider authProvider);
new Microsoft.SqlServer.Dac.DacServices : string * Microsoft.SqlServer.Dac.IUniversalAuthProvider -> Microsoft.SqlServer.Dac.DacServices
Public Sub New (connectionString As String, authProvider As IUniversalAuthProvider)

Parameters

connectionString
String

String that supplies connection information for the database connection used by this instance.

authProvider
IUniversalAuthProvider

Provide the up-to-date access token for AAD Universal Login (smartcard, phone, etc)

Exceptions

If connectionString is a null reference. If authProvider is a null reference.

If the supplied connectionString is not valid.

Applies to

DacServices(String, SecureString)

Construct a new instance of the DacServices class that operates against the database specified by the supplied connection string.

public DacServices (string connectionString, System.Security.SecureString password);
new Microsoft.SqlServer.Dac.DacServices : string * System.Security.SecureString -> Microsoft.SqlServer.Dac.DacServices
Public Sub New (connectionString As String, password As SecureString)

Parameters

connectionString
String

String that supplies connection information for the database connection used by this instance.

password
SecureString

SecureString that supplies password for the database connection used by this instance.

Exceptions

If connectionString is a null reference.

If the supplied connectionString is not valid.

Applies to