Closed prdpsvs closed 5 months ago
The driver returns several diag recs; do you see those in the ODBC trace?
I would like to capture these at the connection failure time programmatically and appropriately surface user-friendly messages. Any specific options to figure out?
I am asking if you see all the diag recs in the ODBC trace.
Environment
Issue
I am using Azure Service Principal Authentication with pyodbc. what is the best way to surface issue when user provides incorrect client id or secret. Right now, any error during connection is throwing
('HYT00', '[HYT00] [Microsoft][ODBC Driver 18 for SQL Server]Login timeout expired (0) (SQLDriverConnect)')
I tried to capture errors from azure identity SDK using
from azure.core.exceptions import ClientAuthenticationError, HttpResponseError
but no luck. Any thoughts?