r/SQLServer • • Jan 02 '19

SQL Server DBA Scripts

Hey All,

I've worked for different companies with different groups of DBAs over the past 10 years and each have had their own set of scripts and methods of troubleshooting, health checking, maintenance etc..

I'd like to standardize these scripts at my current company so I wanted to see if there is a 'Best Practice' set of scripts out there that you would recommend?

Thanks

LAPORTS

41 Upvotes

26 comments sorted by

View all comments

10

u/unholey1 Jan 02 '19

Ola hallengrens scripts are probably the most commonly used for all backup and database maintenance tasks. Just about every DBA I've spoken to either uses them or wants to.

I'd also give another vote for dbatools.io to give you more flexibility in creating your own scripts

1

u/LAPORTS Jan 02 '19

I always thought Microsoft should just work with Hallengren and packages these up. Great set of maintenance scripts

4

u/chandleya Jan 02 '19

From personal experience, they do work closely with him. I think for packaging sake they’re trying to bundle less management as the community has spoken up on that. Bundling it also stifles major change/improvement as they have to commit to keeping feature parity in a release.