Baseline SQL Server
|Hi DBA friends! Like me, if you are responsible for multiple SQL Servers and don’t have any third-party monitoring tool, then I guess instead of writing your own in-house tool, you can go with Brent Ozar’s First Responder Kit. I blogged about it sometime back in below blog post:-
Also, recently Brent explained the same in a webcast. Below is the Youtube link:-
In case you still wonder where to start, then try downloading
imajaydwivedi/SQLDBA-SSMS-Solution/Baselining/
Below is little description about each of the script present in above SSMS Project:-
- [What was Running – AsOf.sql]
- This returns stored data from BlitzFirst proc and sp_WhoIsActive for specific DateTime
- [WaitStats – Cumulative – AsOf – sp_Blitz.sql]
- Returns WaitsStats from Server Start time till specific DateTime passed as
parameter value
- Returns WaitsStats from Server Start time till specific DateTime passed as
- [WaitStats – Delta – AsOf – Paul Randal – sp_Blitz.sql]
- Returns WaitStats collected between specific DateTime and prior Collection
- [WaitStats – During – Paul Randal – sp_Blitz.sql]
- Returns WaitStats between 2 DateTimes passed as
parameter
- Returns WaitStats between 2 DateTimes passed as
- [PerfMon – AsOf – Delta.sql]
- Returns PerfMon Stats collected between specific DateTime and prior Collection
- [FileStats – AsOf.sql]
- Return FileStats (Latencies) from Server Start time till specific DateTime passed as
parameter value
- Return FileStats (Latencies) from Server Start time till specific DateTime passed as
- [FileStats – AsOf – Delta.sql]
- Returns FileStats (Latencies) collected between specific DateTime and prior Collection
- [FileStats – During.sql]
- Returns FileStats (Latencies) between 2 DateTimes passed as parameter.
With sp_BlitzFirst & sp_WhoIsActive in a SQL Agent job with scheduled execution for every 10-15 minutes, you can look back in time in terms of What was running, its execution stats, file stats, wait stats and Perfmon counters. This would help you to answer anybody as why your server was slow at a particular point in time.
I hope you will find it useful. Thanks 🙂
you are one of the best SQL DBA I’ve even seen.
Thanks Praveen. Nice of you to say so.
Blogs are awesome