TSQL scripts and procedures to automate DBA tasks