Solved

How to Assign Package Steps in SSIS

Posted on 2007-11-14
3
526 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:
EugeneZ 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

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

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

Suggested Solutions

This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
In this article we will get to know that how can we recover deleted data if it happens accidently. We really can recover deleted rows if we know the time when data is deleted by using the transaction log.
Via a live example, show how to extract insert data into a SQL Server database table using the Import/Export option and Bulk Insert.
Viewers will learn how to use the UPDATE and DELETE statements to change or remove existing data from their tables. Make a table: Update a specific column given a specific row using the UPDATE statement: Remove a set of values using the DELETE s…

939 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now