Scheduling Traces
SQL Server 2008
There are two ways to schedule tracing in Microsoft SQL Server. You can:
Enable a trace stop time.
Use SQL Server Agent to schedule a trace.
The best way to schedule traces is to use SQL Server Agent to start the trace and then specify a trace stop time by using the Transact-SQL stored procedure sp_trace_setstatus, or SQL Server Profiler.
To set an end time filter for a trace
How to: Filter Events Based on the Event End Time (SQL Server Profiler)