all groups > sql server dts > june 2007 >
You're in the

sql server dts

group:

SSIS Newbie



RE: SSIS Newbie Paul Ibison
6/28/2007 2:30:00 AM
sql server dts: Here's the SSIS newsgroup:
http://www.microsoft.com/technet/community/newsgroups/dgbrowser/en-us/default.mspx?dg=microsoft.public.sqlserver.integrationsvcs&lang=en&cr=US

To answer your question - as both the tables exist in the same database, I
wouldn't use a complex process for this. Seems more like an ExecuteSQL task
with some simple TSQL in it. You can join the two tables using an outer
join/"NOT IN"/EXCEPT query to isolate those rows not yet added. To find rows
existing in both tables, you use an "IN" subquery/inner join/INTERSECT. If
you post up the schema for the tables I'll write the queries for you if
you're having problems.

Cheers,

SSIS Newbie Ed
6/28/2007 3:14:15 AM
Hi All,

First of all is this the correct group for SSIS questions (I did not see
an SSIS one)?

Secondly my beginners question,

I have Table A and B in my database, would like to process all records
in Table A and do either an update or insert in Table B depending on
wether or not the Primary key exists.

Could anyone point me to some docs that describe how to build a process
like this?

Thanks,
Ed
RE: SSIS Newbie Ed
7/9/2007 7:34:39 AM
Sorry paul, I feel very silly my newsreader did not show your reply.

Thanks very much, I'll give your suggestions a try and I'll be back if I
can't make it work :-)

Cheers,
Ed Richard

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