How to set a maximum file size for a trace file (SQL Profiler)
To set a maximum file size for a trace file
- On the File menu, point to New, and then click Trace.
- In the Connect to SQL Server dialog box, select the server to which you want to connect and a connection method.
- In the Trace Properties dialog box, do the following:
- In the Trace name box, type a name for the trace.
- In the Template name list, select a trace template.
- In the Trace name box, type a name for the trace.
- Select Save to file, and then specify a file in which to store the trace information.
- In the Set maximum file size (MB) check box, specify a maximum file size for the trace. File rollover is enabled by default.
When the file size reaches this maximum, the trace events are no longer recorded.