Traceback (most recent call last): File "gluon/dal.py", line 5955, in __init__ File "gluon/dal.py", line 2280, in __init__RuntimeError: Unable to import driverdb = SQLDB('mssql://username:password@\\server\instance/databasename')
pymssql.connect(host='hostname', user='username', password='password', database='database')
import pyodbccnxn = pyodbc.connect('DRIVER={SQL Server};SERVER=SERVER;DATABASE=NAME;UID=USERNAME;PWD=PASSWORD')cursor = cnxn.cursor()
I am also getting the same error when I try to setup a DB connection in Django. It is automatically putting two forward slashes on my username.
db = DAL('mssql://user:password@server/db_name?DRIVER={FreeTDS}')
I have been using MSSQL from Linux for quite some time. I use FreeTDS for my driver. This is my connection string:
db = DAL('mssql://user:password@server/db_name?DRIVER={FreeTDS}')
If you need help setting up FreeTDS / unixODBC, let me know. I have some notes on how to set this up using a Ubuntu machine.dd