Reference a Lookup task from within a Script Component


I am in the process of converting a DTS package into SSIS.  That DTS package has an ActiveX script that references a DTS Lookup.  The code looks something like the following:

myid = DTSLookups("GetSomeId").Execute("DTSSource(variable1, variable2)

Is it possible to have the Script Component reference a lookup task?

Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Jason YousefSr. BI  DeveloperCommented:
Why would you do that anyway ?!

I found this article talking about lookup inside a script component...check it it would help

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
yechanAuthor Commented:
I am not married to the idea of embedding a lookup task inside the script component.  Trying to "upgrade" an existing DTS package to SSIS.  If you think there is a better way, please let me know.

Reza RadConsultant, TrainerCommented:
what are you doing in this lookup, does your requirement accomplished by regular LOOKUP TRANSFORM in the SSIS Data Flow toolbox?
if this doesn't make sense to you, could you tell us samples of your input data rows and your desired output result, and we could help you better
yechanAuthor Commented:

i have replaced the DTSLookup with a SQL query call.  Wish I had more time to get this done right =)

It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft SQL Server

From novice to tech pro — start learning today.