hi,
i have an sql server 2005 database, and a username. with a software called navicat, i can connect there remotely and i can create tables.
actually i have to access there via python and database api 2.0, here i share the user name and password too:
and i got this error:
I have tried to change the database into sql server 2008, i got the same error. Anyone has any idea where am i making the mistake?
Thanks.
i have an sql server 2005 database, and a username. with a software called navicat, i can connect there remotely and i can create tables.
actually i have to access there via python and database api 2.0, here i share the user name and password too:
Code:
import adodbapi ConnectionString = "Provider=SQLOLEDB.1;Data Source=sql2002.shared-servers.com,1086;Initial Catalog=ableton;User ID=ableton;Password=miklagard1;Trusted_Connection=False;" conn = adodbapi.connect(ConnectionString)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Library/Frameworks/Python.framewor k/Versions/2.7/lib/python2.7/site-packages/adodbapi/adodbapi.py", line 298, in connect
raise InterfaceError #Probably COM Error
adodbapi.adodba pi.InterfaceErr or
File "<stdin>", line 1, in <module>
File "/Library/Frameworks/Python.framewor k/Versions/2.7/lib/python2.7/site-packages/adodbapi/adodbapi.py", line 298, in connect
raise InterfaceError #Probably COM Error
adodbapi.adodba pi.InterfaceErr or
I have tried to change the database into sql server 2008, i got the same error. Anyone has any idea where am i making the mistake?
Thanks.
Comment