Skip to main content

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

Initializes a new instance of the MsSqlConnectionParameters class.

Namespace: DevExpress.DataAccess.ConnectionParameters

Assembly: DevExpress.DataAccess.v24.2.dll

Declaration

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

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.

Remarks

When the authorizationType parameter is set to MsSqlAuthorizationType.Windows, set the userName and password parameters to null (Nothing in Visual Basic).

See Also