Using python 2.7 and the MS odbc driver through pyodbc. My connection string looks like this:
mssql+pyodbc://myuser:mypass@serverip/instancename?driver=ODBC+Driver+11+for+SQL+Server
I am getting login failed. However if I use the same credentials and "serverip\instancename" in the microsoft sql server management studio, I can connect.
The thing that is driving me crazy is a couple of days ago, this same connection string worked for me but to a different sql server instance on the same machine. So what I am trying to figure out is how to go about troubleshooting it.
Thanks for any pointers.
\) to specify an instance name, and put a database name after a forward slash (/). So maybemssql+pyodbc://myuser:mypass@serverip\instancename?driver=ODBC+Driver+11+for+SQL+Serverwould do it? - van