title | description | author | ms.author | ms.reviewer | ms.date | ms.service | ms.subservice | ms.topic | f1_keywords | helpviewer_keywords | dev_langs | |||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
sp_syscollector_disable_collector (Transact-SQL) |
Disables the data collector. |
markingmyname |
maghan |
randolphwest |
08/22/2024 |
sql |
system-objects |
reference |
|
|
|
[!INCLUDE SQL Server]
Disables the data collector. Because there's only one data collector per server, no parameters are required.
:::image type="icon" source="../../includes/media/topic-link-icon.svg" border="false"::: Transact-SQL syntax conventions
sp_syscollector_disable_collector
[ ; ]
None.
0
(success) or 1
(failure).
Defaults to the data collector on the server.
Requires membership in the dc_admin or dc_operator (with EXECUTE permission) fixed database role to execute this procedure.
The following example disables the data collector.
EXEC dbo.sp_syscollector_disable_collector;