Re: Security Audit Stored Procs
From: Toni Lassila (mpao@mc-europe.com)
Date: 06/26/02
- Next message: Darren Handler: "Migrating to NT Authentication with legacy app"
- Previous message: Toni Lassila: "Re: Forcing a trace to start when SQL Server starts"
- In reply to: Diane: "Security Audit Stored Procs"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
From: mpao@mc-europe.com (Toni Lassila) Date: 26 Jun 2002 00:17:31 -0700
"Diane" <dfleming@webmd.net> wrote in message news:<11fb201c21c6e$ce97f280$9ae62ecf@tkmsftngxa02>...
> Does anyone have an example of a stored procedure that is
> used to trace security events?
>
> I saw where I can use SP_trace_create to create the trace
> parameters but i'm a little confused on how to start the
> trace on sql server startup. I read about sp_procoption
> but what goes into the stored proc i'm trying to start?
You can write it yourself using sp_trace_create, sp_trace_setevent
etc. but an easier way is to create the trace using SQL Profiler.
Just choose the events you want, set the filters and select
File->Script Trace from the menu. That spits out a ready sproc
you can modify to decide where you want the trace files, how
big, rollover etc.
- Next message: Darren Handler: "Migrating to NT Authentication with legacy app"
- Previous message: Toni Lassila: "Re: Forcing a trace to start when SQL Server starts"
- In reply to: Diane: "Security Audit Stored Procs"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
|