dbTalk Databases Forums  

DTS object to use

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


Discuss DTS object to use in the microsoft.public.sqlserver.dts forum.



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

Default DTS object to use - 12-11-2003 , 05:56 PM






What the best object to use when need is to check if any rows exist on a staging table and manipulate result? For example if rows exist I need to perform a various of task otherwise do nothing. Thanks in advance.

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

Default Re: DTS object to use - 12-11-2003 , 06:29 PM






Use an ExecuteSQL task to read the value of a SELECT COUNT(*) statement into
a Global Variable. In an Active X Script task check that Global Variable
and use Workflow to determine how you handle the package from there.

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

--

Allan Mitchell (Microsoft SQL Server MVP)
MCSE,MCDBA
www.SQLDTS.com
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org


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

Quote:
What the best object to use when need is to check if any rows exist on a
staging table and manipulate result? For example if rows exist I need to
perform a various of task otherwise do nothing. 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.