SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


SSIS SQL Serveer 2008 R2


SSIS SQL Serveer 2008 R2

Author
Message
WheelsGuy
WheelsGuy
SSC Rookie
SSC Rookie (46 reputation)SSC Rookie (46 reputation)SSC Rookie (46 reputation)SSC Rookie (46 reputation)SSC Rookie (46 reputation)SSC Rookie (46 reputation)SSC Rookie (46 reputation)SSC Rookie (46 reputation)

Group: General Forum Members
Points: 46 Visits: 24
Good morning.

I am trying to accomplish the following:

I need to query a table in a database on Server1, and also query a table in a database on Server2 based on a piece of data in the 1st query (e.g. list all the records in query 2 where they equal the 'Apple' from query 1).

I am currently attempting to use 2 OLE DB Sources linked together by a Merge Join output to a Dervice Column for mapping, and then update the table on Server 2. Should I use UNION All instead of Merge Join? How do I run the Select in query 2 based on the output of query 1?

Thnak you, WHEELS
messages4kanthi
messages4kanthi
SSC-Enthusiastic
SSC-Enthusiastic (180 reputation)SSC-Enthusiastic (180 reputation)SSC-Enthusiastic (180 reputation)SSC-Enthusiastic (180 reputation)SSC-Enthusiastic (180 reputation)SSC-Enthusiastic (180 reputation)SSC-Enthusiastic (180 reputation)SSC-Enthusiastic (180 reputation)

Group: General Forum Members
Points: 180 Visits: 159
Merge join is the right choice here. If you are facing any discripencies in the result set, do check for the null values in your mappings; and make sure source data for Merge transformation is sorted

http://technet.microsoft.com/en-us/library/ms141775.aspx
WheelsGuy
WheelsGuy
SSC Rookie
SSC Rookie (46 reputation)SSC Rookie (46 reputation)SSC Rookie (46 reputation)SSC Rookie (46 reputation)SSC Rookie (46 reputation)SSC Rookie (46 reputation)SSC Rookie (46 reputation)SSC Rookie (46 reputation)

Group: General Forum Members
Points: 46 Visits: 24
Thank you. I really appreciate the assist. WHEELS
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search