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
Anybody can put bad advice on the
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
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
Can even watch for certain errors or situations and take
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
Make sure your SQL Agent can send mail
Enable Mail XPs
Also going to write to the Windows Application Event Log
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