dbTalk Databases Forums  

how to stop run dts if meet condition

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


Discuss how to stop run dts if meet condition in the microsoft.public.sqlserver.dts forum.



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

Default how to stop run dts if meet condition - 08-16-2005 , 07:47 PM






i want to import a data from a view from database by DTS
how can i check that if the view is empty then i don't run rest of DTS .



thanks

Nick



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

Default Re: how to stop run dts if meet condition - 08-17-2005 , 12:23 AM






Read the value of

SELECT COUNT(*) as RowsInView FROM VIEW into a Global Variable using an
ExecuteSQL task. In an Active Script task you can then test the variable's
value and either enable or disable the datapump.

Here are examples of using workflow like this

Workflow
(http://www.sqldts.com/default.aspx?103)


"nick" <fsheng (AT) ebreathe (DOT) co.nz> wrote

Quote:
i want to import a data from a view from database by DTS
how can i check that if the view is empty then i don't run rest of DTS .



thanks

Nick




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.