MsSqlConnectionParameters Class

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

Namespace: DevExpress.DataAccess.ConnectionParameters

Assembly: DevExpress.DataAccess.v21.2.dll

Declaration

public class MsSqlConnectionParameters :
    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.

The following code snippets (auto-collected from DevExpress Examples) contain references to the MsSqlConnectionParameters class.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also