I am using python 3.3
+ pypyodbc
. When I try:
connection = pypyodbc.connect("DRIVER{SQLServer};
SERVER=serverIP;
UID=myid;
PWD=mypwd;
DATABASE=mydb")
I get an error:
pypyodbc.DatabaseError: ('08001', '[08001]
[Microsoft]
[ODBC SQL Server Driver]
[DBNETLIB]Invalid connection.')
I know the IP and credentials are correct, I use them every day to query server using Microsoft SQL Server Management Studio Express
. What am I missing here?
Thanks.