dbTalk Databases Forums  

Data Export DTS

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


Discuss Data Export DTS in the microsoft.public.sqlserver.dts forum.



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

Default Data Export DTS - 03-03-2004 , 05:11 PM






Hello

I am trying to create a package that will dump the data from one table into another and delete the table from the primary table after the export is done. Any help would be good

Currently I have a Microsoft OLE DB Provider for SQL Server and a Transform Data Task that goes to another Microsoft OLE DB Provider for SQL Server. This export process works but how can I delete the data from the 1st Microsoft OLE DB Provider for SQL Server.

Reply With Quote
  #2  
Old   
Brian Lawton
 
Posts: n/a

Default Re: Data Export DTS - 03-03-2004 , 09:35 PM






You should be able to do this by adding an Execute SQL task to your package
and then placing a precedence constraint between it and your existing
TransformData task such that it fires the Execute SQL task after the
TransformData task has completed. In the Execute SQL task then you'd
include the DELETE statement to cleanout your table.

--
--Brian
(Please reply to the newsgroups only.)



"Lontae Jones" <anonymous (AT) discussions (DOT) microsoft.com> wrote

Quote:
Hello,

I am trying to create a package that will dump the data from one table
into another and delete the table from the primary table after the export
is done. Any help would be good.

Currently I have a Microsoft OLE DB Provider for SQL Server and a
Transform Data Task that goes to another Microsoft OLE DB Provider for SQL
Server. This export process works but how can I delete the data from the
1st Microsoft OLE DB Provider for SQL Server.



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.