Data collector stored procedures (Transact-SQL)
Applies to: SQL Server
SQL Server supports the following system stored procedures that are used to work with the data collector and the following components: collection sets, collection items, and collection types.
Important
Unlike regular stored procedures, the parameters for data collector stored procedures are strictly typed and don't support automatic data type conversion. If these parameters aren't called with the correct input parameter data types, as specified in the argument description, the stored procedure returns an error.
sp_syscollector_create_collection_item
sp_syscollector_create_collection_set
sp_syscollector_create_collector_type
sp_syscollector_delete_collection_item
sp_syscollector_delete_collection_set
sp_syscollector_delete_collector_type
sp_syscollector_delete_execution_log_tree
sp_syscollector_disable_collector
sp_syscollector_set_cache_window
sp_syscollector_set_warehouse_database_name
sp_syscollector_set_warehouse_instance_name
sp_syscollector_start_collection_set
sp_syscollector_stop_collection_set
sp_syscollector_run_collection_set
sp_syscollector_update_collection_item
sp_syscollector_update_collection_set
The following stored procedures are for internal use only:
sp_syscollector_get_warehouse_connection_string
sp_syscollector_set_warehouse_connection_password
sp_syscollector_set_warehouse_connection_user
sp_syscollector_event_oncollectionbegin
sp_syscollector_event_oncollectionend
sp_syscollector_event_onpackagebegin
sp_syscollector_event_onpackageend
sp_syscollector_event_onpackageupdate
sp_syscollector_event_onerror
sp_syscollector_event_onstatsupdate