Thanks for the suggestion. It was my first clue too, but apparently it doesn't really consider what i'm writing in there. Currently my connection string is constructed this way (it was working on windows with the windows driver but i'd like to test it on a linux dev server):
def connect_db():
"""Connects to the database."""
# DB Configuration [driver, server, database, userid, password]
config = [
'DRIVER={SQL Server Native Client 10.0}',
'DATABASE=xxxxxxxxxxx',
'UID=xxxxxxxxxxxxx',
'PWD=xxxxxxxxxxx'
]
cnxn = pyodbc.connect(';'.join(config))
The problem persists with the same error message. I've got the feeling that it is a very rare case (to use mssql with python on a linux server).. A working example would be delightful.