Wrox Programmer Forums
Go Back   Wrox Programmer Forums > SQL Server > SQL Server DTS
SQL Server DTS Discussion specific to Data Transformation Service with SQL Server. General SQL Server discussions should use the general SQL Server forum. Readers of the book Professional SQL Server 2000 DTS with questions specific to that book should post in that book forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Server DTS section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old March 3rd, 2008, 09:51 AM
Registered User
Join Date: Mar 2008
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Migrating DTS to SSIS. Implementing Loop

I'm migrating DTS containing a Loop like:

    Pkg = DTSGlobalVariables.Parent;
    stpBegin = Pkg.Steps("DTSStep_DTSActiveScriptTask_1");
    stpBegin.ExecutionStatus = DTSStepExecStat_Waiting;

My needs are:
1: exec SQL Task 1
2: Script task 1(write log)
3: exec SQL Task 2
4: script task 1 again
5: exec SQL Task 3
6: script task 1 again
etc... etc...

How can I do this?
Old March 4th, 2008, 09:43 AM
Registered User
Join Date: Mar 2008
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts

Following advice of MSDN user, I have implemented this solution:

I moved the script log task in the SSIS's event onPostExecute, I switched on tasks's property DisableEventHandlers.
If the single task don't have its onPostExecute event, the execution don't have problems and parent's event is fired regularly (1 time); Otherwise the event is passed to parent container and the event is fired 2 times.
So the sequence container also have DisableEventHandlers event disabled, but the parent event onPostExecute, is also fired

Someone known a work around for this behavior?

Similar Threads
Thread Thread Starter Forum Replies Last Post
Advantages of SSIS over DTS carumuga SQL Server 2005 1 September 11th, 2008 07:51 AM
DTS vs SSIS carumuga SQL Server 2005 0 July 23rd, 2008 09:09 AM
DTS to SSIS migration gunjan.sh SQL Server 2005 1 July 4th, 2008 09:54 AM
Migrating DTS to SSIS with loop GluckTO SQL Server 2005 0 March 3rd, 2008 10:05 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.