Enables or disables SRV_TRACE flags for debugging messages.
rp_traceflag [options, {on|off}]
A list of one or more single-character option flags.
The following table shows the valid debugging options. These options are identical to the options you can use with the -s flag at the command line.
Value |
Displays |
---|---|
a |
TDS attention packets |
d |
TDS data information |
e |
Server events |
h |
TDS header information |
m |
Message queue usage |
n |
Network driver information and TCL requests |
p |
Network driver parameter information |
q |
Run queue information |
r |
Network driver data information |
s |
Network driver memory information |
t |
TDS tokens |
w |
TCL wake-up request |
Turns on debugging options, which causes debugging messages to be dumped to the error log file.
Turns off debugging options.
Displays all debugging flags and their current state.
rp_traceflag
Returns:
flag description state ---- ------------------------------------------- ----- a TDS attention packets on d TDS data information on e Server events on h TDS header information on m Message queue usage on n Network driver information and TCL requests on p Network driver param information on q Run queue information on r Network driver data information on s Network driver memory information on t TDS tokens on w TCL wakeup request on
Switches off TDS data information and server events flags.
rp_traceflag "de", off
Returns:
flag description state ---- ------------------------------------------- ----- d TDS data information off e Server events off
Displays the current status of the -d flag.
rp_traceflag d
Returns:
flag description state ---- ------------------------------------------ ----- d TDS data information off
If the state parameter is supplied, then the flags parameter cannot be NULL:
rp_traceflag: @flags cannot be NULL if @state is supplied
The valid value for the state parameter is either on or off:
rp_traceflag: @state must be on or off
Copyright © 2005. Sybase Inc. All rights reserved. |
![]() |