We are try to load some data from azure sql to pandas, here are the code:
conn = pyodbc.connect("DRIVER={SQL Server};Server=tcp:xxx.database.windows.net,1433;Initial Catalog=Database;UID=******@xxx.onmicrosoft.com;PWD=xxx;Authentication=ActiveDirectoryPassword;MultipleActiveResultSets=False;")
Then get such error: [HY000] [Microsoft][ODBC SQL Server Driver][SQL Server]Cannot open server "xxx.onmicrosoft.com" requested by the login. The login failed. (40532) (SQLDriverConnect);
But if I remove the "Authentication=ActiveDirectoryPassword" and use a SQL account it will be success, maybe you will say "Hey, why don't you use SQL authoration, dude." well, considering about some security facts we gonna enable the "Azure AD-only authentication" and the SQL authoration will no longer be available soon.