Skip to main content
All docs
V25.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.v25.1.dll

    NuGet Package: DevExpress.DataAccess

    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