i have been trying to connect to SQL Server (I have SQL Server 2014 installed on my machine and SQL Native Client 11.0 32bit as driver) using Python and specifically pyodbc but i did not manage to establish any connection. This is the connection string i am using:
conn = pyodbc.connect('''DRIVER={SQL Server Native Client 11.0}; SERVER=//123.45.678.910; DATABASE=name_database;UID=blabla;PWD=password''')
The error message i am getting is this:
Error: ('08001', '[08001] [Microsoft][SQL Server Native Client 11.0]Named Pipes Provider: Could not open a connection to SQL Server [161]. (161) (SQLDriverConnect)')
Now, is this caused by the fact that both Python (i have version 3.5.1) and pyodbc are 64bit while the SQL Driver is 32bit?
If yes, how do i go about solving this problem? How do i adapt pyodbc to query a 32bit database?
I am experiencing the same problem with Oracle database OraCLient11g32_home1
For your information, my machine runs Anaconda 2.5.0 (64-bit).
Any help would be greatly appreciated.Thank you very much in advance.