| title | sp_syscollector_delete_execution_log_tree (Transact-SQL) | ||
|---|---|---|---|
| description | Deletes all the log entries for the run of a single collection set. | ||
| author | markingmyname | ||
| ms.author | maghan | ||
| ms.reviewer | randolphwest | ||
| ms.date | 06/23/2025 | ||
| ms.service | sql | ||
| ms.subservice | system-objects | ||
| ms.topic | reference | ||
| f1_keywords |
|
||
| helpviewer_keywords |
|
||
| dev_langs |
|
[!INCLUDE SQL Server]
Deletes all the log entries for the run of a single collection set. It also deletes the log entries from the [!INCLUDE ssIS] tables for that run.
:::image type="icon" source="../../includes/media/topic-link-icon.svg" border="false"::: Transact-SQL syntax conventions
sp_syscollector_delete_execution_log_tree
[ @log_id = ] log_id
[ , [ @from_collection_set = ] from_collection_set ]
[ ; ]
The unique identifier for the collection set log. @log_id is bigint, with no default.
The identifier for the collection set. @from_collection_set is bit, with a default of an empty string.
0 (success) or 1 (failure).
Requires membership in the dc_operator (with EXECUTE permission) fixed database role to execute this procedure.