SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


ssis traansaction managmnet between parent & child packages


ssis traansaction managmnet between parent & child packages

Author
Message
arati.bargale-596079
arati.bargale-596079
SSC Rookie
SSC Rookie (27 reputation)SSC Rookie (27 reputation)SSC Rookie (27 reputation)SSC Rookie (27 reputation)SSC Rookie (27 reputation)SSC Rookie (27 reputation)SSC Rookie (27 reputation)SSC Rookie (27 reputation)

Group: General Forum Members
Points: 27 Visits: 119
Hello,

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.


Regards,
Arati
Michael Earl-395764
Michael Earl-395764
SSC-Insane
SSC-Insane (21K reputation)SSC-Insane (21K reputation)SSC-Insane (21K reputation)SSC-Insane (21K reputation)SSC-Insane (21K reputation)SSC-Insane (21K reputation)SSC-Insane (21K reputation)SSC-Insane (21K reputation)

Group: General Forum Members
Points: 21747 Visits: 23078
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.
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search