I am trying to connect to an Azure (mssql server) using Python and pypyodbc, but I am getting an error messsage that reads "pypyodbc.ProgrammingError: ('', 'SQL_ERROR')"
I have tried many different ways to make the connection, but it gives the same error everytime. Using Tableau for instance, I can get into the DB, so my credentials do work.
pypyodbc.connect("DRIVER={SQL Server};server='tcp:mssql-server',Database='analytics',uid='me@analytics',pw='secret'")
or
pypyodbc.connect('Driver={SQL Server};Server=tcp:mssqlserver;Database=analytics;UID=me@analytics;PWD=secret')
or
pypyodbc.connect('Driver={SQL Server};Server=tcp:mssqlserver;Database=analytics;Uid=me@analytics;Pwd=secret;')
And quite a few others that look like this, but with different quote types, different capitals etcetera, but it doesn't even matter which credentials I put in there, it just gives a programming error no matter what I do. Do I need to install other packages to make pypyodbc work maybe? I checked the package using 'dir' and that shows the entire content including the connect function.
Can anyone see what crucial part I am missing?