Automating sql server daily health checks

Dean Willson
Dean WillsonDirector of Application Development
*

Dean Willson presented to fwPASS on
10/22/2013
* Peace of Mind
* Redundancy
* One place to see exceptions
* Notifications: on success, on fail, or both?
* 40 success emails/day (full). Hundreds/day
(log). Did I get them all?

*
* Deleted or missing Agent schedule
* Disabled agent job
* No mail profile (ex: restored user databases,
but not master)

* Alert system not configured
* Job notification not configured
* Agent turned off
* Exchange was down

*
* Administrative utility database (or at least a table)
to store the daily check results from each server

* Scheduling method to run jobs like backups, index
rebuilds, consistency checks, etc.

* Text file list of SQL Servers/Instances to check
* Powershell script to query the servers
* Method to schedule the PoSH script (Scheduled
Task)

* Reporting Services (Improved, but optional)

*
* http://ola.hallengren.com/
* http://www.brentozar.com/blitz/

*
*
*
*
*
*
*
Automating sql server daily health checks
Automating sql server daily health checks
* Dean Willson
* Sr. Data Architect at Aunt Millie’s Bakeries
* fwPASS http://fwPASS.org
* deanowillson@gmail.com
* LinkedIn http://linkedin.com/in/deanwillson
* Twitter @deanwillson
* Blog http://dean-o.blogspot.com

*
1 of 14

Recommended

Index Reorganization and Rebuilding for Success by
Index Reorganization and Rebuilding for SuccessIndex Reorganization and Rebuilding for Success
Index Reorganization and Rebuilding for SuccessDean Willson
2.9K views32 slides
Log miner in oracle.ppt by
Log miner in oracle.pptLog miner in oracle.ppt
Log miner in oracle.pptHitesh Kumar Markam
607 views6 slides
Distcp gobblin by
Distcp gobblinDistcp gobblin
Distcp gobblinVasanth Rajamani
795 views26 slides
Database Source Control by
Database Source ControlDatabase Source Control
Database Source ControlDean Willson
922 views12 slides
Intro to Powershell by
Intro to PowershellIntro to Powershell
Intro to PowershellDean Willson
2.6K views15 slides
Take your database source code and data under control by
Take your database source code and data under controlTake your database source code and data under control
Take your database source code and data under controlMarcin Przepiórowski
123 views33 slides

More Related Content

Similar to Automating sql server daily health checks

Database security best_practices by
Database security best_practicesDatabase security best_practices
Database security best_practicesTarik Essawi
669 views22 slides
Sql server-performance-hafi by
Sql server-performance-hafiSql server-performance-hafi
Sql server-performance-hafizabi-babi
225 views49 slides
KoprowskiT_SQLSat409_MaintenancePlansForBeginners by
KoprowskiT_SQLSat409_MaintenancePlansForBeginnersKoprowskiT_SQLSat409_MaintenancePlansForBeginners
KoprowskiT_SQLSat409_MaintenancePlansForBeginnersTobias Koprowski
481 views39 slides
KoprowskiT_SQLSaturday409_MaintenancePlansForBeginners by
KoprowskiT_SQLSaturday409_MaintenancePlansForBeginnersKoprowskiT_SQLSaturday409_MaintenancePlansForBeginners
KoprowskiT_SQLSaturday409_MaintenancePlansForBeginnersTobias Koprowski
341 views39 slides
Digdagによる大規模データ処理の自動化とエラー処理 by
Digdagによる大規模データ処理の自動化とエラー処理Digdagによる大規模データ処理の自動化とエラー処理
Digdagによる大規模データ処理の自動化とエラー処理Sadayuki Furuhashi
23.7K views36 slides
OER UNIT 5 Audit by
OER UNIT  5 AuditOER UNIT  5 Audit
OER UNIT 5 AuditGirija Muscut
195 views38 slides

Similar to Automating sql server daily health checks(20)

Database security best_practices by Tarik Essawi
Database security best_practicesDatabase security best_practices
Database security best_practices
Tarik Essawi669 views
Sql server-performance-hafi by zabi-babi
Sql server-performance-hafiSql server-performance-hafi
Sql server-performance-hafi
zabi-babi225 views
KoprowskiT_SQLSat409_MaintenancePlansForBeginners by Tobias Koprowski
KoprowskiT_SQLSat409_MaintenancePlansForBeginnersKoprowskiT_SQLSat409_MaintenancePlansForBeginners
KoprowskiT_SQLSat409_MaintenancePlansForBeginners
Tobias Koprowski481 views
KoprowskiT_SQLSaturday409_MaintenancePlansForBeginners by Tobias Koprowski
KoprowskiT_SQLSaturday409_MaintenancePlansForBeginnersKoprowskiT_SQLSaturday409_MaintenancePlansForBeginners
KoprowskiT_SQLSaturday409_MaintenancePlansForBeginners
Tobias Koprowski341 views
Digdagによる大規模データ処理の自動化とエラー処理 by Sadayuki Furuhashi
Digdagによる大規模データ処理の自動化とエラー処理Digdagによる大規模データ処理の自動化とエラー処理
Digdagによる大規模データ処理の自動化とエラー処理
Sadayuki Furuhashi23.7K views
PostgreSQL Database Slides by metsarin
PostgreSQL Database SlidesPostgreSQL Database Slides
PostgreSQL Database Slides
metsarin5.3K views
Capturing, Analyzing, and Optimizing your SQL by Padraig O'Sullivan
Capturing, Analyzing, and Optimizing your SQLCapturing, Analyzing, and Optimizing your SQL
Capturing, Analyzing, and Optimizing your SQL
Padraig O'Sullivan3.9K views
Capturing, Analyzing and Optimizing MySQL by Ronald Bradford
Capturing, Analyzing and Optimizing MySQLCapturing, Analyzing and Optimizing MySQL
Capturing, Analyzing and Optimizing MySQL
Ronald Bradford5K views
Informix Data Streaming Overview by Brian Hughes
Informix Data Streaming OverviewInformix Data Streaming Overview
Informix Data Streaming Overview
Brian Hughes605 views
SQL Server 2014 Monitoring and Profiling by Abouzar Noori
SQL Server 2014 Monitoring and ProfilingSQL Server 2014 Monitoring and Profiling
SQL Server 2014 Monitoring and Profiling
Abouzar Noori111 views
2\9.SSIS 2008R2 _Training - Control Flow by Pramod Singla
2\9.SSIS 2008R2 _Training - Control Flow2\9.SSIS 2008R2 _Training - Control Flow
2\9.SSIS 2008R2 _Training - Control Flow
Pramod Singla501 views
Using power shell to improve sharepoint management by Mitch Darrow
Using power shell to improve sharepoint managementUsing power shell to improve sharepoint management
Using power shell to improve sharepoint management
Mitch Darrow358 views
DevOops & How I hacked you DevopsDays DC June 2015 by Chris Gates
DevOops & How I hacked you DevopsDays DC June 2015DevOops & How I hacked you DevopsDays DC June 2015
DevOops & How I hacked you DevopsDays DC June 2015
Chris Gates3.2K views
SSO 5.1 start-up issues by fbuechsel
SSO 5.1 start-up issuesSSO 5.1 start-up issues
SSO 5.1 start-up issues
fbuechsel3.4K views
Presentation cloud control enterprise manager 12c by xKinAnx
Presentation   cloud control enterprise manager 12cPresentation   cloud control enterprise manager 12c
Presentation cloud control enterprise manager 12c
xKinAnx354 views
Oracle audit and reporting in one hour or less by Leon Rzhemovskiy
Oracle audit and reporting in one hour or lessOracle audit and reporting in one hour or less
Oracle audit and reporting in one hour or less
Leon Rzhemovskiy951 views
The dr overnight dba by gdabate
The dr overnight dbaThe dr overnight dba
The dr overnight dba
gdabate458 views

More from Dean Willson

Intro to the Internet of Things using Netduino by
Intro to the Internet of Things using NetduinoIntro to the Internet of Things using Netduino
Intro to the Internet of Things using NetduinoDean Willson
3K views29 slides
Visual Studio 2012 Productivity Tools by
Visual Studio 2012 Productivity ToolsVisual Studio 2012 Productivity Tools
Visual Studio 2012 Productivity ToolsDean Willson
2.6K views14 slides
Continuous improvement in a professional organization by
Continuous improvement in a professional organizationContinuous improvement in a professional organization
Continuous improvement in a professional organizationDean Willson
1.2K views11 slides
Career Transitions - Ball State University, Six Sigma Speakers Series by
Career Transitions - Ball State University, Six Sigma Speakers SeriesCareer Transitions - Ball State University, Six Sigma Speakers Series
Career Transitions - Ball State University, Six Sigma Speakers SeriesDean Willson
908 views20 slides
Introduction to SQL Server 2008 Management Data Warehouse (MDW) by
Introduction to SQL Server 2008 Management Data Warehouse (MDW)Introduction to SQL Server 2008 Management Data Warehouse (MDW)
Introduction to SQL Server 2008 Management Data Warehouse (MDW)Dean Willson
1.4K views19 slides
Implementing ASP.NET Role Based Security by
Implementing ASP.NET Role Based SecurityImplementing ASP.NET Role Based Security
Implementing ASP.NET Role Based SecurityDean Willson
1.6K views24 slides

More from Dean Willson(9)

Intro to the Internet of Things using Netduino by Dean Willson
Intro to the Internet of Things using NetduinoIntro to the Internet of Things using Netduino
Intro to the Internet of Things using Netduino
Dean Willson3K views
Visual Studio 2012 Productivity Tools by Dean Willson
Visual Studio 2012 Productivity ToolsVisual Studio 2012 Productivity Tools
Visual Studio 2012 Productivity Tools
Dean Willson2.6K views
Continuous improvement in a professional organization by Dean Willson
Continuous improvement in a professional organizationContinuous improvement in a professional organization
Continuous improvement in a professional organization
Dean Willson1.2K views
Career Transitions - Ball State University, Six Sigma Speakers Series by Dean Willson
Career Transitions - Ball State University, Six Sigma Speakers SeriesCareer Transitions - Ball State University, Six Sigma Speakers Series
Career Transitions - Ball State University, Six Sigma Speakers Series
Dean Willson908 views
Introduction to SQL Server 2008 Management Data Warehouse (MDW) by Dean Willson
Introduction to SQL Server 2008 Management Data Warehouse (MDW)Introduction to SQL Server 2008 Management Data Warehouse (MDW)
Introduction to SQL Server 2008 Management Data Warehouse (MDW)
Dean Willson1.4K views
Implementing ASP.NET Role Based Security by Dean Willson
Implementing ASP.NET Role Based SecurityImplementing ASP.NET Role Based Security
Implementing ASP.NET Role Based Security
Dean Willson1.6K views
Introduction to SSRS Report Builder by Dean Willson
Introduction to SSRS Report BuilderIntroduction to SSRS Report Builder
Introduction to SSRS Report Builder
Dean Willson3K views
Data Mining with SQL Server 2005 by Dean Willson
Data Mining with SQL Server 2005Data Mining with SQL Server 2005
Data Mining with SQL Server 2005
Dean Willson784 views
Designing For Occasionally Connected Apps Slideshare by Dean Willson
Designing For Occasionally Connected Apps SlideshareDesigning For Occasionally Connected Apps Slideshare
Designing For Occasionally Connected Apps Slideshare
Dean Willson3.7K views

Recently uploaded

AI: mind, matter, meaning, metaphors, being, becoming, life values by
AI: mind, matter, meaning, metaphors, being, becoming, life valuesAI: mind, matter, meaning, metaphors, being, becoming, life values
AI: mind, matter, meaning, metaphors, being, becoming, life valuesTwain Liu 刘秋艳
34 views16 slides
Business Analyst Series 2023 - Week 3 Session 5 by
Business Analyst Series 2023 -  Week 3 Session 5Business Analyst Series 2023 -  Week 3 Session 5
Business Analyst Series 2023 - Week 3 Session 5DianaGray10
165 views20 slides
The Importance of Cybersecurity for Digital Transformation by
The Importance of Cybersecurity for Digital TransformationThe Importance of Cybersecurity for Digital Transformation
The Importance of Cybersecurity for Digital TransformationNUS-ISS
25 views26 slides
Micron CXL product and architecture update by
Micron CXL product and architecture updateMicron CXL product and architecture update
Micron CXL product and architecture updateCXL Forum
27 views7 slides
Empathic Computing: Delivering the Potential of the Metaverse by
Empathic Computing: Delivering  the Potential of the MetaverseEmpathic Computing: Delivering  the Potential of the Metaverse
Empathic Computing: Delivering the Potential of the MetaverseMark Billinghurst
449 views80 slides
Throughput by
ThroughputThroughput
ThroughputMoisés Armani Ramírez
32 views11 slides

Recently uploaded(20)

AI: mind, matter, meaning, metaphors, being, becoming, life values by Twain Liu 刘秋艳
AI: mind, matter, meaning, metaphors, being, becoming, life valuesAI: mind, matter, meaning, metaphors, being, becoming, life values
AI: mind, matter, meaning, metaphors, being, becoming, life values
Business Analyst Series 2023 - Week 3 Session 5 by DianaGray10
Business Analyst Series 2023 -  Week 3 Session 5Business Analyst Series 2023 -  Week 3 Session 5
Business Analyst Series 2023 - Week 3 Session 5
DianaGray10165 views
The Importance of Cybersecurity for Digital Transformation by NUS-ISS
The Importance of Cybersecurity for Digital TransformationThe Importance of Cybersecurity for Digital Transformation
The Importance of Cybersecurity for Digital Transformation
NUS-ISS25 views
Micron CXL product and architecture update by CXL Forum
Micron CXL product and architecture updateMicron CXL product and architecture update
Micron CXL product and architecture update
CXL Forum27 views
Empathic Computing: Delivering the Potential of the Metaverse by Mark Billinghurst
Empathic Computing: Delivering  the Potential of the MetaverseEmpathic Computing: Delivering  the Potential of the Metaverse
Empathic Computing: Delivering the Potential of the Metaverse
Mark Billinghurst449 views
Future of Learning - Yap Aye Wee.pdf by NUS-ISS
Future of Learning - Yap Aye Wee.pdfFuture of Learning - Yap Aye Wee.pdf
Future of Learning - Yap Aye Wee.pdf
NUS-ISS38 views
Understanding GenAI/LLM and What is Google Offering - Felix Goh by NUS-ISS
Understanding GenAI/LLM and What is Google Offering - Felix GohUnderstanding GenAI/LLM and What is Google Offering - Felix Goh
Understanding GenAI/LLM and What is Google Offering - Felix Goh
NUS-ISS39 views
Upskilling the Evolving Workforce with Digital Fluency for Tomorrow's Challen... by NUS-ISS
Upskilling the Evolving Workforce with Digital Fluency for Tomorrow's Challen...Upskilling the Evolving Workforce with Digital Fluency for Tomorrow's Challen...
Upskilling the Evolving Workforce with Digital Fluency for Tomorrow's Challen...
NUS-ISS23 views
"Thriving Culture in a Product Company — Practical Story", Volodymyr Tsukur by Fwdays
"Thriving Culture in a Product Company — Practical Story", Volodymyr Tsukur"Thriving Culture in a Product Company — Practical Story", Volodymyr Tsukur
"Thriving Culture in a Product Company — Practical Story", Volodymyr Tsukur
Fwdays40 views
Data-centric AI and the convergence of data and model engineering: opportunit... by Paolo Missier
Data-centric AI and the convergence of data and model engineering:opportunit...Data-centric AI and the convergence of data and model engineering:opportunit...
Data-centric AI and the convergence of data and model engineering: opportunit...
Paolo Missier29 views
MemVerge: Past Present and Future of CXL by CXL Forum
MemVerge: Past Present and Future of CXLMemVerge: Past Present and Future of CXL
MemVerge: Past Present and Future of CXL
CXL Forum110 views
Webinar : Competing for tomorrow’s leaders – How MENA insurers can win the wa... by The Digital Insurer
Webinar : Competing for tomorrow’s leaders – How MENA insurers can win the wa...Webinar : Competing for tomorrow’s leaders – How MENA insurers can win the wa...
Webinar : Competing for tomorrow’s leaders – How MENA insurers can win the wa...
The details of description: Techniques, tips, and tangents on alternative tex... by BookNet Canada
The details of description: Techniques, tips, and tangents on alternative tex...The details of description: Techniques, tips, and tangents on alternative tex...
The details of description: Techniques, tips, and tangents on alternative tex...
BookNet Canada110 views
How to reduce cold starts for Java Serverless applications in AWS at JCON Wor... by Vadym Kazulkin
How to reduce cold starts for Java Serverless applications in AWS at JCON Wor...How to reduce cold starts for Java Serverless applications in AWS at JCON Wor...
How to reduce cold starts for Java Serverless applications in AWS at JCON Wor...
Vadym Kazulkin70 views
PharoJS - Zürich Smalltalk Group Meetup November 2023 by Noury Bouraqadi
PharoJS - Zürich Smalltalk Group Meetup November 2023PharoJS - Zürich Smalltalk Group Meetup November 2023
PharoJS - Zürich Smalltalk Group Meetup November 2023
Noury Bouraqadi113 views
"How we switched to Kanban and how it integrates with product planning", Vady... by Fwdays
"How we switched to Kanban and how it integrates with product planning", Vady..."How we switched to Kanban and how it integrates with product planning", Vady...
"How we switched to Kanban and how it integrates with product planning", Vady...
Fwdays61 views
GigaIO: The March of Composability Onward to Memory with CXL by CXL Forum
GigaIO: The March of Composability Onward to Memory with CXLGigaIO: The March of Composability Onward to Memory with CXL
GigaIO: The March of Composability Onward to Memory with CXL
CXL Forum126 views

Automating sql server daily health checks

  • 1. * Dean Willson presented to fwPASS on 10/22/2013
  • 2. * Peace of Mind * Redundancy * One place to see exceptions * Notifications: on success, on fail, or both? * 40 success emails/day (full). Hundreds/day (log). Did I get them all? *
  • 3. * Deleted or missing Agent schedule * Disabled agent job * No mail profile (ex: restored user databases, but not master) * Alert system not configured * Job notification not configured * Agent turned off * Exchange was down *
  • 4. * Administrative utility database (or at least a table) to store the daily check results from each server * Scheduling method to run jobs like backups, index rebuilds, consistency checks, etc. * Text file list of SQL Servers/Instances to check * Powershell script to query the servers * Method to schedule the PoSH script (Scheduled Task) * Reporting Services (Improved, but optional) *
  • 6. *
  • 7. *
  • 8. *
  • 9. *
  • 10. *
  • 11. *
  • 14. * Dean Willson * Sr. Data Architect at Aunt Millie’s Bakeries * fwPASS http://fwPASS.org * deanowillson@gmail.com * LinkedIn http://linkedin.com/in/deanwillson * Twitter @deanwillson * Blog http://dean-o.blogspot.com *