dbTalk Databases Forums  

SSIS - Conditional split

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss SSIS - Conditional split in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
scuba79
 
Posts: n/a

Default SSIS - Conditional split - 04-11-2006 , 09:45 AM






I have a couple of tables that I'm importing from Oracle into SQL 2005 and
I'm importing them into one table. Unfortunately I'm finding out that the
tables have duplicate data. After importing the first table from oracle, is
there a way of check the "new" SQL table for existing records and if the
record exists to "move" the dup record to a new table for spot checking.

Thanks in advance

Reply With Quote
  #2  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: SSIS - Conditional split - 04-11-2006 , 12:50 PM






Use a Lookup Transform.

Set the Error Output on the component to be "Redirect Row".

Now all matches (i.e. things you already have in the reference table) will
go down the green path and new rows will go down the red (error path)

http://wiki.sqlis.com/default.aspx/S...rorOutput.html

--


Allan Mitchell
www.SQLDTS.com
www.SQLIS.com
www.Konesans.com


"scuba79" <scuba79 (AT) discussions (DOT) microsoft.com> wrote

Quote:
I have a couple of tables that I'm importing from Oracle into SQL 2005 and
I'm importing them into one table. Unfortunately I'm finding out that the
tables have duplicate data. After importing the first table from oracle,
is
there a way of check the "new" SQL table for existing records and if the
record exists to "move" the dup record to a new table for spot checking.

Thanks in advance



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.