To make debugging ODBC applications easier there is the possibility of logging all ODBC statements executed and their return values. This option can be turned on or off by using the ODBC administrator application located in the Control Panel of Microsoft Windows. If ODBC tracing is switched on all the ODBC function calls of all applications running are logged, not just the Trinc-Prolog database application(s). Below there is a screen shot of the tabpage which can be used for turning ODBC tracing on or off.
![]() |
If the error messages generated by Trinc-Prolog do not give enough information about what is going wrong then it is possible to have Trinc-Prolog display the actual ODBC error messages with error codes, etc.. To turn displaying of ODBC messages on or off use the method putDebugMode/1of the dbSession class. All ODBC error message are described in the ODBC SDK which can be downloaded for free from the website of Microsoft, see support and software requirements. Below there is an example of the kind of error message displayed.
![]() |
The catalog query methods can also be usefull to determine for instance; the data types supported by a database and properties of tables, procedures and table columns. see Catalog methods.