Skip to content

Latest commit

 

History

History
69 lines (54 loc) · 2.12 KB

File metadata and controls

69 lines (54 loc) · 2.12 KB
title sp_syscollector_enable_collector (Transact-SQL) | Microsoft Docs
ms.custom
ms.date 03/14/2017
ms.prod sql-non-specified
ms.reviewer
ms.suite
ms.technology
database-engine
ms.tgt_pltfrm
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
caps.latest.revision 18
author JennieHubbard
ms.author jhubbard
manager jhubbard

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.

Applies to: [!INCLUDEssNoVersion] ([!INCLUDEssKatmai] through current version).

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