dbTalk Databases Forums  

Delete rows from source table

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


Discuss Delete rows from source table in the microsoft.public.sqlserver.dts forum.



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

Default Delete rows from source table - 06-16-2005 , 11:47 AM






Hi All,

We require to move rows from source table to target table i.e the rows in
the source table should get deleted.

Is there a way in DTS so that while copying it also deletes the rows in
source table?

Thanks in advance,
Sachin

Reply With Quote
  #2  
Old   
Darren Green
 
Posts: n/a

Default Re: Delete rows from source table - 06-16-2005 , 12:38 PM






In message <F2CFF9E7-2A7C-4CD9-AE61-A1BE6A78468B (AT) microsoft (DOT) com>, Sachin
Surana <SachinSurana (AT) discussions (DOT) microsoft.com> writes
Quote:
Hi All,

We require to move rows from source table to target table i.e the rows in
the source table should get deleted.

Is there a way in DTS so that while copying it also deletes the rows in
source table?

Thanks in advance,
Sachin
Nothing directly, but this should be quite easy to do using some T-SQL
around the edges. Run a query to detect the rows, and either mark them,
record the keys or select the entire row into a staging table on the
source system.

Do the transfer.

Now delete the rows you transferred, using the first stage method to
identify them.


--
Darren Green (SQL Server MVP)
DTS - http://www.sqldts.com

PASS - the definitive, global community for SQL Server professionals
http://www.sqlpass.org



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.