Ce diaporama a bien été signalé.
Nous utilisons votre profil LinkedIn et vos données d’activité pour vous proposer des publicités personnalisées et pertinentes. Vous pouvez changer vos préférences de publicités à tout moment.
SQL Phone Home
Teaching SQL Server 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 softwa...
Beware of the Blogs
 There is some amazing advice out
there. But…
 Anybody can put bad advice on the
internet
 Trust pe...
Housekeeping
 Don’t let me talk too fast.
 Blog post at mikehillwig.com/go/phonehome
 Please complete your session eval...
What is this SQL Agent thing?
 SQL Server’s tool for automating processes
 Allows you to schedule things to run
 SQL Sc...
What are we doing with it?
 Simple cause and effect
 If you see something, say something
 Run a query that looks for pr...
Spam vs Mail
 Today’s examples send mail
 In a perfect world, you’d log a ticket with your support system
 But for the ...
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 hou...
See Something. Say Something.
Enough Talk
 Lets demo!
But wait. There’s more!
SQL Agent Alerting
 Several options
 Error message
 Severity condition
 Performance Conditions
SQL Phone Home: Teaching Your SQL Servers to Call for Help
SQL Phone Home: Teaching Your SQL Servers to Call for Help
Prochain SlideShare
Chargement dans…5
×

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

2 118 vues

Publié le

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

Publié dans : Technologie
  • Soyez le premier à commenter

  • Soyez le premier à aimer ceci

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

  1. 1. SQL Phone Home Teaching SQL Server to Call for Help
  2. 2. 3 mikehillwig.com twitter.com/mikehillwig linkedin.com/in/mikehillwig mike@mikehillwig.com
  3. 3. 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
  4. 4. 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.
  5. 5. Housekeeping  Don’t let me talk too fast.  Blog post at mikehillwig.com/go/phonehome  Please complete your session evaluations.
  6. 6. 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
  7. 7. 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
  8. 8. 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
  9. 9. My rule  All alerts must be actionable.  Everything else is noise.
  10. 10. 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
  11. 11. See Something. Say Something.
  12. 12. Enough Talk  Lets demo!
  13. 13. But wait. There’s more!
  14. 14. SQL Agent Alerting  Several options  Error message  Severity condition  Performance Conditions

×