A set of SQL scripts for performing various tasks that may fail in the back-office.
Use at your own risk!
I have tried to optimize these to the best of my knowledge. I am no SQL DBA, but have some experience. Each script has a Select output of what will be deleted, to delete, uncomment the delete statements and comment the select statement.
The scripts: