| title | Start a Trace Automatically After Connecting to a Server | |
|---|---|---|
| titleSuffix | SQL Server Profiler | |
| description | Learn how to start tracing event data automatically in SQL Server Profiler after connecting to an instance of SQL Server. | |
| author | rwestMSFT | |
| ms.author | randolphwest | |
| ms.date | 06/05/2025 | |
| ms.service | sql | |
| ms.subservice | profiler | |
| ms.topic | how-to | |
| ms.collection |
|
[!INCLUDE SQL Server Azure SQL Managed Instance]
This article describes how to start traces automatically after connecting to an instance of [!INCLUDE ssNoVersion] by using [!INCLUDE ssSqlProfiler].
-
On the Tools menu, select Options.
-
Select the Start tracing immediately after making a connection check box.
If Start tracing immediately after making connection is selected, the Trace Properties dialog box fails to appear and the trace begins instead. To edit trace properties, you must first turn this setting off.