Function OdbcTraceFile() Professional

Retrieves or sets the file name of the ODBC trace mode

OdbcTraceFile([<cFileName>]) --> cTraceFileName
This parameter sets the name of the file of the next trace. If the parameter is not passed, the current file name is returned only.

The function returns the current trace file name.


The ODBC driver manager provides a trace mechanism where every call to itself is recorded, including parameters and return states. This can be very helpful for troubleshooting and for enhancements to the ODBCDBE as well. After setting the output file name, a call to OdbcTraceMode(.T.) will enable the trace. As rule of thumb, the previously used file name should be restored after the trace mode was turned off.


If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.