Starts a collection set if the collector is already enabled and the collection set is configured for non-cached collection mode.
This procedure will fail if it is run against a collection set that is configured for cached collection mode.
sp_syscollector_run_collection_set enables a user to take on-demand data snapshots.
Either collection_set_id or name must have a value, both cannot be NULL.
This procedure will start the collection and upload jobs for the specified collection set and will immediately start the collection agent job if the collection set has its @collection_mode set to non-cached (1). For more information see, sp_syscollector_create_collection_set (Transact-SQL).
sp_sycollector_run_collection_set can also be used to run a collection set that does not have a schedule.
Start a collection set using its identifier.
USE msdb; GO EXEC sp_syscollector_run_collection_set @collection_set_id = 1