dbTalk Databases Forums  

DTS Package with if/then Logic

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


Discuss DTS Package with if/then Logic in the microsoft.public.sqlserver.dts forum.



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

Default DTS Package with if/then Logic - 05-24-2005 , 03:58 PM






I would like to create a DTS package that will accomplish the following:

Check if a database table A has records.
If Yes go Else Stop.
Erase Replica table B.
Copy Database table A to replica table B.

I'm able to copy all records from one table to another automatically. I
would like some logic to check if Table A has records before deleting the
replica for copying. Is there anyway to do this? When Table A is blank if
deletes all records in Table B and then copies 0 records.

Any DTS logic help would be great.

Reply With Quote
  #2  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: DTS Package with if/then Logic - 05-24-2005 , 04:10 PM






Then you need workflow.

We have examples here

Multiple Paths in Workflow
(http://www.sqldts.com/default.aspx?218)

"BSK" <bsk (AT) discussions (DOT) microsoft.com> wrote


Quote:
I would like to create a DTS package that will accomplish the following:

Check if a database table A has records.
If Yes go Else Stop.
Erase Replica table B.
Copy Database table A to replica table B.

I'm able to copy all records from one table to another automatically. I
would like some logic to check if Table A has records before deleting the
replica for copying. Is there anyway to do this? When Table A is blank if
deletes all records in Table B and then copies 0 records.

Any DTS logic help would be great.


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.