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?
 
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
 
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.