--- title: Start a Trace Automatically after Connecting to a Server titleSuffix: SQL Server Profiler ms.prod: sql ms.prod_service: sql-tools ms.reviewer: "" ms.technology: profiler ms.topic: conceptual ms.assetid: d74b848d-e796-49af-a8c5-dd69230f3a78 author: markingmyname ms.author: maghan ms.custom: seo-lt-2019 ms.date: 03/14/2017 --- # Start a Trace Automatically after Connecting to a Server (SQL Server Profiler) [!INCLUDE[appliesto-ss-xxxx-xxxx-xxx-md](../../includes/appliesto-ss-xxxx-xxxx-xxx-md.md)] This topic describes how to start traces automatically after connecting to an instance of [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] by using [!INCLUDE[ssSqlProfiler](../../includes/sssqlprofiler-md.md)]. ### To start a trace automatically after connecting to a server with SQL Server Profiler 1. On the **Tools** menu, click **Options**. 2. Select the **Start tracing immediately after making a connection** check box. > [!NOTE] > 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. ## See Also [SQL Server Profiler](../../tools/sql-server-profiler/sql-server-profiler.md)