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

13

u/Solonas Jan 02 '19

I keep a copy of the most current version of Glenn Berry's scripts in my library. https://www.sqlskills.com/blogs/glenn/category/dmv-queries/

1

u/LAPORTS Jan 02 '19

Thank you! This is new to me, I'll get a look through today!

4

u/alinroc 4 Jan 02 '19

You can run these through dbatools. Invoke-DbaDiagnosticQuery