Reputation: 10539
I would like to use the SQL_ATTR_TRACE=SQL_OPT_TRACE_ON option of QSqlDatbase object.
QSqlDatabase db_;
db_.setConnectOptions("SQL_ATTR_TRACE=SQL_OPT_TRACE_ON");
I'm wondering where the resulting trace file is located ?
Is there a way to define the path ?
Thanks
Upvotes: 1
Views: 224
Reputation: 10539
it exists a SQL_ATTR_TRACEFILE attribute
db_.setConnectOptions("SQL_ATTR_TRACEFILE =c:\\odbc.log");
Upvotes: 1