Closed idontgetoutmuch closed 3 years ago
Are you mixing driver managers? Which one is pyODBC loading? It is usually built to link with unixODBC, not iODBC.
Good point - I will look - but it shouldn't matter should it? The odbc.ini file is the same irrespective of which driver manager gets used?
UPDATE: It is being built using unixODBC. Does unixODBC not do tracing?
Where it looks for odbc.ini and odbcinst.ini depends what the driver manager was built with. For unixODBC you can run odbcinst -j
to find out. The unixODBC tracing options are in odbcinst.ini.
See documentation here https://github.com/mkleehammer/pyodbc/wiki/Troubleshooting-%E2%80%93-Generating-an-ODBC-trace-log
👍
Please first make sure you have looked at:
Environment
To diagnose, we usually need to know the following, including version numbers. On Windows, be sure to specify 32-bit Python or 64-bit:
Issue
I have
And my odbci.ini file is
If I use
iodbctest "DSN=Laetitia"
then I get a trace file as expected but when I use the above python I see nothing.