MS Visual Studio Loop over container SQL

Hi Everyone,

I am using SQL Server and have created an object variable which contains my string variable that I am successfully passing to my For Each Loop Container.

Within my each loop container segment, I would like to pass my string variable to a dataflow task and use that string in a query that hits another database.

Hopefully my poor attempt of a diagram explains better...is this doable....gut says it should be, but I don't seem to be able to call the list I have created in the dataflow task :( dataloop.JPG
lokinsella1Asked:
Who is Participating?

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

x
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.

dsackerContract ERP Admin/ConsultantCommented:
Are the databases on the same SQL Server?
0
lokinsella1Author Commented:
Hi dsacker, no unfortunately they are not :(
0
dsackerContract ERP Admin/ConsultantCommented:
Can they be linked together?
0
lokinsella1Author Commented:
That got me thinking....I do not know if they can be linked together, not easily at least.  What I did was to pull the data from my SQL DB and insert the list into a temporary table on the Teradata DB.  Once the list was there I was able to join the temp table and the main dataset together to get what I needed.  
Your comments gave me a nudge in a new direction...many thanks!
0
dsackerContract ERP Admin/ConsultantCommented:
Obviously, the thought is to leave as much as possible the burden of process on SQL Server. If the linked server idea doesn't work (and if they're under the same intranet, it should work unless there is some corporate policy that would prevent that), you can also look at using SSIS to import your needed data.
0

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
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 2005

From novice to tech pro — start learning today.