Groups | Blog | Home
all groups > sql server dts > april 2007 >

sql server dts : Merge Join


JMMB
4/12/2007 6:02:03 AM
Hi,

I'm using a Merge Join with two OLEDB data sources to output the matching
records on a specific key to a table on the database.
I also need to record the records that DON'T match to a second table. How
can I do that?

Thanks very much,

Marcelo.
Allan Mitchell
4/12/2007 7:06:55 PM
Hello JMMB,

Your two inputs go into the MERGE JOIN transform.

There is a box at the top of the designer window that asks you how to join
the keys

INNER, LEFT OUTER, FULL OUTER

You want LEFT OUTER

Let's say your key in the right hand side table is called MyKey. You return
MyKey

After the results pop out the bottom you dive into a conditional split

Create a new output called "Never Seen Before" and the Expression will be

ISNULL([MyKey])


Make sense?


--

Allan Mitchell
http://wiki.sqlis.com | http://www.sqlis.com | http://www.sqldts.com |
http://www.konesans.com

[quoted text, click to view]

JMMB
4/14/2007 9:28:03 AM
Hi Allan.
Yes, absolutely. tks a lot and please have a look in my new post in the DTS
group with the title: SSIS Data Migration Approach. I really would like to
get your opinion on that. Tks.
marcelo.

[quoted text, click to view]
AddThis Social Bookmark Button