Re: About C2 audit mode and SQL Profiler

From: Richard Waymire [MSFT] (rwaymi@online.microsoft.com)
Date: 03/29/03


From: "Richard Waymire [MSFT]" <rwaymi@online.microsoft.com>
Date: Sat, 29 Mar 2003 10:14:51 -0800


#1) C2 mode has very specific requirements - including writing to a file.
You'll need to run an ordinary trace (with sp_trace* or profiler) for any
non-default behavior otherwise.

#2) See #1

#3) Use the profiler GUI to create the trace you'd like to run. Then script
the trace (file - script trace menu). Then wrap the whole script in a
stored procedure, then mark the stored procedure as a "startup" stored proc.
Then it will start each time SQL Server starts.

--
Richard Waymire, MCSE, MCDBA
This posting is provided "AS IS" with no warranties, and confers no rights.
"ton" <barameek@inglife.co.th> wrote in message
news:e0GPUsA9CHA.1980@TK2MSFTNGP12.phx.gbl...
> I have 3 problems as follow :
>
>     1. How can i change c2 audit from text file to table on database?
>
>         I set c2 audit mode to sql server 2000 and this mode will generate
> text file to \program files\Microsoft SQL
> Server\Mssql\data\audittrace_xxxxxxxxxxxxxx.trc but
> i want to change output of audit to table on database like sql profiler
> trace.
>
>     2. How can i increase default c2 audit mode?
>
>     3. How can i set trace of SQL Profiler for run automatic when sql
server
> 2000 startup?
>
>
>             Thank in advances.
>
>


Relevant Pages

  • Re: SQL 7 Traces
    ... Profiler 2K can generate the xp calls for a defined trace in 7 format. ... Tibor Karaszi, SQL Server MVP ...
    (microsoft.public.sqlserver.programming)
  • Re: Wartungsfreier SQL-Server!?
    ... wenn man sonst keine Anhaltspunkte hat. ... Wie kann ich den "SQL Profiler Trace" mir anzeigen lassen? ...
    (microsoft.public.de.sqlserver)
  • Re: Auditing sql server at runtime
    ... Use SQL Profiler to define your trace, ... User sp_procoption to mark the stored procedure for autoexecution when the SQL Server is restarted. ...
    (microsoft.public.sqlserver.clients)
  • Re: SQL Profiler Filters
    ... will only retrieve "UPDATE" SQL statements. ... Once you have created a trace and then ... How do you restart it so that you can continue tracing events. ... closed SQL Profiler before I went home last night ...
    (microsoft.public.sqlserver.tools)
  • Re: Monitor SQL Statements
    ... First off you should never use Profiler for traces on busy systems. ... Then run the trace and immediately hit ... Andrew J. Kelly SQL MVP ...
    (microsoft.public.sqlserver.security)