I try to import data to my MSSQL database, however sometimes(! around 9 of 10 times) the code crashes on a Python x64 platform.
[HY090] [Microsoft][ODBC Driver Manager] Invalid string or buffer length
The same code runs fine on 32-bit.
The code gets problems on running sqlGetTypeInfo with SQL_TIMESTAMP(93):
connection="DRIVER={SQL Server Native Client 11.0};SERVER=%s;DATABASE=%s;UID=%s;PWD=%s"%((db["SQL_SERVER"],db["db"],db["user"],db["pwd"]))
conn=pypyodbc.connect(connection)
cur=conn.cursor()
print cur.getTypeInfo(93)
I am running pypyodbc 1.3.3, Python 2.7, MSSQL 2008 and 2012, and my ODBC.dll is 6.1.7601.17514 for both 64/32 bit
How to make it run on Python x64?