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
 General SQL Server Forums
 New to SQL Server Programming
 wait until ...time function

Author  Topic 

slimt_slimt
Aged Yak Warrior

746 Posts

Posted - 2008-12-14 : 01:42:54
hi,

does sql 2000 or sql 2005 supports a time function which would do something like:

wait for 20 seconds,
then

use adventureworks
go
select top 100 * from purchase.products


i have a solution with loop, i just wanted to ask if there is any built-in function?

thank you

GilaMonster
Master Smack Fu Yak Hacker

4507 Posts

Posted - 2008-12-14 : 04:51:55
Sure

WAITFOR DELAY
or
WAITFOR TIME

Books Online will give you full details of both.

--
Gail Shaw
SQL Server MVP
Go to Top of Page

slimt_slimt
Aged Yak Warrior

746 Posts

Posted - 2008-12-14 : 08:42:36
Gail shaw: thank you for both. waitfor time was what i need :) didn't know that existed :)
best
Go to Top of Page
   

- Advertisement -