ODBC DSN (SQL Server 18 driver) can't connect to Azure hosted database using ActiveDirectoryServicePrincipal
Michael Aiello
0
Reputation points
I have an ODBC DSN set up using SQL Server ODBC driver 2018.184.01.01. I can connect to my Azure hosted database using this DSN in Python, with the DSN, UID, PWD in the connection string. However attempting the same connection string using the C language SQLDriverConnect() function always fails, reporting:
State: CE275
[Microsoft][ODBC Driver 18 for SQL Server][SQL Server]Error requesting access token, HTTP status 400, expected 200
I am also able to create a working JDBC connection with the same credentials. Only fails from C code.
Sign in to answer