
Chapter 4. Gathering SQL performance data 103
The connection keyword to enable the monitor is the TRACE keyword. The TRACE keyword
supports the following options:
0 = No tracing
1 = Enable internal driver tracing
2 = Enable Database Monitor
4 = Enable the Start Debug (STRDBG) command
16 = Enable job trace
32 = Enable database host server trace
To specify multiple trace options, add together the values for the options that you want. For
example, if you want to activate the Database Monitor (2) and the STRDBG command (4) on
the server, then the value that you specify is 6 (2+ 4=6).
The part of a Microsoft Excel® macro in Example 4-1 uses ...