How to Stop audit trace files?

  • Hi, I have a problem with a Sql Express 2008. There are lots of audittrace files (*.trc) and I have no idea how to stop the trace which is writing these files.

    I was surfing the net for things that could help but I found only information regarding Sql 2005. There seem the files to be smaller (not 200 MB) and there seems to be a limit of the files written.

    If I cannot stop that trace, how can I limit the size of the files and the number of files stored on the disk?

    I tried to stop the trace by calling "exec sp_trace_setstatus 1,0" but the result is always an error telling me I have no right to start (even when I'm "sa").

    Thanks in advance!

    Axel

  • What does fn_trace_getinfo tell you about the trace?

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • I hope that this info can help you!

    http://www.sqlservercentral.com/articles/Monitoring/basicsofc2auditing/1547/[/url]

    ============================================================
    SELECT YOUR PROBLEM FROM SSC.com WHERE PROBLEM DESCRIPTION =
    http://www.sqlservercentral.com/articles/Best+Practices/61537/[/url]

  • Check in the Server properties on the security, you have Enable C2 audit tracing - check if it is on or off !?

    ============================================================
    SELECT YOUR PROBLEM FROM SSC.com WHERE PROBLEM DESCRIPTION =
    http://www.sqlservercentral.com/articles/Best+Practices/61537/[/url]

  • Upps, that's the place where I didn't look. It's right - under properties the "C2 auditing" was enabled.

    I was going crazy because all tries with exec sp_configure... ended up with errors.

    Ok, thanks alot!

  • a.bommersbach (4/30/2009)


    Upps, that's the place where I didn't look. It's right - under properties the "C2 auditing" was enabled.

    I was going crazy because all tries with exec sp_configure... ended up with errors.

    Ok, thanks alot!

    As allways every where in this forum you are welcomed! 😎

    ============================================================
    SELECT YOUR PROBLEM FROM SSC.com WHERE PROBLEM DESCRIPTION =
    http://www.sqlservercentral.com/articles/Best+Practices/61537/[/url]

Viewing 6 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic. Login to reply