I am very new to Python, and I have Python 3.2 installed on a Win 7-32 workstation. An attempt was made to connect to the MSSQLServer 2005 Server using adodbapi-2.4.2.2, the latest update for this package.
The line of code / connection is as follows:
conn = adodbapi.connect ('Provider = SQLNCLI.1; Integrated Security = SSPI; Persist Security Info = False; Start Directory = XXX; Data Source = 123.456.789');
From adodbapi I constantly get an error (this is a complete error message from the Wing IDE shell):
Traceback (last last call): File "D: \ Program Files \ Wing IDE 4.0 \ src \ debug \ tserver_sandbox.py", line 2, in if name == ' main : File "D: \ Python32 \ Lib \ site- packages \ adodbapi \ adodbapi.py ", line 298, in a connection raise InterfaceError #Probably COM Error adodbapi.adodbapi.InterfaceError:
I can track the code and see the exception as it happens.
I also tried using connectors with an OLEDB provider and an integrated Windows security system with the same results.
All these connection strings work fine from the UDL file on my workstation and from SSMS, but with the same error in adodbapi, a crash occurs.
How to fix it?
source share