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

29

u/slimrichard Jan 02 '19

I build everything around dbatools.

https://dbatools.io/commands/

2

u/LAPORTS Jan 02 '19

I've been to a couple of sessions with Rob Sewell and Chrissy Lemaire, dbatools is really powerful but we're not using it extensively yet.

We're looking use it to automate patching : https://nvarscar.wordpress.com/2018/12/30/automating-sql-server-patching/