Skip to main content
All docs
V24.1

MsSqlConnectionParameters(String, String, String, String, MsSqlAuthorizationType, DefaultBoolean, DefaultBoolean) Constructor

Initializes a new instance of the MsSqlConnectionParameters class with specified settings.

Namespace: DevExpress.DataAccess.ConnectionParameters

Assembly: DevExpress.DataAccess.v24.1.dll

NuGet Packages: DevExpress.DataAccess, DevExpress.Win.PivotGrid, DevExpress.Win.TreeMap

Declaration

public MsSqlConnectionParameters(
    string serverName,
    string databaseName,
    string userName,
    string password,
    MsSqlAuthorizationType authorizationType,
    DefaultBoolean encrypt,
    DefaultBoolean trustServerCertificate
)

Parameters

Name Type Description
serverName String

A String that specifies the name of the Microsoft SQL Server to which the connection should be established. This value is assigned to the SqlServerConnectionParametersBase.ServerName property.

databaseName String

A String that specifies the name of the database that contains the required data. This value is assigned to the SqlServerConnectionParametersBase.DatabaseName property.

userName String

A String that specifies the user name used to authenticate to the Microsoft SQL Server. This value is assigned to the SqlServerConnectionParametersBase.UserName property.

password String

A String that specifies the password used to authenticate to the Microsoft SQL Server. This value is assigned to the SqlServerConnectionParametersBase.Password property.

authorizationType MsSqlAuthorizationType

A MsSqlAuthorizationType value that specifies the authentication mode of the Microsoft SQL Server. This value is assigned to the MsSqlConnectionParameters.AuthorizationType property.

encrypt DefaultBoolean

A DefaultBoolean value that specifies whether all communication between the server and the client is encrypted.

trustServerCertificate DefaultBoolean

A DefaultBoolean value that indicates whether the channel will be encrypted when certificate chain bypass is performed to validate trust.

See Also