Intro on SP_Blitz by Brent Ozar
-
Upload
nicky-gianadda -
Category
Technology
-
view
279 -
download
2
Transcript of Intro on SP_Blitz by Brent Ozar
![Page 1: Intro on SP_Blitz by Brent Ozar](https://reader033.fdocuments.us/reader033/viewer/2022042716/55aa3c1b1a28ab282a8b482e/html5/thumbnails/1.jpg)
By Nicholas Gianadda
Professional Association for SQL Server
Tear into SQL Server with Brent Ozar’s sp_Blitz
![Page 2: Intro on SP_Blitz by Brent Ozar](https://reader033.fdocuments.us/reader033/viewer/2022042716/55aa3c1b1a28ab282a8b482e/html5/thumbnails/2.jpg)
How Did You
get HERE?
![Page 3: Intro on SP_Blitz by Brent Ozar](https://reader033.fdocuments.us/reader033/viewer/2022042716/55aa3c1b1a28ab282a8b482e/html5/thumbnails/3.jpg)
WHAT
CAN DO FOR
WHY
SHOULD ADOPT
THE
THEY NEED TO
TO TAKE
Stored Procedure
CAN DO FORDrop Table
SHOULD ADOPT
Select * from
UpdateDELETE
TO
GOGRANT Execute
![Page 4: Intro on SP_Blitz by Brent Ozar](https://reader033.fdocuments.us/reader033/viewer/2022042716/55aa3c1b1a28ab282a8b482e/html5/thumbnails/4.jpg)
![Page 5: Intro on SP_Blitz by Brent Ozar](https://reader033.fdocuments.us/reader033/viewer/2022042716/55aa3c1b1a28ab282a8b482e/html5/thumbnails/5.jpg)
What is Sp_Blitz
sp_Blitz is a Microsoft SQL Server instance health
script create by Brent Ozar. It uses system views,
DMVs and other state tracking tables to diagnose
common problems with configuration, security and
performance.
![Page 6: Intro on SP_Blitz by Brent Ozar](https://reader033.fdocuments.us/reader033/viewer/2022042716/55aa3c1b1a28ab282a8b482e/html5/thumbnails/6.jpg)
Your SQL Server isn’t
going to maintain itself
Maintenance on a SQL
server will help your systems
remain fast and secure
![Page 7: Intro on SP_Blitz by Brent Ozar](https://reader033.fdocuments.us/reader033/viewer/2022042716/55aa3c1b1a28ab282a8b482e/html5/thumbnails/7.jpg)
So, what makes
sp_Blitz so GREAT?
There are many tools out there that
can show you diagnostic
information about your SQL server.
Sp_Blitz takes this concept one
step further by including priorities to
clue you in to which items you
should focus on and direct links to
articles on www.brentozar.com that
explain the issue in great detail and
shows you how to resolve it!
![Page 8: Intro on SP_Blitz by Brent Ozar](https://reader033.fdocuments.us/reader033/viewer/2022042716/55aa3c1b1a28ab282a8b482e/html5/thumbnails/8.jpg)
What does it look like?
![Page 9: Intro on SP_Blitz by Brent Ozar](https://reader033.fdocuments.us/reader033/viewer/2022042716/55aa3c1b1a28ab282a8b482e/html5/thumbnails/9.jpg)
Or This
![Page 10: Intro on SP_Blitz by Brent Ozar](https://reader033.fdocuments.us/reader033/viewer/2022042716/55aa3c1b1a28ab282a8b482e/html5/thumbnails/10.jpg)
Why should I use it?
• One time checkup
• Trending your server
• Finding Security flaws
• Great Articles and
Videos to explain the
issues
![Page 11: Intro on SP_Blitz by Brent Ozar](https://reader033.fdocuments.us/reader033/viewer/2022042716/55aa3c1b1a28ab282a8b482e/html5/thumbnails/11.jpg)
![Page 12: Intro on SP_Blitz by Brent Ozar](https://reader033.fdocuments.us/reader033/viewer/2022042716/55aa3c1b1a28ab282a8b482e/html5/thumbnails/12.jpg)
Now What? I love what I found and I would like to receive this info weekly!!!
• Setup sp_Blitz as a SQL Job
• For emails, use the following parameters:
@EmailRecipients VARCHAR(MAX) = NULL
@EmailProfile sysname = NULL
• Log to a table, use the following parameters:
@OutputDatabaseName NVARCHAR(128) = NULL
@OutputSchemaName NVARCHAR(256) = NULL
@OutputTableName NVARCHAR(256) = NULL
![Page 13: Intro on SP_Blitz by Brent Ozar](https://reader033.fdocuments.us/reader033/viewer/2022042716/55aa3c1b1a28ab282a8b482e/html5/thumbnails/13.jpg)
Now What? I love what I found and I would like to receive this info weekly!!!
• Setup sp_Blitz as a SQL Job
• For emails, use the following parameters:
@EmailRecipients VARCHAR(MAX) = NULL
@EmailProfile sysname = NULL
• Log to a table, use the following parameters:
@OutputDatabaseName NVARCHAR(128) = NULL
@OutputSchemaName NVARCHAR(256) = NULL
@OutputTableName NVARCHAR(256) = NULL
![Page 14: Intro on SP_Blitz by Brent Ozar](https://reader033.fdocuments.us/reader033/viewer/2022042716/55aa3c1b1a28ab282a8b482e/html5/thumbnails/14.jpg)
What else can I do?
• There are tons of options for keeping an eye on
your server and digging into problems, Here are
a few of my favorites
![Page 15: Intro on SP_Blitz by Brent Ozar](https://reader033.fdocuments.us/reader033/viewer/2022042716/55aa3c1b1a28ab282a8b482e/html5/thumbnails/15.jpg)
SQLjobviz
• Visually
review the
history of
your SQL
jobs to see
when they
run and if
they were
successful
![Page 16: Intro on SP_Blitz by Brent Ozar](https://reader033.fdocuments.us/reader033/viewer/2022042716/55aa3c1b1a28ab282a8b482e/html5/thumbnails/16.jpg)
SQL Sentry Plan Explorer
• Additional
tool to quickly
identify and
help solve
issues with
your queries