Solved

How to send email using SSIS package whenever there is failure in package execution

Posted on 2011-03-22
6
1,397 Views
Last Modified: 2012-06-27
Hi experts ....need help
I have a case scenario

When a package fails, I must immediately send email messages that identify the task that failed and describe the error in detail.

how to build package in SSIS
need details steps plus some screenshots if possible
0
Comment
Question by:sqlcurious
  • 3
  • 3
6 Comments
 
LVL 4

Expert Comment

by:jimtpowers
ID: 35192611
Assuming you will run the SSIS package as an agent job, setup the job to email you when the job execution fails. The log from the job will tell you where it failed.
0
 

Author Comment

by:sqlcurious
ID: 35192755

thanks for your reply


Is there any way that i can do it using the event handler in SSIS  and creating the flow? what could be the steps and waht different tasks i need to use and how
0
 
LVL 4

Expert Comment

by:jimtpowers
ID: 35192885
When you have your "successfull" flow developed, you'll notice when you click on a control flow object, another green arrow shows up. Link that to your send mail task then right-click it and select failure. Then, drag the green arrow from the send mail task and link that to the next task in your original flow.

This is just book knowledge. I have not actually done this since I rely on the logs to tell me where my SSIS package failed. Example
0
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 

Author Comment

by:sqlcurious
ID: 35193113
hi expert

 
This is my first time in creating ssis package and doing error handling
how to setup to run ssis package to run as an agent job

As per your first suggestion how to setup the job to email me ,when the job execution fails.The project req is----- even if the package execution fails for particular task,the package should run for the remaining tasks and should send  en email where the execution failed.

please provide me in detail


0
 

Author Comment

by:sqlcurious
ID: 35193132
i have attached the screenshot of my package flow
packagescreenshot.docx
0
 
LVL 4

Accepted Solution

by:
jimtpowers earned 500 total points
ID: 35193222
I just found another article you may want to take a look at. This author does a little more than I get the impression you are looking to do but should give you all of the detail you are looking for.

Handling Errors in SSIS
0

Featured Post

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Sql query 107 64
SQL 2008 with .NET 4.5.2 4 30
SQL Server 2012 r2 - Varible Table 3 25
Loops and updating in SQL Query 9 31
by Mark Wills Attending one of Rob Farley's seminars the other day, I heard the phrase "The Accidental DBA" and fell in love with it. It got me thinking about the plight of the newcomer to SQL Server...  So if you are the accidental DBA, or, simp…
INTRODUCTION: While tying your database objects into builds and your enterprise source control system takes a third-party product (like Visual Studio Database Edition or Red-Gate's SQL Source Control), you can achieve some protection using a sing…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question