Invalid value specified for connection string attribute 'PWD' for access token > 128 characters #1195
-
I am trying to connect to MSOLAP cubes in Azure AS using pyodbc. As per a documentation by Microsoft, I'm generating the "bearer access token" and providing it to "PWD" in the connection string. But there is no way to limit the number of characters in the bearer access token! Please help me in troubleshooting this |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Where? Do you have a link to that? Indeed there is a limit on how long a password can be, and that's highly unlikely to change. If this is an Azure AD access token, it doesn't go there but in a connection attribute (SQL_COPT_SS_ACCESS_TOKEN). More details here: #228 |
Beta Was this translation helpful? Give feedback.
SQL/Azure AS (XMLA) is a completely different protocol from regular SQL Server/Azure SQL (TDS), and has nothing whatsoever to do with ODBC. As I said before ,what you're trying to do has no chance of working.