Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 DTS and "if" condition

Author  Topic 

pelegk2
Aged Yak Warrior

723 Posts

Posted - 2007-04-29 : 03:33:10
can i make in DTS something like :
if result of "select count(id)" >=10000 then
execute some vbscript ?

which means if some select return morethen 10000 rows then run a VBSCRIPT file, if not no need to
is itpossiblee to do it?
is there any other way?
thnaks i nadvance
peleg

Israel -the best place to live in aftr heaven 9but no one wan't to go there so fast -:)

mattyblah
Starting Member

49 Posts

Posted - 2007-04-30 : 12:01:47
Why not use the ActiveX Script Task item for DTS? I'd do something like assign a global variable the value from your query, then in the activex script task check the value, if over 10000 then run whatever vbscript you have.
Go to Top of Page
   

- Advertisement -