Running Sever Side Trace Continously

  • Can any one help me in scheduling the never ending server side trace.I am able to write a server side trace but i need to start it once and it has to be never ending.....

  • Do you want files from it to roll over? Will you keep old trace files?

    You'll need to set up a startup proc that will re-start it when the SQL service restarts, or the trace will stop if the server or service is restarted.

    - 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

  • Look at sp_trace_create @options.

    Dan

  • I can have the roll over

  • Have a look at last weeks article regards defining a Server Side trace in profiler. This will create the required TSQL which you can then embed in a server startup proc.

    http://www.sqlservercentral.com/articles/Performance/71549/[/url]

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

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