In order to configure timeouts for SQL Server Driver using ODBC connection
using DSN, click
Contol Panel --> Administrative Tools --> Data Sources (ODBC)
Choose your connection (User DSN/System DSN)
Choose the Data Sources --> Configure
At the fourth page of the configuration window
Tick the option for "Save long running queries to the log file:"
Once tick, there's a field called "Long queries time (miliseconds):"
The default value is 30000 miliseconds.
Hope this helps..