Im trying to run a script i wrote on a Ubuntu Server.
Im using pypyodbc to connect to a database on a server in the script, and it works great on Windows.
When im trying to run it on my Ubuntu Server i get the following error:
pypyodbc.Error: (u'IM002', u'[IM002] [unixODBC][Driver Manager]Data source name not found, and no default driver specified')
This is my connectionstring:
DRIVER = "DRIVER={SQL Server};"
SERVER = "SERVER=servername;"
UID = "UID=userid;"
PWD = "PWD=password;"
DATABASE = "DATABASE=database_name;"
connection = pypyodbc.connect(DRIVER + SERVER + DATABASE + UID + PWD)
What have i done wrong? Any thoughts?
Best Regards.