This repository contains various T-SQL stored procedures that can be used for database management tasks.
- Index Maintenance
- Databases Backup
- Statistics Update Maintenance
- Shrink All Databases Log Files
- Database Integrity Check
- Send Job Failure Report E-Mail
- Blocking Check And Send E-Mail
- Analyzing Tables For Archiving
This stored procedure performs maintenance on indexes in specified or all databases. It checks index fragmentation and reorganizes or rebuilds indexes as needed. If you want to view guideline, please click here.
This stored procedure backs up specified or all databases. It offers options for full, differential, and transaction log backups. If you want to view guideline, please click here.
This stored procedure performs maintenance on statistics in specified or all databases. If you want to view guideline, please click here.
This stored procedure aims to shrink all database log files. If you want to view guideline, please click here.
This stored procedure checks the integrity of a specified database. If not specified, it checks the integrity of all databases. If you want to view guideline, please click here.
This stored procedure sending e-mail for failured job. If you want to view guideline, please click here.
This stored procedure sending e-mail for blocking session. If you want to view guideline, please click here.
This stored procedure analyzing tables for archiving in specified or all databases. If you want to view guideline, please click here.