--- title: "Enable or Disable Data Collection | Microsoft Docs" ms.custom: "" ms.date: "03/14/2017" ms.prod: "sql-server-2016" ms.reviewer: "" ms.suite: "" ms.technology: - "database-engine" ms.tgt_pltfrm: "" ms.topic: "article" helpviewer_keywords: - "data collector [SQL Server], disabling" - "data collector [SQL Server], enabling" ms.assetid: 0137971b-fb48-4a3e-822a-3df2b9bb09d7 caps.latest.revision: 18 author: "JennieHubbard" ms.author: "jhubbard" manager: "jhubbard" --- # Enable or Disable Data Collection This topic describes how to enable or disable data collection in [!INCLUDE[ssCurrent](../../includes/sscurrent-md.md)] by using [!INCLUDE[ssManStudioFull](../../includes/ssmanstudiofull-md.md)] or [!INCLUDE[tsql](../../includes/tsql-md.md)]. **In This Topic** - **Before you begin:** [Security](#Security) - **To enable or disable data collection, using:** [SQL Server Management Studio](#SSMSProcedure) [Transact-SQL](#TsqlProcedure) ## Before You Begin ### Security #### Permissions Requires membership in the **dc_admin** or **dc_operator** (with EXECUTE permission) fixed database role to execute this procedure. ## Using SQL Server Management Studio #### To enable the data collector 1. In Object Explorer, expand the **Management** node. 2. Right-click **Data Collection**, and then click **Enable Data Collection**. #### To disable the data collector 1. In Object Explorer, expand the **Management** node. 2. Right-click **Data Collection**, and then click **Disable Data Collection**. ## Using Transact-SQL #### To enable the data collector 1. Connect to the [!INCLUDE[ssDE](../../includes/ssde-md.md)]. 2. From the Standard bar, click **New Query**. 3. Copy and paste the following example into the query window and click **Execute**. This example uses [sp_syscollector_enable_collector](../../relational-databases/system-stored-procedures/sp-syscollector-enable-collector-transact-sql.md) to enable the data collector. ```tsql USE msdb; GO EXEC dbo.sp_syscollector_enable_collector ; ``` #### To disable the data collector 1. Connect to the [!INCLUDE[ssDE](../../includes/ssde-md.md)]. 2. From the Standard bar, click **New Query**. 3. Copy and paste the following example into the query window and click **Execute**. This example uses [sp_syscollector_disable_collector](../../relational-databases/system-stored-procedures/sp-syscollector-disable-collector-transact-sql.md) to disable the data collector. ```tsql USE msdb; GO EXEC dbo.sp_syscollector_disable_collector; ``` ## See Also [Data Collection](../../relational-databases/data-collection/data-collection.md) [System Stored Procedures (Transact-SQL)](../../relational-databases/system-stored-procedures/system-stored-procedures-transact-sql.md)