Use blow syntax
hdbodbc_cons.exe trace <level> <on/off>
Where levels are:
api: tracing of ODBC api calls
debug: detailed tracing of whole call stack
sql: tracing of sql commands as well as output and parameter handling
Before you trun on trace, first configure the trace file name.
C:\Program Files\sap\hdbclient>hdbodbc_cons.exe config trace filename C:\temp\hdbodbc_trace.log
To turn on/off trace use below examples
Tracing of sql commands as well as output and parameter handling
C:\Program Files\sap\hdbclient>hdbodbc_cons.exe trace sql on
C:\Program Files\sap\hdbclient>hdbodbc_cons.exe trace sql off
Detailed tracing of whole call stack
C:\Program Files\sap\hdbclient>hdbodbc_cons.exe trace debug on
C:\Program Files\sap\hdbclient>hdbodbc_cons.exe trace debug off
Tracing of ODBC api calls
C:\Program Files\sap\hdbclient>hdbodbc_cons.exe trace api on
C:\Program Files\sap\hdbclient>hdbodbc_cons.exe trace api off
Reference:-
SAP Note: 1993254 - Collecting ODBC Trace
SAP Note: 1993251 - Collecting SQLDBC Trace
To turn on/off trace use below examples
Tracing of sql commands as well as output and parameter handling
C:\Program Files\sap\hdbclient>hdbodbc_cons.exe trace sql on
C:\Program Files\sap\hdbclient>hdbodbc_cons.exe trace sql off
Detailed tracing of whole call stack
C:\Program Files\sap\hdbclient>hdbodbc_cons.exe trace debug on
C:\Program Files\sap\hdbclient>hdbodbc_cons.exe trace debug off
Tracing of ODBC api calls
C:\Program Files\sap\hdbclient>hdbodbc_cons.exe trace api on
C:\Program Files\sap\hdbclient>hdbodbc_cons.exe trace api off
Reference:-
SAP Note: 1993254 - Collecting ODBC Trace
SAP Note: 1993251 - Collecting SQLDBC Trace
Regards,
Satishbabu Gunukula, Oracle ACE