Solved

SSIS: Scope of OnError Event Handler

Posted on 2010-09-04
4
774 Views
Last Modified: 2013-11-10
My SSIS package uses a connection string populated by a user defined variable.

I want to put an event handler on the connection manager to execute a task when there is an error with the connection string.

I have tried placing my task in the OnError Event Handler.

Here is the problem...........I have testing it with a bad connection string but the error seems to be generated before the OnError has a chance to capture the problem.

Can anybody help?
0
Comment
Question by:Mr_Shaw
  • 2
  • 2
4 Comments
 
LVL 30

Accepted Solution

by:
Reza Rad earned 500 total points
ID: 33605596
in Event handler tab,
set Executable with package (select  package name )
this means that on error will raise on every task in the package, and now you can find the error location exactly
0
 

Author Comment

by:Mr_Shaw
ID: 33606068
I'll give it a go when I get into the office on monday.. thanks for the tip.
0
 
LVL 30

Expert Comment

by:Reza Rad
ID: 33614815
I think you got your answer in TechNET. am I right?
0
 

Author Closing Comment

by:Mr_Shaw
ID: 33615933
Thanks..
0

Featured Post

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.

Question has a verified solution.

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

How to leverage one TLS certificate to encrypt Microsoft SQL traffic and Remote Desktop Services, versus creating multiple tickets for the same server.
Ever wondered why sometimes your SQL Server is slow or unresponsive with connections spiking up but by the time you go in, all is well? The following article will show you how to install and configure a SQL job that will send you email alerts includ…
Via a live example, show how to extract information from SQL Server on Database, Connection and Server properties
Viewers will learn how the fundamental information of how to create a table.

832 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