I've always setup a sql server login specific to my app. The "active 
directory" integrated mode doesn't seem to sit too well with Web2Py and 
MSSQL. 

On Monday, May 21, 2012 1:08:59 PM UTC-7, Random wrote:
>
> 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.
>
> On Monday, May 21, 2012 1:48:34 PM UTC-5, Random wrote:
>>
>> Hello everyone,
>>
>> It seems that I'm unable to connect to a mssql database.  I am getting 
>> the error:
>>
>> 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 driver
>>
>> when using the connection string:
>>
>> db = SQLDB('mssql://username:password@\\server\instance/databasename')
>>
>> However I am able to connect using pymssql module in regular Python 2.7 
>> using the connection string (with the same credentials):
>>
>> pymssql.connect(host='hostname', user='username', password='password', 
>> database='database')
>>
>> Any ideas?  Thanks in advance.
>>
>>

Reply via email to