Re: Audit Trace Files



You can get the file path only for active and stopped traces. As Erland and Uri mentioned, no record is kept after the trace is deleted.

It's not hard to develop a process to manage trace files, though. For example, I have a daily SSIS package that restarts a trace and copies the files to an archive folder.

--
Hope this helps.

Dan Guzman
SQL Server MVP

"Munish Narula" <munish.narula@xxxxxxxxx> wrote in message news:4412799B-EE0B-431B-92E2-F51988471166@xxxxxxxxxxxxxxxx
I am using server side traces to enable SQL Server 2000 and 2005 auditing.
Every time I start the server, I define a new trace file for auditing. So
till now I have configured around 100 trace files.

Now I want to get the list of all the trace files (which are at different
location in my PC), using some mechanism. Please let me know if there is a
function or procedure which will give me all the trace files that have been
configured for auditing in SQL 2000 and 2005.

I found a function fn_trace_getinfo, which returns information about a
specified trace or all existing traces, but I want all the trace files, which
have been created till now, irrespective of whether they are active or not.

Is there a function in SQL which would help me in this?

.



Relevant Pages

  • Re: cant get the correct num of rows from Oracle. in 2 SQL servers ( sql 7.0 and SQL 2000)
    ... I was referring to a trace on the Oracle database, to see what SQL code the Oracle database ... Tibor Karaszi, SQL Server MVP ... >> Tibor Karaszi, SQL Server MVP ...
    (microsoft.public.sqlserver.programming)
  • Re: cant get the correct num of rows from Oracle. in 2 SQL servers ( sql 7.0 and SQL 2000)
    ... I was referring to a trace on the Oracle database, to see what SQL code the Oracle database ... Tibor Karaszi, SQL Server MVP ... >> Tibor Karaszi, SQL Server MVP ...
    (microsoft.public.sqlserver.server)
  • Re: Simple timeout problem
    ... Brian, I haven't found anything specific on this error. ... We'd want to limit the trace to just the BizTalkRuleEngineDB. ... To run a trace go to SQL Profiler (under the SQL Server entry in the start ... | are reporting a timeout condition trying to connect to the SQL database. ...
    (microsoft.public.biztalk.general)
  • Re: Profiler Bug viewing trace flat file?
    ... Kalen Delaney, SQL Server MVP ... Run this code to create a trace capture of the RPC:Complete event: ... declare @error INT ... Now open the trace file in Profiler and you will see that the Textdata ...
    (microsoft.public.sqlserver.tools)
  • Re: How to look at parameter string
    ... I am tracing, but the problem I can't trace (at least, I haven't figured out ... string it is putting together to send to Sql. ... >> The problem is not coming from Sql Server but from my page. ...
    (microsoft.public.dotnet.framework.adonet)