Udostępnij za pośrednictwem


SqlConnectionInfo Constructors

Definition

Overloads

SqlConnectionInfo()

Initializes a new instance of the SqlConnectionInfo class.

SqlConnectionInfo(String, String, String, String, Nullable<Boolean>, String, Nullable<Boolean>, String)

Initializes a new instance of the SqlConnectionInfo class.

SqlConnectionInfo()

Initializes a new instance of the SqlConnectionInfo class.

public SqlConnectionInfo ();
Public Sub New ()

Applies to

SqlConnectionInfo(String, String, String, String, Nullable<Boolean>, String, Nullable<Boolean>, String)

Initializes a new instance of the SqlConnectionInfo class.

public SqlConnectionInfo (string dataSource, string userName = default, string password = default, string authentication = default, bool? encryptConnection = default, string additionalSettings = default, bool? trustServerCertificate = default, string platform = default);
new Microsoft.Azure.Management.DataMigration.Models.SqlConnectionInfo : string * string * string * string * Nullable<bool> * string * Nullable<bool> * string -> Microsoft.Azure.Management.DataMigration.Models.SqlConnectionInfo
Public Sub New (dataSource As String, Optional userName As String = Nothing, Optional password As String = Nothing, Optional authentication As String = Nothing, Optional encryptConnection As Nullable(Of Boolean) = Nothing, Optional additionalSettings As String = Nothing, Optional trustServerCertificate As Nullable(Of Boolean) = Nothing, Optional platform As String = Nothing)

Parameters

dataSource
String

Data source in the format Protocol:MachineName\SQLServerInstanceName,PortNumber

userName
String

User name

password
String

Password credential.

authentication
String

Authentication type to use for connection Possible values include: 'None', 'WindowsAuthentication', 'SqlAuthentication', 'ActiveDirectoryIntegrated', 'ActiveDirectoryPassword'

encryptConnection
Nullable<Boolean>

Whether to encrypt the connection

additionalSettings
String

Additional connection settings

trustServerCertificate
Nullable<Boolean>

Whether to trust the server certificate

platform
String

Server platform type for connection Possible values include: 'SqlOnPrem'

Applies to