A Comparison of Running Economy Across Seven Carbon-Plated ...
Seven Jobs You Should Be Running #sqlsat126
-
Upload
mike-hillwig -
Category
Technology
-
view
914 -
download
0
Transcript of Seven Jobs You Should Be Running #sqlsat126
![Page 1: Seven Jobs You Should Be Running #sqlsat126](https://reader030.fdocuments.in/reader030/viewer/2022032422/55a986a61a28ab87248b4607/html5/thumbnails/1.jpg)
Seven SQL Agent Jobs You Should Be Running
Mike Hillwig Boston, MA
![Page 2: Seven Jobs You Should Be Running #sqlsat126](https://reader030.fdocuments.in/reader030/viewer/2022032422/55a986a61a28ab87248b4607/html5/thumbnails/2.jpg)
Mike Hillwig
• AKA The Cranky DBA • SQL Server DBA • Working with SQL Server since SQL 7 • Senior DBA at hosFng division of a financial soIware company
• Know just enough Oracle to be dangerous • Resume includes Acme Packet, Shawmut Design and ConstrucFon, Equitable Resources
![Page 3: Seven Jobs You Should Be Running #sqlsat126](https://reader030.fdocuments.in/reader030/viewer/2022032422/55a986a61a28ab87248b4607/html5/thumbnails/3.jpg)
![Page 4: Seven Jobs You Should Be Running #sqlsat126](https://reader030.fdocuments.in/reader030/viewer/2022032422/55a986a61a28ab87248b4607/html5/thumbnails/4.jpg)
Photo Credit: Nedra Isenberg
![Page 5: Seven Jobs You Should Be Running #sqlsat126](https://reader030.fdocuments.in/reader030/viewer/2022032422/55a986a61a28ab87248b4607/html5/thumbnails/5.jpg)
![Page 6: Seven Jobs You Should Be Running #sqlsat126](https://reader030.fdocuments.in/reader030/viewer/2022032422/55a986a61a28ab87248b4607/html5/thumbnails/6.jpg)
![Page 7: Seven Jobs You Should Be Running #sqlsat126](https://reader030.fdocuments.in/reader030/viewer/2022032422/55a986a61a28ab87248b4607/html5/thumbnails/7.jpg)
`
![Page 8: Seven Jobs You Should Be Running #sqlsat126](https://reader030.fdocuments.in/reader030/viewer/2022032422/55a986a61a28ab87248b4607/html5/thumbnails/8.jpg)
![Page 9: Seven Jobs You Should Be Running #sqlsat126](https://reader030.fdocuments.in/reader030/viewer/2022032422/55a986a61a28ab87248b4607/html5/thumbnails/9.jpg)
![Page 10: Seven Jobs You Should Be Running #sqlsat126](https://reader030.fdocuments.in/reader030/viewer/2022032422/55a986a61a28ab87248b4607/html5/thumbnails/10.jpg)
![Page 11: Seven Jobs You Should Be Running #sqlsat126](https://reader030.fdocuments.in/reader030/viewer/2022032422/55a986a61a28ab87248b4607/html5/thumbnails/11.jpg)
![Page 12: Seven Jobs You Should Be Running #sqlsat126](https://reader030.fdocuments.in/reader030/viewer/2022032422/55a986a61a28ab87248b4607/html5/thumbnails/12.jpg)
Obligatory Social Networking Slide
• crankydba.com • sqlserverpedia.com • twiVer.com/mikehillwig • anysocialmediasite.com/mikehillwig
![Page 13: Seven Jobs You Should Be Running #sqlsat126](https://reader030.fdocuments.in/reader030/viewer/2022032422/55a986a61a28ab87248b4607/html5/thumbnails/13.jpg)
Housekeeping
• Slides and scripts at sqlsaturday.com • Blog post at crankydba.com/go/7jobs • Please complete your evaluaFons • Don’t let me talk too fast
![Page 14: Seven Jobs You Should Be Running #sqlsat126](https://reader030.fdocuments.in/reader030/viewer/2022032422/55a986a61a28ab87248b4607/html5/thumbnails/14.jpg)
![Page 15: Seven Jobs You Should Be Running #sqlsat126](https://reader030.fdocuments.in/reader030/viewer/2022032422/55a986a61a28ab87248b4607/html5/thumbnails/15.jpg)
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
• Test everything in your own test environment first.
• I don’t trust people who say “ALWAYS” or “NEVER”
![Page 16: Seven Jobs You Should Be Running #sqlsat126](https://reader030.fdocuments.in/reader030/viewer/2022032422/55a986a61a28ab87248b4607/html5/thumbnails/16.jpg)
![Page 17: Seven Jobs You Should Be Running #sqlsat126](https://reader030.fdocuments.in/reader030/viewer/2022032422/55a986a61a28ab87248b4607/html5/thumbnails/17.jpg)
![Page 18: Seven Jobs You Should Be Running #sqlsat126](https://reader030.fdocuments.in/reader030/viewer/2022032422/55a986a61a28ab87248b4607/html5/thumbnails/18.jpg)
![Page 19: Seven Jobs You Should Be Running #sqlsat126](https://reader030.fdocuments.in/reader030/viewer/2022032422/55a986a61a28ab87248b4607/html5/thumbnails/19.jpg)
![Page 20: Seven Jobs You Should Be Running #sqlsat126](https://reader030.fdocuments.in/reader030/viewer/2022032422/55a986a61a28ab87248b4607/html5/thumbnails/20.jpg)
![Page 21: Seven Jobs You Should Be Running #sqlsat126](https://reader030.fdocuments.in/reader030/viewer/2022032422/55a986a61a28ab87248b4607/html5/thumbnails/21.jpg)
![Page 22: Seven Jobs You Should Be Running #sqlsat126](https://reader030.fdocuments.in/reader030/viewer/2022032422/55a986a61a28ab87248b4607/html5/thumbnails/22.jpg)
![Page 23: Seven Jobs You Should Be Running #sqlsat126](https://reader030.fdocuments.in/reader030/viewer/2022032422/55a986a61a28ab87248b4607/html5/thumbnails/23.jpg)
![Page 24: Seven Jobs You Should Be Running #sqlsat126](https://reader030.fdocuments.in/reader030/viewer/2022032422/55a986a61a28ab87248b4607/html5/thumbnails/24.jpg)
![Page 25: Seven Jobs You Should Be Running #sqlsat126](https://reader030.fdocuments.in/reader030/viewer/2022032422/55a986a61a28ab87248b4607/html5/thumbnails/25.jpg)
WITFM?
![Page 26: Seven Jobs You Should Be Running #sqlsat126](https://reader030.fdocuments.in/reader030/viewer/2022032422/55a986a61a28ab87248b4607/html5/thumbnails/26.jpg)
Who are YOU?
• Windows admin turned accidental DBA • Junior DBA learning to monitor your environment
• Mid-‐Level DBA who just inherited a bunch of servers and need a sanity check
• Senior DBA who needs a framework for monitoring servers
• Any DBA doesn’t have monitoring tools
![Page 27: Seven Jobs You Should Be Running #sqlsat126](https://reader030.fdocuments.in/reader030/viewer/2022032422/55a986a61a28ab87248b4607/html5/thumbnails/27.jpg)
WHAT’S IN THIS FOR ME?
![Page 28: Seven Jobs You Should Be Running #sqlsat126](https://reader030.fdocuments.in/reader030/viewer/2022032422/55a986a61a28ab87248b4607/html5/thumbnails/28.jpg)
Windows Server Admins
• A beVer understanding of this SQL Server Agent thingie
![Page 29: Seven Jobs You Should Be Running #sqlsat126](https://reader030.fdocuments.in/reader030/viewer/2022032422/55a986a61a28ab87248b4607/html5/thumbnails/29.jpg)
Junior DBAs
• Ready-‐to-‐use scripts that you can deploy in your environment
![Page 30: Seven Jobs You Should Be Running #sqlsat126](https://reader030.fdocuments.in/reader030/viewer/2022032422/55a986a61a28ab87248b4607/html5/thumbnails/30.jpg)
More Senior DBAs
• Framework for building your own alerts
![Page 31: Seven Jobs You Should Be Running #sqlsat126](https://reader030.fdocuments.in/reader030/viewer/2022032422/55a986a61a28ab87248b4607/html5/thumbnails/31.jpg)
What is this SQL Agent thingie?
• SQL Server’s tool for automaFng processes • Allows you to schedule things to run – SQL Scripts – Windows executables – WMI scripts
• Can even watch for certain errors or situaFons and take acFon
![Page 32: Seven Jobs You Should Be Running #sqlsat126](https://reader030.fdocuments.in/reader030/viewer/2022032422/55a986a61a28ab87248b4607/html5/thumbnails/32.jpg)
![Page 33: Seven Jobs You Should Be Running #sqlsat126](https://reader030.fdocuments.in/reader030/viewer/2022032422/55a986a61a28ab87248b4607/html5/thumbnails/33.jpg)
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
![Page 34: Seven Jobs You Should Be Running #sqlsat126](https://reader030.fdocuments.in/reader030/viewer/2022032422/55a986a61a28ab87248b4607/html5/thumbnails/34.jpg)
Spam vs Mail
• Today’s examples send mail • In a perfect world, you’d log a Fcket 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
![Page 35: Seven Jobs You Should Be Running #sqlsat126](https://reader030.fdocuments.in/reader030/viewer/2022032422/55a986a61a28ab87248b4607/html5/thumbnails/35.jpg)
![Page 36: Seven Jobs You Should Be Running #sqlsat126](https://reader030.fdocuments.in/reader030/viewer/2022032422/55a986a61a28ab87248b4607/html5/thumbnails/36.jpg)
What Seven Things Cause Our Dogs to bark?
1. Seeing themselves in the mirror 2. Autoshrink enabled. 3. Databases never backed up or no full backup
in X hours 4. No transacFon 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
![Page 37: Seven Jobs You Should Be Running #sqlsat126](https://reader030.fdocuments.in/reader030/viewer/2022032422/55a986a61a28ab87248b4607/html5/thumbnails/37.jpg)
Enough Talk
• Lets demo!
![Page 38: Seven Jobs You Should Be Running #sqlsat126](https://reader030.fdocuments.in/reader030/viewer/2022032422/55a986a61a28ab87248b4607/html5/thumbnails/38.jpg)