Is there an easy way to determine what traces have been set up by sp_trace_create
on SQL Server 2000? How about for SQL Server 2005, 2008, 2012, or 2014?
有没有一种简单的方法可以确定sp_trace_create在SQL Server 2000上设置了哪些跟踪? SQL Server 2005,2008,2012或2014怎么样?
2 个解决方案
#1
39
SQL Server 2005 (onwards):
SQL Server 2005(从头开始):
SELECT * FROM sys.traces
SQL Server 2000 :
SQL Server 2000:
USE msdb
SELECT * FROM fn_trace_getinfo(default);
Ref: fn_trace_getinfo
参考:fn_trace_getinfo
Column descriptions for sys.traces
DMV can be found here: sys.traces
可以在此处找到sys.traces DMV的列描述:sys.traces
#2
1
Old question, but a precisation. On a SQL 2000 server you must use msdb database. Es:
老问题,但是精确化。在SQL 2000服务器上,您必须使用msdb数据库。 ES:
USE msdb
SELECT * FROM :: fn_trace_getinfo(default)
#1
39
SQL Server 2005 (onwards):
SQL Server 2005(从头开始):
SELECT * FROM sys.traces
SQL Server 2000 :
SQL Server 2000:
USE msdb
SELECT * FROM fn_trace_getinfo(default);
Ref: fn_trace_getinfo
参考:fn_trace_getinfo
Column descriptions for sys.traces
DMV can be found here: sys.traces
可以在此处找到sys.traces DMV的列描述:sys.traces
#2
1
Old question, but a precisation. On a SQL 2000 server you must use msdb database. Es:
老问题,但是精确化。在SQL 2000服务器上,您必须使用msdb数据库。 ES:
USE msdb
SELECT * FROM :: fn_trace_getinfo(default)