Home All Groups Group Topic Archive Search About


Author
18 Jan 2006 10:18 PM
Andre Gibson
I stsrted a trace on one of my bds and it is creating mulitple 5 mb files. I
thought it would stop once I closed the profiler. WRONG!!!

How can I stop this?

Author
18 Jan 2006 11:55 PM
P. Ward
You can use the following TSQL statement to identify the TraceID of any
Traces that are currently running:

SELECT DISTINCT traceid FROM :: fn_trace_getinfo(default)

You can then stop any running traces by setting the status of the TraceID to
stopped (0).

ie.

EXEC sp_trace_setstatus @traceid = 1,
@status = 0

HTH


- Peter Ward
WARDY IT Solutions


Show quoteHide quote
"Andre Gibson" wrote:

> I stsrted a trace on one of my bds and it is creating mulitple 5 mb files. I
> thought it would stop once I closed the profiler. WRONG!!!
>
> How can I stop this?
Are all your drivers up to date? click for free checkup

Author
19 Jan 2006 1:16 AM
Andre Gibson
thanks so much Peter,

I will try that

Show quoteHide quote
"P. Ward" wrote:

> You can use the following TSQL statement to identify the TraceID of any
> Traces that are currently running:
>
> SELECT DISTINCT traceid FROM :: fn_trace_getinfo(default)
>
> You can then stop any running traces by setting the status of the TraceID to
> stopped (0).
>
> ie.
>
> EXEC sp_trace_setstatus @traceid = 1,
>  @status = 0
>
> HTH
>
>
> - Peter Ward
> WARDY IT Solutions
>
>
> "Andre Gibson" wrote:
>
> > I stsrted a trace on one of my bds and it is creating mulitple 5 mb files. I
> > thought it would stop once I closed the profiler. WRONG!!!
> >
> > How can I stop this?

Bookmark and Share