--- title: Close a Trace Window titleSuffix: SQL Server Profiler description: Discover how to close the trace window in SQL Server Profiler that captures event data. Learn how to close it either during the trace or after it has finished. author: markingmyname ms.author: maghan ms.date: 03/01/2017 ms.service: sql ms.subservice: profiler ms.topic: conceptual --- # Close a Trace Window (SQL Server Profiler) [!INCLUDE [SQL Server Azure SQL Managed Instance](../../includes/applies-to-version/sql-asdbmi.md)] This topic describes how to close the trace window for traces that are running or for saved traces you are viewing by using [!INCLUDE[ssSqlProfiler](../../includes/sssqlprofiler-md.md)]. ## To close a trace window 1. Select the trace window you want to close. 2. On the **File** menu, click **Close**. > [!IMPORTANT] > If the trace is running, closing a trace window stops the associated trace. ## See Also - [SQL Server Profiler Templates and Permissions](../../tools/sql-server-profiler/sql-server-profiler-templates-and-permissions.md) - [SQL Server Profiler](../../tools/sql-server-profiler/sql-server-profiler.md)