Solved

How to Assign Package Steps in SSIS

Posted on 2007-11-14
3
535 Views
Last Modified: 2013-11-30
Hello ,
I am trying to migrate a DTS package done in SQL2000 to SSIS. The DTS package uses Dynamic Properties Task
It is apparent that SSIS does not support refering to the package within scripts at runtime.
I mean this one -- set pkg = DTSGlobalVariables.Parent

 After the migration, i am getting errors on this step....

      set pkg = DTSGlobalVariables.Parent

so going forward , i will not be able to set these ...
      set stpEnterLoop = pkg.Steps("DTSStep_DTSDynamicPropertiesTask_1")
      set stpFinished = pkg.Steps("DTSStep_DTSActiveScriptTask_3")

Any inputs on how this could be done using SSIS / VB.net
from SSIS.....

Thank you

Thomas
0
Comment
Question by:thomasbastian
3 Comments
 
LVL 42

Accepted Solution

by:
Eugene Z earned 500 total points
ID: 20307951
make sure fresh sql server 2005 service pack was installed

read:
Get a reference, within a script, to the package using DTSGlobalVariables.Parent
(http://blogs.conchango.com/jamiethomson/archive/2006/07/26/4278.aspx)

Modifing a Package in script
(http://blogs.conchango.com/jamiethomson/archive/2006/06/28/4156.aspx)

-Jamie
0

Featured Post

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

In this article I will describe the Backup & Restore method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
In this article we will learn how to fix  “Cannot install SQL Server 2014 Service Pack 2: Unable to install windows installer msi file” error ?
Using examples as well as descriptions, and references to Books Online, show the documentation available for date manipulation functions and by using a select few of these functions, show how date based data can be manipulated with these functions.
Viewers will learn how to use the INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.

726 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