SqlAuthenticationMethod Enumeration
On this page
Determines the authentication method to use when connecting to SQL Azure.
Syntax
Members
| Member | Description |
| ActiveDirectoryDefault | The authentication method uses Active Directory Default. Use this mode to connect to a SQL Database by using multiple non-interactive authentication methods, which are tried sequentially to acquire an access token. This method does not fall back to Active Directory Interactive authentication method. |
| ActiveDirectoryDeviceCodeFlow | The authentication method that uses Active Directory Device Code Flow. Use the method to connect to a SQL database from devices and operating systems that don't provide a web browser by using another device to perform interactive authentication. |
| ActiveDirectoryIntegrated | Active Directory Integrated authentication is used. |
| ActiveDirectoryInteractive | Active Directory Interactive authentication is used. |
| ActiveDirectoryManagedIdentity | The authentication method uses Active Directory Managed Identity. Use System Assigned or User Assigned Managed Identity to connect to a SQL Database from Azure client environments that support Managed Identity. For User Assigned Managed Identity, set User Id or UID to the client ID of the user-assigned identity. |
| ActiveDirectoryMSI | Alias for Active Directory Managed Identity authentication method. Use System Assigned or User Assigned Managed Identity to connect to a SQL Database from Azure client environments that support Managed Identity. For User Assigned Managed Identity, set User Id or UID to the client ID of the user-assigned identity. |
| ActiveDirectoryPassword | Azure Active Directory principal name and password are used. |
| ActiveDirectoryServicePrincipal | The authentication method that uses Active Directory Service Principal. Use the method to connect to a SQL Database using the client ID and secret of a service principal identity. |
| ActiveDirectoryWorkloadIdentity | The authentication method uses Active Directory Workload Identity. Use federated User Assigned Managed Identity to connect to a SQL Database from Azure client environments that support Workload Identity. Set User Id or UID to the client ID of the user-assigned identity. |
| NotSpecified | The authentication method is not specified. |
| SqlPassword | SQL password is used. |
Inheritance Hierarchy
System.Object
System.ValueType
System.Enum
Devart.Data.SqlServer.SqlAuthenticationMethod
See Also