dbTalk Databases Forums  

Performing multiple tasks on individual records after importing an entire table within a DTS.

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


Discuss Performing multiple tasks on individual records after importing an entire table within a DTS. in the microsoft.public.sqlserver.dts forum.



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

Default Performing multiple tasks on individual records after importing an entire table within a DTS. - 11-18-2003 , 02:48 PM






I have imported a flat file to a sql table using a DTS. I now want to
go thru that table and either insert (if new) or update (if they
exist) the records into another table within the same DTS. I can do
this easily using a VBScript task, but was wondering if there was a
more efficient/easy way to do this using one or more of the tasks
available within a DTS package. I am using SQL Server 2000.

Thanks in advance!

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

Default Re: Performing multiple tasks on individual records after importing an entire table within a DTS. - 11-18-2003 , 05:45 PM






from a sql perspecetive that is pretty straight forward now that you have
the data in a table

assuming you have a common field or group of fields that are unique, you can
make one pass doing an update where the keys already match and the second
pass doing an insert if they do not.
"Ratman" <jake (AT) attis (DOT) org> wrote

Quote:
I have imported a flat file to a sql table using a DTS. I now want to
go thru that table and either insert (if new) or update (if they
exist) the records into another table within the same DTS. I can do
this easily using a VBScript task, but was wondering if there was a
more efficient/easy way to do this using one or more of the tasks
available within a DTS package. I am using SQL Server 2000.

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.