A newer version of this page is available. Switch to the current version.

MsSqlConnectionParameters Class

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

Namespace: DevExpress.DataAccess.ConnectionParameters

Assembly: DevExpress.DataAccess.v18.2.dll


public class MsSqlConnectionParameters :
Public Class MsSqlConnectionParameters
    Inherits SqlServerConnectionParametersBase


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