Re: SQL Profiler Scheduling
- From: Erland Sommarskog <esquel@xxxxxxxxxxxxx>
- Date: Tue, 14 Aug 2007 21:55:31 +0000 (UTC)
Ron (Ron@xxxxxxxxxxxxxxxxxxxxxxxxx) writes:
Is there anyway to schedule a profile trace? I would like it start at 8am
and stop at 5pm without manual intervention. It could overwrite itself or
not.
What I do is simply to add a filter on StartTime to the trace, so the
filter is running all the time, but does not start capturing anything
until the time I've stated.
It's possible to set a stop time when you set up a trace.
The simplest way to set up a server-side trace is to define the trace in
Profiler, and then script the trace. If you are on SQL 2005, you need to
be careful to check that the filter conditions were scripted correctly.
This is not always the case.
--
Erland Sommarskog, SQL Server MVP, esquel@xxxxxxxxxxxxx
Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx
.
- Prev by Date: Re: SQL Profiler Scheduling
- Next by Date: Sql Server 2005 SP2 Installation Error
- Previous by thread: Re: SQL Profiler Scheduling
- Next by thread: Re: SQL Profiler Scheduling
- Index(es):
Relevant Pages
|