У меня проблемы с использованием pymssql 1.9.908 на моем windows 2k3 x64.Я использовал приведенные ниже коды для проверки простого запроса.Однако я получаю эту ошибку:
Traceback (most recent call last):
File "<pyshell#5>", line 1, in <module>
cur.execute('SELECT * from tbl_staticDetails')
File "pymssql.pyx", line 296, in pymssql.Cursor.execute (pymssql.c:3246)
OperationalError: SQL Server message 4004, severity 16, state 1, line 1:
Unicode data in a Unicode-only collation or ntext data cannot be sent to clients using DB-Library (such as ISQL) or ODBC version 3.7 or earlier.
DB-Lib error message 4004, severity 16:
General SQL Server error: Check messages from the SQL Server
Вот мой пример кода, введенный в IDLE:
>>> import pymssql
>>> conn = pymssql.connect(host='<IP reachable by my machine>', user='sa', password='<password>', database='<database nbame>')
>>> cur = conn.cursor()
>>> cur.execute('SELECT * from tbl_staticDetails')
Любые идеи очень ценятся.Большое спасибо!