Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Where are these .trc files coming from?? 1

Status
Not open for further replies.

unclerico

IS-IT--Management
Jun 8, 2005
2,738
US
Windows 2000 Server SP4
SQL Server 2000 SP3a


At one point in the past someone here must have created a new trace and not ended it. I have looked through all of the jobs within SQL Server as well as within Windows and I cannot find out what the heck this trace is called so that I can kill it, it is generating a crap load of .trc files that are chewing up disk space. The .trc files are named audittrace_datetime_sequencenumber.trc...does anyone know how I can find out the TraceId?? Thanks.
 
anyone?? I promise that I'll give you 9 stars for your help.
 
First run the following code to get the traceid

Code:
SELECT *
FROM ::fn_trace_getinfo(default)

Once you have identified the traceid you then run the follwoing to stop the trace
Code:
sp_trace_setstatus @traceid = <<your traceID>>,
                   @status = 0

If you then want to delete the trace run the follwoing
Code:
sp_trace_setstatus @traceid = <<your traceID>>,
                   @status = 2

Shoot Me! Shoot Me NOW!!!
- Daffy Duck
 
mdxer you da man, thanks a lot for the tip, works like a charm. sqlDenis, I promise that you can answer my next question ;-)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top