Edit

Share via


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.

C#
public enum SqlAuthenticationMethod
Inheritance
SqlAuthenticationMethod

Fields

Name Value Description
NotSpecified 0

The authentication method is not specified.

SqlPassword 1

The authentication method is Sql Password.

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.

ActiveDirectoryIntegrated 3

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

ActiveDirectoryInteractive 4

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

Applies to

Product Versions
.NET Framework 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1