Re: Need help to setup profiler at server side
From: David Gugick (davidg-nospam_at_imceda.com)
Date: 12/29/04
- Previous message: Erland Sommarskog: "Re: problems installing security patch."
- In reply to: Sunny: "Need help to setup profiler at server side"
- Next in thread: Olu Adedeji: "Re: Need help to setup profiler at server side"
- Reply: Olu Adedeji: "Re: Need help to setup profiler at server side"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Tue, 28 Dec 2004 18:12:25 -0500
Sunny wrote:
> I have created one trace with Security Audits event only and about 10
> data columns and no filter. Which runs fine SQL profiler. I just want
> to trace users activity on server. But I want to keep this trace
> running on the server. How can I setup to run trace on server from
> client. I have admin rights on SQL 2000.
Create a job in the SQL Server Agent to run the trace. Define the trace
in Profiler at your client until you get the specs for the trace as you
like them. Make sure you designate that the server should run the trace
and specify a trace file (local to the server and in a folder the SQL
Server Service Account has read/write access to). You can use rollover
files if you want to. It's not necessary, but it will appear that the
file is always 0MB until the trace is stopped. Run the trace, stop it,
and then select the File - Script Trace menu option to script out the
trace. Look over the generated code and test from Query Analyzer to make
sure it is working as expected. Use the generated code in the job step.
You'll need to stop the trace manually in order to see the results. You
can write a stored procedure to do this using the sp_trace* system
procedures. It could, for example, stop the trace, rename the trace
file, and then start the job.
To read the trace table or load into a table, you need to use
fn_trace_gettable.
You cannot trace directly to a table.
-- David Gugick Imceda Software www.imceda.com
- Previous message: Erland Sommarskog: "Re: problems installing security patch."
- In reply to: Sunny: "Need help to setup profiler at server side"
- Next in thread: Olu Adedeji: "Re: Need help to setup profiler at server side"
- Reply: Olu Adedeji: "Re: Need help to setup profiler at server side"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
|