MsSqlConnectionParameters Class

Contains parameters used to establish a connection to a Microsoft SQL Server.

Namespace: DevExpress.DataAccess.ConnectionParameters

Assembly: DevExpress.DataAccess.v19.2.dll

Declaration

public class MsSqlConnectionParameters :
    SqlServerConnectionParametersBase
Public Class MsSqlConnectionParameters
    Inherits SqlServerConnectionParametersBase

Remarks

The MsSqlConnectionParameters class instances provide the basic parameters required to establish a Microsoft SQL Server connection: the server name (SqlServerConnectionParametersBase.ServerName), database name (SqlServerConnectionParametersBase.DatabaseName), user name (SqlServerConnectionParametersBase.UserName) and password (SqlServerConnectionParametersBase.Password).

To authenticate with the SQL server account, set the MsSqlConnectionParameters.AuthorizationType property to MsSqlAuthorizationType.SqlServer and provide the credentials via the SqlServerConnectionParametersBase.UserName and SqlServerConnectionParametersBase.Password properties.

To authenticate with the Windows user account, set the MsSqlConnectionParameters.AuthorizationType property to MsSqlAuthorizationType.Windows. In this instance, the current user account credentials will be used and the SqlServerConnectionParametersBase.UserName and SqlServerConnectionParametersBase.Password properties will be ignored.

To learn more about the use of classes that provide data connection parameters, see DataConnectionParametersBase.

See Also