--- 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: rwestMSFT ms.author: randolphwest ms.date: 06/05/2025 ms.service: sql ms.subservice: profiler ms.topic: how-to ms.collection: - data-tools --- # Close a trace window (SQL Server Profiler) [!INCLUDE [SQL Server Azure SQL Managed Instance](../../includes/applies-to-version/sql-asdbmi.md)] This article describes how to close the trace window for traces that are running or for saved traces you're viewing by using [!INCLUDE [ssSqlProfiler](../../includes/sssqlprofiler-md.md)]. ## Close a trace window 1. Select the trace window you want to close. 1. On the **File** menu, select **Close**. > [!IMPORTANT] > If the trace is running, closing a trace window stops the associated trace. ## Related content - [SQL Server Profiler templates and permissions](sql-server-profiler-templates-and-permissions.md) - [SQL Server Profiler](sql-server-profiler.md)