| title | Enable or Disable Data Collection | Microsoft Docs | ||
|---|---|---|---|
| ms.custom | |||
| ms.date | 03/14/2017 | ||
| ms.prod | sql | ||
| ms.prod_service | database-engine | ||
| ms.service | |||
| ms.component | data-collection | ||
| ms.reviewer | |||
| ms.suite | sql | ||
| ms.technology |
|
||
| ms.tgt_pltfrm | |||
| ms.topic | article | ||
| helpviewer_keywords |
|
||
| ms.assetid | 0137971b-fb48-4a3e-822a-3df2b9bb09d7 | ||
| caps.latest.revision | 18 | ||
| author | stevestein | ||
| ms.author | sstein | ||
| manager | craigg | ||
| ms.workload | Inactive |
[!INCLUDEappliesto-ss-xxxx-xxxx-xxx-md] This topic describes how to enable or disable data collection in [!INCLUDEssCurrent] by using [!INCLUDEssManStudioFull] or [!INCLUDEtsql].
In This Topic
-
Before you begin:
-
To enable or disable data collection, using:
Requires membership in the dc_admin or dc_operator (with EXECUTE permission) fixed database role to execute this procedure.
-
In Object Explorer, expand the Management node.
-
Right-click Data Collection, and then click Enable Data Collection.
-
In Object Explorer, expand the Management node.
-
Right-click Data Collection, and then click Disable Data Collection.
-
Connect to the [!INCLUDEssDE].
-
From the Standard bar, click New Query.
-
Copy and paste the following example into the query window and click Execute. This example uses sp_syscollector_enable_collector to enable the data collector.
USE msdb;
GO
EXEC dbo.sp_syscollector_enable_collector ; -
Connect to the [!INCLUDEssDE].
-
From the Standard bar, click New Query.
-
Copy and paste the following example into the query window and click Execute. This example uses sp_syscollector_disable_collector to disable the data collector.
USE msdb;
GO
EXEC dbo.sp_syscollector_disable_collector;