Re: Need help with Sql Profiler
- From: "Anthony Thomas" <ALThomas@xxxxxxxxx>
- Date: Mon, 19 Sep 2005 21:50:34 -0500
Use sp_trace_create the @traceid is an output parameter. You use this
procedure to define the trace, create it, and get a handle to it.
You use sp_trace_set status to open it then start it. You must also stop it
and then close it to quit.
Sincerely,
Anthony Thomas
--
"Gene." <Gene@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:A39584F9-A1A6-4A9C-890F-D86318471CCC@xxxxxxxxxxxxxxxx
Hello
I need to monitor creation/deletion/modification of objects in a database.
I decided to use sql profiler with objects events auditing(create, delete)
and TSQL events (SQL: STMstarting, SQL: batchstarting) for 'alter'
statement.
It's working, but I've encountered a few problems I can not resolve:
1. Template which I created does not remember 'save to table' settings. So
each time I restart - I need to specify them again.
2. I need to set it up with scheduler. I found sp_trace_setstatus proc but
it requires trace_id which I have no clue how to get.
Do I miss something about use of profiler?
Thank you, Gene.
.
- Prev by Date: ANN: SQL2005 Service Manager now available for September CTP
- Next by Date: Re: Need help with Sql Profiler
- Previous by thread: ANN: SQL2005 Service Manager now available for September CTP
- Next by thread: Re: Need help with Sql Profiler
- Index(es):
Relevant Pages
|