Skip to content

Latest commit

 

History

History
61 lines (47 loc) · 1.86 KB

File metadata and controls

61 lines (47 loc) · 1.86 KB
title sp_syscollector_enable_collector (Transact-SQL) | Microsoft Docs
ms.custom
ms.date 03/14/2017
ms.prod sql
ms.prod_service database-engine
ms.reviewer
ms.technology system-objects
ms.topic language-reference
f1_keywords
sp_syscollector_enable_collector
sp_syscollector_enable_collector_TSQL
dev_langs
TSQL
helpviewer_keywords
sp_syscollector_enable_collector
data collector [SQL Server], stored procedures
ms.assetid 53ff2b0d-b7da-4e3d-8f3d-35e857bc3720
author stevestein
ms.author sstein

sp_syscollector_enable_collector (Transact-SQL)

[!INCLUDEtsql-appliesto-ss2008-xxxx-xxxx-xxx-md]

Enables the data collector. Because there is only one data collector per server, no parameters are required.

Topic link icon Transact-SQL Syntax Conventions

Syntax

  
dbo.sp_syscollector_enable_collector   

Arguments

None

Return Code Values

0 (success) or 1 (failure)

Remarks

Defaults to the data collector on the server.

Permissions

Requires membership in the dc_admin or dc_operator (with EXECUTE permission) fixed database role to execute this procedure.

Examples

The following example enables the data collector.

USE msdb;  
GO  
EXEC dbo.sp_syscollector_enable_collector;  

See Also

System Stored Procedures (Transact-SQL)
Data Collection