Pascale Mourier (Pascale.Mourier (AT) ecp (DOT) fr) writes:
Quote:
There are a number of choices. After some experimentation with or w/o
quotes around the values of the keyword=value pairs, the closest I got
to opening a connection is with pyodbc:
specifying: driver={SQL Server Native Client 10.0 ODBC Driver}
Is that correct? |
I don't think you have to specify the part "ODBC Driver", but I don't do
very much ODBC programming myself.
Quote:
The driver complains that it expects an ASCII character and is getting a
byte greater than 128... |
I would guess that you have a hard space, char(160) somewhere. Open your
text file in a binary editor to check for values > 7E.
--
Erland Sommarskog, SQL Server MVP, esquel (AT) sommarskog (DOT) se
Links for SQL Server Books Online:
SQL 2008: http://msdn.microsoft.com/en-us/sqlserver/cc514207.aspx
SQL 2005: http://msdn.microsoft.com/en-us/sqlserver/bb895970.aspx
SQL 2000: http://www.microsoft.com/sql/prodinf...ons/books.mspx