הערה
הגישה לדף זה מחייבת הרשאה. באפשרותך לנסות להיכנס או לשנות מדריכי כתובות.
הגישה לדף זה מחייבת הרשאה. באפשרותך לנסות לשנות מדריכי כתובות.
This topic describes how to use stored procedures to delete a trace.
To delete a trace
Execute sp_trace_setstatus by specifying @status = 0 to stop the trace.
Execute sp_trace_setstatus by specifying @status = 2 to close the trace and delete its information from the server.
Note
A trace must be stopped first before it can be closed.
See Also
Other Resources
sp_trace_setstatus (Transact-SQL)
System Stored Procedures (Transact-SQL)
SQL Server Profiler Stored Procedures (Transact-SQL)