dbTalk Databases Forums  

can i use SSIS to update existing data in a SQL Server 2005 table?

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


Discuss can i use SSIS to update existing data in a SQL Server 2005 table? in the microsoft.public.sqlserver.dts forum.



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

Default can i use SSIS to update existing data in a SQL Server 2005 table? - 06-07-2006 , 09:10 PM






I've been reading on SSIS for a couple of days now, and haven't come across a
mechanism on updating existing data!
My data source is a delimited flat file which i'll have to validate and then
plug into SQL server 2005.
But its possible that the records already exist, in which case i'll need to
udpate the existing records, else add them.

So, is it possible to update existing records using the existing SSIS tools?
Or would i have to script this?

Reply With Quote
  #2  
Old   
Jeff
 
Posts: n/a

Default Re: can i use SSIS to update existing data in a SQL Server 2005 table? - 06-08-2006 , 07:52 AM






One way to do it would be to have SSIS toss your flat file into a
temporary staging table in SQL server. Then run a sql statement to
insert records into your live table where they don't already exist, and
update all records that do exist.


Luke wrote:
Quote:
I've been reading on SSIS for a couple of days now, and haven't come across a
mechanism on updating existing data!
My data source is a delimited flat file which i'll have to validate and then
plug into SQL server 2005.
But its possible that the records already exist, in which case i'll need to
udpate the existing records, else add them.

So, is it possible to update existing records using the existing SSIS tools?
Or would i have to script this?


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.