0

I tried to use the pyODBC library to connect to a ODBC data source, but always got this error:

pyodbc.Error: ('HYC00', "[HYC00] The 'SQL_AUTOCOMMIT_OFF' for the 'SQL_ATTR_AUTO COMMIT' is not implemented. (0) (SQLSetConnnectAttr(SQL_ATTR_AUTOCOMMIT))")

when use pyodbc.connect("DNS=...")

I also tried the pypyodbc library and got the same error. Any ideas? Thank you very much!

1 Answers1

3

You should specify autocommit option:

pyodbc.connect("DNS=...", autocommit=True)
Bruno Gabuzomeu
  • 1,061
  • 8
  • 9