SQL Server Agent The Life Preserver for the Drowning DBA Lance Tidwell
About me Working as multi-hatted SQL Server DBA for the last 10 years working with TicketCity in Austin, TX for the last 9 years. Twitter: @Lance_LT Email: silentdba@gmail.com Blog: lancetidwell.com
Why are you drowning? Monthly, quarterly and yearly reports and processes. One time processes needing to be run outside of normal business periods. Data cleanup and data process tasks. Too many things to keep a eye out for on your servers. JOBS JOBS JOBS ALERTS
Agenda Configure and setting up SQL Server Agent Creating Operators, Jobs and Alerts Job History Common issues that can occur
PowerPoint Presentation
Operators Operators enable notification and monitoring capabilities of SQL Server Agent. Operators are setup to receive notification on jobs failures/successes and when alerts are raised Best to have operators setup to go to email groups instead of specific individuals Need to setup database mail before you can setup operators
Jobs On schedule or demand task. Can be reoccurring or one time Can run TSQL, SSIS packages, PowerShell Scripts and much more. A job owner should not be a user account.
CREATE A JOB DEMO
Alerts Performance or event based notifications Can have multiple notify operators Can run a job in response to alert being raised.
f
Create Alert Demo
Additional Help Glenn Berry: Critical Alerts article: http://www.sqlskills.com/blogs/glenn/how-to-create-sql-server-agent-alerts-for-critical-errors/ BOL Creating a WMI alert: http://msdn.microsoft.com/en-us/library/ms186385.aspx Twitter: @Lance_LT Email: silentdba@gmail.com