22,209
社区成员
发帖
与我相关
我的任务
分享
declare @t_count int
set @t_count=1
while exists(SELECT * FROM ::fn_trace_geteventinfo(@t_count))
begin
exec sp_trace_setstatus @t_count,0
set @t_count=@t_count+1
end
declare @t_count int
set @t_count=1
while exists(SELECT * FROM fn_trace_geteventinfo(@t_count))
begin
exec sp_trace_setstatus @t_count,0
set @t_count=@t_count+1
end