In a maintenance plan, I can create a Notify Operator task to run on the success or failure of any task in my maintenance plan. There is also the option to notify if an SQL Server Agent job fails, so I can enable this on the job connected to the maintenance plan. What are the pros/cons of each approach? Should I use both approaches?
Notify operator task vs. notify if job fails
2.9k Views Asked by johnmcp At
1
There are 1 best solutions below
Related Questions in SQL-SERVER
- SQL server not returning all rows
- Big data with spatial queries/indexing
- Conditional null constraint on Null
- SQL Query - Order by String (which contains number and chars)
- Optimising a slow running SQL Server Stored procedure ordered by calculated fields to return a closest match
- Dynamics CRM Publishing Customizations - Multi Developers
- Is there anyway to set the relationship of many tables from Model?
- Implementation of Rank and Dense Rank in MySQL
- ORM Code First versa Database First in Production
- MVC : Insert data to two tables
- Data streams in case of Merge
- table with multiple IDs but seperate notes need sorting (Tried SQL code to make a union query)
- SQL table Partitioning by Year with ColumnStore index implemented on the table
- Defining which network to use for SQL Server 2012 Management Studio
- Fill a week days in a table with preceding Sundays value
Related Questions in SSIS
- Data streams in case of Merge
- SSIS Package Component Intermittently Failing
- How to run an SSIS package having excel source on a server where excel is not installed using SQL Server Agent Job
- SSIS exit code error with batch file
- excel datasource returning nulls with sql command
- String to DATETIME with TimeZone
- Error executing SSIS Package
- SSIS Stops at a Particular Record Count
- How to know expected completion time of SQL Server SSIS job?
- Accessing parent parameters from child package SSIS 2012
- Is there a way to export huge amount of data (more than a million rows) from SQL Server to csv?
- ssis - No value given for one or more required parameters
- Split CSV file based on first column value changes and load into destination table in SSIS?
- Automated file import with SSIS package
- SSIS ETL parallel extraction from a AS400 file
Related Questions in SQL-SERVER-AGENT
- SSIS package execution succeeds but doesn't do its job
- SQL Job (Send Mail) - error formatting query probably invalid parameters
- SQL Server Agent (SQLEXPRESS) automatically stop
- The request failed or service did not respond in a timely fashion 2014 SQL server // SQL server agent cannot start
- SQL Server Agent (2012) Inserting Quotes Into SSIS Parameters
- sp_send_dbmail fails in SQL Server Agent Job
- SQL Server 2008 Agent jobs. Two procedures and a view
- SQL Agent cannot access UNC share
- How to properly return error message from Console to SQL Server Agent
- Disable all SQL Agent Jobs in a particular category
- SSMS - SSRS job returns after deletion
- Getting errors while trying to get SQL Server Agent to work
- Copy records using stored procedure from SQL Server to SQL Server ( 2005)
- Maintenance Plan read Server Agent log
- SQL agent job failing at a step despite error handling
Related Questions in MAINTENANCE-PLAN
- Conditional maintenance plan for backups
- Maintenance Plan read Server Agent log
- What is an ideal way to put a Java Web Application (Struts) into Maintenace mode?
- SQL Maintenance Plan - Determining Duration of Steps
- How to retrieve all indexes in a database along with their data types in SQL Server 2005?
- Maintenance Plan Fails But Query Runs
- How do I maintain zabbix for MongoDB backup? with ansible
- Maintenance tasks on Azure SQL Managed instance
- Maintaining a Caching Appliance
- Database Maintenance
- Is it possible to create backup jobs on SQL Server 2008 R2 Express with SMO
- Notify operator task vs. notify if job fails
- Only one Storyboard for iPad and iPod/iPhone devices
- How running a program or PowerShell script, after the "SQL Server Maintenance" plan ended?
- Do re-indexing of database runs automatically with CRM app?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
The task would be appropriate if your maintenance plan continues executing after a specific task fails, i.e. the failure isn't critical and the overall plan execution was still considered successful, but someone should still be informed that one specific task failed.
The job notification is useful for unexpected failures; it's like a 'catch-all' handler for errors that you didn't anticipate and can't or shouldn't handle within the job itself.
So you might want to use both, if it makes sense for your particular case.