- adapted the procedures to not loop, but only do 1 batch of deletion.

The job will be called in a loop, every minutes and will handle the enforcement of not starting during working hours.
- Added the job that will call all cleanup procs in sequence
This commit is contained in:
Thierry Schork
2025-09-03 16:17:57 +02:00
parent 60007cd7df
commit b19a4c4bdd
6 changed files with 259 additions and 135 deletions

View File

@@ -7,6 +7,7 @@ WHERE state_desc = 'ONLINE'
AND is_read_only = 0
AND source_database_id IS NULL
AND [database_id]>4 --ignore system dbs
AND [is_query_store_on] = 0
;
OPEN db_cursor;