- 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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user