sp_syscollector_enable_collector (Transact-SQL)
Applies to: SQL Server
Enables the data collector. Because there is only one data collector per server, no parameters are required.
Transact-SQL syntax conventions
Syntax
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;
Related content
Opinia
https://aka.ms/ContentUserFeedback.
Dostępne już wkrótce: W 2024 r. będziemy stopniowo wycofywać zgłoszenia z serwisu GitHub jako mechanizm przesyłania opinii na temat zawartości i zastępować go nowym systemem opinii. Aby uzyskać więcej informacji, sprawdź:Prześlij i wyświetl opinię dla