Code: Select all
sudo apt-get install unixodbc python-pyodbc
Code: Select all
import pyodbc
connectionDbServer = pyodbc.connect(driver='{SQL Server}', server='***.***.***.***', database='***', uid='***', pwd='***')
cursorDbServer = connectionDbServer.cursor()
cursorDbServer.execute("xxxxxxx")
cursorDbServerRows = cursorDbServer.fetchall()
print cursorDbServerRows
connectionDbServer.close()
Code: Select all
pyodbc.Error: ('IM002', '[IM002] [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified (0) (SQLDriverConnectW)')
Is there some thing else I need to do in here to make this work please help.
Thanks.