Skip to content

Useful scripts, tools and jobs to make life as a part-time SQL Server DBA easier.

License

Notifications You must be signed in to change notification settings

nhlpa/dba-in-a-box

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DBA In A Box

licence badge stars badge forks badge issues badge

Useful scripts and jobs to make life as a part-time SQL Server DBA easier.

Scripts Included

Getting Started

To install in a database other than master, simply change Line 1 of install.sql

Download and run install.sql, then sit back and relax.

This will install the scripts list above in the master database. The following SQL Agent Jobs will also be installed:

  1. DBA_CHECKDB: Run CHECKDB on all databases - weekly (Sunday).
  2. DBA_CYCLELOGS: Cycle log and error log files - daily (midnight).
  3. DBA_REBUILDINDEXES: Rebuild indexes on all user databases - weekly (Saturday).
  4. DBA_STATISTICS: Update statistics on all user databases - daily (midnight).
  5. DBA_WAITSTATS: Capture a snapshot of server wait statistics - daily (midnight).
  6. DBA_WHOISACTIVE: Capture a snapshot of sp_whoIsActive - 60s
  7. DBA_PURGEHISTORY: Purge msdb backup & job history of data older than 60 days - daily (midnight).

All jobs are created in the disabled state and must be enabled.

Find a bug?

There's an issue for that.

License

Built with ♥ by NHLPA Engineering in Toronto, ON. Licensed under MIT.

About

Useful scripts, tools and jobs to make life as a part-time SQL Server DBA easier.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published