Can connect with database using Azure Studio not with ODBC
Hamish HFL
5
Reputation points
Please provide the following details to your technical contact:
- Error Details: The exact error: [Microsoft][ODBC Driver 18 for SQL Server][SQL Server]Failed to authenticate the user '******@highlandfarms.net' in Entra ID (Authentication option is 'ActiveDirectoryInteractive'). Error code 0x534; state 11.
- Setup Overview: The database PWYBE on server pwybe.database.windows.net is an Azure SQL Database with AAD-only authentication, configured with ******@highlandfarms.net as the admin. The user was created with db_owner permissions, and firewall rules include the client IP.
- Past Attempts: Previous ODBC tests failed with similar authentication errors, despite verifying admin rights and adjusting connection policies and firewall settings. Registry changes and independent tests were attempted without success.
- Current Environment: Using ODBC Driver 18.05.0001, Windows ODBC Data Source Administrator, and a DSN targeting PWYBE.
- Additional Context: The same credentials (******@highlandfarms.net) were successfully used to access SSMS, SSMA, Azure Data Studio, Visual Studio Code, and Power BI with no issues, suggesting the problem is specific to the ODBC configuration or driver.
- Suspected Issues: Possible local firewall block on port 1433, AAD credential or MFA issue, or Azure configuration mismatch specific to the ODBC driver.
- Request: Assistance in diagnosing the AAD authentication failure, checking network connectivity (port 1433), and validating the ODBC setup. Suggest testing with SSMS or Azure Data Studio using the same credentials for comparison to isolate the issue.
Azure SQL Database
Azure SQL Database
An Azure relational database service.
6,319 questions
Sign in to answer