SlideShare a Scribd company logo
SQL Phone Home
Teaching SQL Server to Call for Help
SQL Phone Home: Teaching Your SQL Servers to Call for Help
3
mikehillwig.com
twitter.com/mikehillwig
linkedin.com/in/mikehillwig
mike@mikehillwig.com
Mike Hillwig
 SQL Server DBA
 Working with SQL Server since SQL 7
 Senior DBA at hosting division of a financial software
company owned by a large financial institution
 Resume includes Acme Packet Oracle, Shawmut Design
and Construction, Equitable Resources
 Certified in ITIL Foundations
Beware of the Blogs
 There is some amazing advice out
there. But…
 Anybody can put bad advice on the
internet
 Trust people you know
 Assume I’m an idiot
 I don’t trust people who say
“ALWAYS” or “NEVER”
 Test everything in your own test
environment first.
Housekeeping
 Don’t let me talk too fast.
 Blog post at mikehillwig.com/go/phonehome
 Please complete your session evaluations.
What is this SQL Agent thing?
 SQL Server’s tool for automating processes
 Allows you to schedule things to run
 SQL Scripts
 Windows executables
 WMI scripts
 Can even watch for certain errors or situations and take
action
What are we doing with it?
 Simple cause and effect
 If you see something, say something
 Run a query that looks for problems
 If problem is found, call for help
Spam vs Mail
 Today’s examples send mail
 In a perfect world, you’d log a ticket with your support system
 But for the sake of simplicity in our scripts, we’re sending mail
today
 Make sure your SQL Agent can send mail
 Enable Mail XPs
 Also going to write to the Windows Application Event Log
My rule
 All alerts must be actionable.
 Everything else is noise.
What are some examples?
1. Server restarted
2. Autoshrink enabled.
3. Databases never backed up or no full backup in X hours
4. No transaction log backup in X hours
5. Default File Growths
6. Databases with datafiles that don’t grow
7. Failed jobs in the past 24 hours
See Something. Say Something.
SQL Phone Home: Teaching Your SQL Servers to Call for Help
Enough Talk
 Lets demo!
But wait. There’s more!
SQL Agent Alerting
 Several options
 Error message
 Severity condition
 Performance Conditions

More Related Content

What's hot (20)

ODP
Sales video
Digital Speak
 
PPTX
Humans by the hundred (DevOps Days Ohio)
Yelp Engineering
 
PDF
Product Development at Flood IO
90kts
 
PDF
Reactive Guide for Spring MVC - Rossen Stoyanchev
VMware Tanzu
 
PPT
Email Management
Wouter Gheysen
 
PDF
How I learned to stop worrying and love the bugs with Jenkins & Continuous In...
Hervé Vũ Roussel
 
PDF
Testing Portugal: Making Your Team Awesome as Just a tester
Maaret Pyhäjärvi
 
DOCX
Importance of-website-backups
mymlmfinder
 
PPTX
How to make 50$ a day without doing anything (no investment)
FizzyElf1337
 
PPTX
Exam results in SaaS
instantexamresults
 
PPTX
Sustainable Automation Frameworks by Kelsey Shannahan
QA or the Highway
 
PDF
W3 schools javascript quiz test
Himansu Sekhar Swain
 
PPTX
Introduction to php for absolute beginners
Jeremiah Tillman
 
PPT
IWMW 2009: Lightweight Web Management
IWMW
 
PDF
Your time saving front end workflow
Icalia Labs
 
PDF
Telling Tales and Solving Crimes with New Relic
James Ford
 
PPTX
Html web workers
AbhishekMondal42
 
PDF
Bootstrapping your startup & building it lean: stop wasting time
Joel Gascoigne
 
PDF
Wp speedy make your word-press website loads faster
Sasa Bastian Jovanovic
 
PPTX
10 WordPress Tips
Annie Lee
 
Sales video
Digital Speak
 
Humans by the hundred (DevOps Days Ohio)
Yelp Engineering
 
Product Development at Flood IO
90kts
 
Reactive Guide for Spring MVC - Rossen Stoyanchev
VMware Tanzu
 
Email Management
Wouter Gheysen
 
How I learned to stop worrying and love the bugs with Jenkins & Continuous In...
Hervé Vũ Roussel
 
Testing Portugal: Making Your Team Awesome as Just a tester
Maaret Pyhäjärvi
 
Importance of-website-backups
mymlmfinder
 
How to make 50$ a day without doing anything (no investment)
FizzyElf1337
 
Exam results in SaaS
instantexamresults
 
Sustainable Automation Frameworks by Kelsey Shannahan
QA or the Highway
 
W3 schools javascript quiz test
Himansu Sekhar Swain
 
Introduction to php for absolute beginners
Jeremiah Tillman
 
IWMW 2009: Lightweight Web Management
IWMW
 
Your time saving front end workflow
Icalia Labs
 
Telling Tales and Solving Crimes with New Relic
James Ford
 
Html web workers
AbhishekMondal42
 
Bootstrapping your startup & building it lean: stop wasting time
Joel Gascoigne
 
Wp speedy make your word-press website loads faster
Sasa Bastian Jovanovic
 
10 WordPress Tips
Annie Lee
 

Similar to SQL Phone Home: Teaching Your SQL Servers to Call for Help (20)

PDF
Seven Jobs You Should Be Running #sqlsat126
Mike Hillwig
 
PPTX
How not to be a cranky dba
Mike Hillwig
 
PPTX
Roman Rehak: 24/7 Database Administration + Database Mail Unleashed
MSDEVMTL
 
PDF
How Not to be a Cranky DBA
Mike Hillwig
 
PDF
Becoming a Rock Star DBA
Sheeri Cabral
 
PPTX
Sql Automation 20090610
livingco
 
PPTX
Sql dba and msbi placement training usa
sssql
 
PPTX
Sql server operational best practices notes from the field - charley hanan...
Charley Hanania
 
DOC
sqlserverdbasanjay
sanjay kumar
 
PPTX
Sql server 2012 dba online training
sqlmasters
 
PPTX
Top 10 DBA Mistakes on Microsoft SQL Server
Kevin Kline
 
PPTX
Let's get along
Yaroslav Alpizar Zhuravlev
 
PPTX
Project oriented online realtime training on sql
sssql
 
PPTX
Dba101
Pratik joshi
 
PPT
Oracle DBA Priority Tasks
santosh kodandapani
 
PDF
MSSQL Server - Automation
Ram Kedem
 
PPTX
To Hire, or to train, that is the question (Percona Live 2014)
Geoffrey Anderson
 
DOC
Sudhakar A
Sudhakar A
 
DOCX
Trainmesfottech - Sql Server DBA Training Course Content
Trainmesofttech
 
PDF
New Server in an Hour
Mike Hillwig
 
Seven Jobs You Should Be Running #sqlsat126
Mike Hillwig
 
How not to be a cranky dba
Mike Hillwig
 
Roman Rehak: 24/7 Database Administration + Database Mail Unleashed
MSDEVMTL
 
How Not to be a Cranky DBA
Mike Hillwig
 
Becoming a Rock Star DBA
Sheeri Cabral
 
Sql Automation 20090610
livingco
 
Sql dba and msbi placement training usa
sssql
 
Sql server operational best practices notes from the field - charley hanan...
Charley Hanania
 
sqlserverdbasanjay
sanjay kumar
 
Sql server 2012 dba online training
sqlmasters
 
Top 10 DBA Mistakes on Microsoft SQL Server
Kevin Kline
 
Project oriented online realtime training on sql
sssql
 
Dba101
Pratik joshi
 
Oracle DBA Priority Tasks
santosh kodandapani
 
MSSQL Server - Automation
Ram Kedem
 
To Hire, or to train, that is the question (Percona Live 2014)
Geoffrey Anderson
 
Sudhakar A
Sudhakar A
 
Trainmesfottech - Sql Server DBA Training Course Content
Trainmesofttech
 
New Server in an Hour
Mike Hillwig
 
Ad

Recently uploaded (20)

PDF
"AI Transformation: Directions and Challenges", Pavlo Shaternik
Fwdays
 
PPTX
"Autonomy of LLM Agents: Current State and Future Prospects", Oles` Petriv
Fwdays
 
PPTX
AI Penetration Testing Essentials: A Cybersecurity Guide for 2025
defencerabbit Team
 
PDF
HubSpot Main Hub: A Unified Growth Platform
Jaswinder Singh
 
PDF
Exolore The Essential AI Tools in 2025.pdf
Srinivasan M
 
PPTX
From Sci-Fi to Reality: Exploring AI Evolution
Svetlana Meissner
 
PDF
CIFDAQ Market Insights for July 7th 2025
CIFDAQ
 
PPTX
UiPath Academic Alliance Educator Panels: Session 2 - Business Analyst Content
DianaGray10
 
PDF
From Code to Challenge: Crafting Skill-Based Games That Engage and Reward
aiyshauae
 
PDF
Achieving Consistent and Reliable AI Code Generation - Medusa AI
medusaaico
 
PDF
Smart Trailers 2025 Update with History and Overview
Paul Menig
 
PDF
HCIP-Data Center Facility Deployment V2.0 Training Material (Without Remarks ...
mcastillo49
 
PDF
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
PDF
CIFDAQ Token Spotlight for 9th July 2025
CIFDAQ
 
PDF
Using FME to Develop Self-Service CAD Applications for a Major UK Police Force
Safe Software
 
PDF
Jak MŚP w Europie Środkowo-Wschodniej odnajdują się w świecie AI
dominikamizerska1
 
PDF
DevBcn - Building 10x Organizations Using Modern Productivity Metrics
Justin Reock
 
PPTX
Q2 FY26 Tableau User Group Leader Quarterly Call
lward7
 
PDF
Complete JavaScript Notes: From Basics to Advanced Concepts.pdf
haydendavispro
 
PDF
Fl Studio 24.2.2 Build 4597 Crack for Windows Free Download 2025
faizk77g
 
"AI Transformation: Directions and Challenges", Pavlo Shaternik
Fwdays
 
"Autonomy of LLM Agents: Current State and Future Prospects", Oles` Petriv
Fwdays
 
AI Penetration Testing Essentials: A Cybersecurity Guide for 2025
defencerabbit Team
 
HubSpot Main Hub: A Unified Growth Platform
Jaswinder Singh
 
Exolore The Essential AI Tools in 2025.pdf
Srinivasan M
 
From Sci-Fi to Reality: Exploring AI Evolution
Svetlana Meissner
 
CIFDAQ Market Insights for July 7th 2025
CIFDAQ
 
UiPath Academic Alliance Educator Panels: Session 2 - Business Analyst Content
DianaGray10
 
From Code to Challenge: Crafting Skill-Based Games That Engage and Reward
aiyshauae
 
Achieving Consistent and Reliable AI Code Generation - Medusa AI
medusaaico
 
Smart Trailers 2025 Update with History and Overview
Paul Menig
 
HCIP-Data Center Facility Deployment V2.0 Training Material (Without Remarks ...
mcastillo49
 
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
CIFDAQ Token Spotlight for 9th July 2025
CIFDAQ
 
Using FME to Develop Self-Service CAD Applications for a Major UK Police Force
Safe Software
 
Jak MŚP w Europie Środkowo-Wschodniej odnajdują się w świecie AI
dominikamizerska1
 
DevBcn - Building 10x Organizations Using Modern Productivity Metrics
Justin Reock
 
Q2 FY26 Tableau User Group Leader Quarterly Call
lward7
 
Complete JavaScript Notes: From Basics to Advanced Concepts.pdf
haydendavispro
 
Fl Studio 24.2.2 Build 4597 Crack for Windows Free Download 2025
faizk77g
 
Ad

SQL Phone Home: Teaching Your SQL Servers to Call for Help

  • 1. SQL Phone Home Teaching SQL Server to Call for Help
  • 4. Mike Hillwig  SQL Server DBA  Working with SQL Server since SQL 7  Senior DBA at hosting division of a financial software company owned by a large financial institution  Resume includes Acme Packet Oracle, Shawmut Design and Construction, Equitable Resources  Certified in ITIL Foundations
  • 5. Beware of the Blogs  There is some amazing advice out there. But…  Anybody can put bad advice on the internet  Trust people you know  Assume I’m an idiot  I don’t trust people who say “ALWAYS” or “NEVER”  Test everything in your own test environment first.
  • 6. Housekeeping  Don’t let me talk too fast.  Blog post at mikehillwig.com/go/phonehome  Please complete your session evaluations.
  • 7. What is this SQL Agent thing?  SQL Server’s tool for automating processes  Allows you to schedule things to run  SQL Scripts  Windows executables  WMI scripts  Can even watch for certain errors or situations and take action
  • 8. What are we doing with it?  Simple cause and effect  If you see something, say something  Run a query that looks for problems  If problem is found, call for help
  • 9. Spam vs Mail  Today’s examples send mail  In a perfect world, you’d log a ticket with your support system  But for the sake of simplicity in our scripts, we’re sending mail today  Make sure your SQL Agent can send mail  Enable Mail XPs  Also going to write to the Windows Application Event Log
  • 10. My rule  All alerts must be actionable.  Everything else is noise.
  • 11. What are some examples? 1. Server restarted 2. Autoshrink enabled. 3. Databases never backed up or no full backup in X hours 4. No transaction log backup in X hours 5. Default File Growths 6. Databases with datafiles that don’t grow 7. Failed jobs in the past 24 hours
  • 12. See Something. Say Something.
  • 16. SQL Agent Alerting  Several options  Error message  Severity condition  Performance Conditions

Editor's Notes

  • #3: SQL Server MVP Live in Boston Organizer of SQL Saturday and SQL Saturday BI Edition Pag dad Frequent flyer (this photo was taken in Amsterdam on my way to India in 2013) Native Yinzer/Pittsburgher
  • #7: Good advice out there, but… Lots of outdated information. Do DB servers really need 2x RAM for PF?