Wierd non-text error message when trying to connect via pyodbc

Connectivity
N/A

Wierd non-text error message when trying to connect via pyodbc

My code:

import pyodbc
td_connstr = "DRIVER={Teradata};DBCNAME=%s;UID=%s;PWD=%s;DATABASE=%s;QUIETMODE=YES;" % (my_credentials)
pyodbc.pooling = False
td_conn = pyodbc.connect(td_connstr)

I get an error message:

 File "<stdin>", line 1, in <module>

pyodbc.Error: ('632', '[632] 523 630 (0) (SQLDriverConnect)')

I'm using Python 2.7.3, pyodbc version 3.0.7, and version 15.00 of the Teradata drivers.

Some of the pages I've already looked at, without finding an answer to my question:



Has anyone else seen the above error? If so, did you find a solution?

Thanks.

1 REPLY

Re: Wierd non-text error message when trying to connect via pyodbc

hi just set

 ODBCINI=/opt/teradata/client/ODBC_64/odbc.ini

and try ,It should work.