Re: trace Id for C2 audit
- From: "Kalen Delaney" <replies@xxxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 26 Dec 2007 11:12:23 -0800
The trace_id that is enabled by default in SQL 2005 is not the same as a
blackbox trace. It is just a default system trace used to populate some of
the summary reports. This trace should not be considered a blackbox,
because it doesn't capture any information about batches that have been
executed, so it is not very useful for tracking down the cause of bad
behavior. A blackbox trace can be explicitly started with sp_trace_create
procedure, providing the property parameter value of 8.
I agree with Dan that you shouldn't rely on a trace having a particular ID
unless it is so documented (and of course, the documentation can sometimes
be wrong. ;-) )
You can query the sys.traces view easily enough to find out what the
trace_id of the c2 trace is. It's a bit harder to query fn_trace_getinfo but
certainly possible.
--
HTH
Kalen Delaney, SQL Server MVP
www.InsideSQLServer.com
http://sqlblog.com
"Erland Sommarskog" <esquel@xxxxxxxxxxxxx> wrote in message
news:Xns9A126ADA1EFYazorman@xxxxxxxxxxxx
Munish Narula (munish.narula@xxxxxxxxx) writes:
Is it a fair assumption to make, that the traceId of c2 auditing is
always 1?
Say, I have switched on C2 audit in SQL 2000 and 2005 and i use
fn_trace_getinfo to get the active trace. Will it always return me
traceId as 1?
SQL 2005 has a "blackbox trace" enabled by default with trace id = 1. But
I don't know whether that trace is disabled if you turn on C2.
--
Erland Sommarskog, SQL Server MVP, esquel@xxxxxxxxxxxxx
Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx
.
- References:
- Re: trace Id for C2 audit
- From: Erland Sommarskog
- Re: trace Id for C2 audit
- Prev by Date: Re: Script DB Object Level Security with SQL2005
- Next by Date: Cannot connect with the Administator account
- Previous by thread: Re: trace Id for C2 audit
- Next by thread: Re: trace Id for C2 audit
- Index(es):
Relevant Pages
|
|