Giter Club home page Giter Club logo

dba-in-a-box's Introduction

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.

dba-in-a-box's People

Contributors

pimbrouwers avatar

Stargazers

Andrejs Agejevs avatar Schalk avatar  avatar

Watchers

 avatar

Forkers

bettytexido

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.