Dynamic logging support without ODBC driver manager tracing

Starting with Adaptive Server Enterprise ODBC Driver 15.7 ESD #4, you can dynamically enable or disable the application logging during application execution by setting the SQL_OPT_TRACE environment attribute. Valid values are 0 (default) to disable or 1 to enable.

// enable logging
SQLSetEnvAttr(0, SQL_OPT_TRACE, (SQLPOINTER)1,
  SQLINTEGER);
// disable logging
SQLSetEnvAttr(0, SQL_OPT_TRACE, (SQLPOINTER)0,
  SQLINTEGER);