Click here to monitor SSC
SQLServerCentral is supported by Redgate
Log in  ::  Register  ::  Not logged in
Home       Members    Calendar    Who's On

Add to briefcase

ssis traansaction managmnet between parent & child packages Expand / Collapse
Posted Friday, May 9, 2008 6:02 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Wednesday, April 8, 2009 9:41 PM
Points: 5, Visits: 119

I am using SSIS to update database. We have parent package which calls five child packages.All the packages share single configuration file i.e single connection string.

The parent package works fine without transaction. The parent package also has a stored procedure which uses the context connection.

When we introduced transaction by setting Transaction on parent & child by setting properties (Required & Supported), the package is getting hanged. SP2 is installed on the machine, we are using sql server evaluation copy.

Can we use RetainConnection property in this scenario? Will the child packages & parent packages use same connection?

If we use transaction property, then do we have to do MSDTC related settings?

Can anyone tell us how to put transaction ?
Failure of the package or task in parent packages should rollback complete parent package related data.

Post #497776
Posted Friday, May 9, 2008 6:24 AM


Group: General Forum Members
Last Login: Tuesday, August 10, 2010 5:07 AM
Points: 2,661, Visits: 23,078
RetainConnection will not help you. Each child package has it's own connection manager. The fact that they have the same name does not mean anything.

So, you need to use the package transactions. These do use MSDTC. So, you need to ensure DTC is configured correctly on the server running the SSIS packages and the database servers they are connecting to.

Since your package is actually running (and hanging), it is probably configured ok.

Make sure the packages do not conflict with each other. Since everything is hanging, I would suspect a DTC deadlock. Make sure you are not reading data that is being written to - keep lock escalation in mind.
Post #497802
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse