sp_syscollector_delete_execution_log_tree (Transact-SQL)

THIS TOPIC APPLIES TO:yesSQL Server (starting with 2008)noAzure SQL DatabasenoAzure SQL Data Warehouse noParallel Data Warehouse

Deletes all the log entries for the run of a single collection set. It also deletes the log entries from the SSIS tables for that run.

|Applies to: SQL Server ( SQL Server 2008 through current version).|

Topic link icon Transact-SQL Syntax Conventions


sp_syscollector_delete_execution_log_tree[ @log_id = ] log_id  
          , [ @from_collection_set = ] from_collection_set  


[ @log_id = ] log_id
Is the unique identifier for the collection set log. log_id is int.

[ @from_collection_set = ] from_collection_set
Is the identifier for the collection set. from_collection_set is bit=1.

Return Code Values

0 (success) or 1 (failure)


Requires membership in the dc_operator (with EXECUTE permission) fixed database role to execute this procedure.

See Also

System Stored Procedures (Transact-SQL)