Language

SqlAuthenticationMethod Enum

Definition

Describes the different SQL authentication methods that can be used by a client connecting to Azure SQL Database. For details, see Connecting to SQL Database By Using Azure Active Directory Authentication.

For new development, use Microsoft.Data.SqlClient. This page documents System.Data.SqlClient.

public enum class SqlAuthenticationMethod
public enum SqlAuthenticationMethod
type SqlAuthenticationMethod = 
Public Enum SqlAuthenticationMethod
Inheritance
SqlAuthenticationMethod

Fields

Name Value Description
NotSpecified 0

The authentication method is not specified.

For new development, use Microsoft.Data.SqlClient. This page documents System.Data.SqlClient.

SqlPassword 1

The authentication method is Sql Password.

For new development, use Microsoft.Data.SqlClient. This page documents System.Data.SqlClient.

ActiveDirectoryPassword 2

The authentication method uses Active Directory Password. Use Active Directory Password to connect to a SQL Database using an Azure AD principal name and password.

For new development, use Microsoft.Data.SqlClient. This page documents System.Data.SqlClient.

ActiveDirectoryIntegrated 3

The authentication method uses Active Directory Integrated. Use Active Directory Integrated to connect to a SQL Database using integrated Windows authentication.

For new development, use Microsoft.Data.SqlClient. This page documents System.Data.SqlClient.

ActiveDirectoryInteractive 4

The authentication method uses Active Directory Interactive. Available since .NET Framework 4.7.2.

For new development, use Microsoft.Data.SqlClient. This page documents System.Data.SqlClient.

Applies to