From 26008291fc9e8a41128ccf482dd93e88a6e51b48 Mon Sep 17 00:00:00 2001 From: SamySid <52775403+SamySid@users.noreply.github.com> Date: Wed, 1 Oct 2025 10:36:29 +0200 Subject: [PATCH] Update 4-MainScriptKeepOnly_TransactionPick.SQL modifying some comments --- .../4-MainScriptKeepOnly_TransactionPick.SQL | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/Storage Management/Large Tables Data Cleanup/4-MainScriptKeepOnly_TransactionPick.SQL b/Storage Management/Large Tables Data Cleanup/4-MainScriptKeepOnly_TransactionPick.SQL index 4379f25e..de9b2ef0 100644 --- a/Storage Management/Large Tables Data Cleanup/4-MainScriptKeepOnly_TransactionPick.SQL +++ b/Storage Management/Large Tables Data Cleanup/4-MainScriptKeepOnly_TransactionPick.SQL @@ -3,12 +3,12 @@ Description: This script is designed to cleanup records from specified tables in a database. It uses a cursor to loop through the table names ordered by size (Data + Index) and calls a stored procedure to archive records based on the provided parameters. Parameters: -- @Tables: List of tables to be archived (comma separated) -- @MaxArchivingDate: Maximum archiving date +- @SkipTables: List of tables to be skipped (comma separated) -- Tables to exclude anyway BATCHHISTORY, BATCHJOB, BATCH, BATCHJOBHISTORY,Sysdatabaselog +- @MaxArchivingDate: Date from which you want to keep data - @Simulation: Set to 1 for simulation mode, 0 for actual deletion -- @LE: List of legal entities -- @MaxThruputInMB: Size of each batch for processing records (default is 100 GB) -- @Resume: Set to 1 to resume from previous run, 0 for fresh run (default is 1) +- @LE: List of legal entities to keep +- @MaxThruputInMB: Size of each batch for processing records (default is 512 MB) +- @Resume: Set to 1 to resume from previous run, 0 for fresh run (default is 1) - use 0 only if you want to skip tables that have already been started The script performs the following steps: 1. Prints the legal entities and date range. @@ -275,3 +275,4 @@ BEGIN EXEC sp_executesql @SQL END +