Home > Archive > Microsoft SQL Server forum > June 2005 > WAITFOR DELAY '000:00:05'









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author WAITFOR DELAY '000:00:05'
NickName

2005-06-27, 9:23 am

Env: SQL Server 2000

It actually waited for 50 seconds instead of 5, tried
WAITFOR DELAY '000:00:005' and WAITFOR DELAY '000:00:5' respectively,
and got same behavior. Bug or ?

TIA

debian mojo

2005-06-27, 9:23 am

WAITFOR DELAY '000:00:005'

Well as you know the the time value you pass is a datetime value minus
the date part.

Now what is the smallest precision of time is datetime? Does it make
any sense to use 005 in place of 05 if what you really want is just 5
sec. If you want to look deeper into this and a smaller unit than a sec
try using:


WAITFOR DELAY '000:00:05:05'


Regards
Debian


*** Sent via Developersdex http://www.droptable.com ***
NickName

2005-06-27, 11:23 am

All right, 005 was thoughtless. And yet the strangest thing is, now,
WAITFOR DELAY '000:00:05' waited for 5 seconds as intended while a few
hours ago it waited for 50 seconds on the same machine. Well, it seems
that the machine is definitely not MINE.

Stu

2005-06-27, 1:23 pm

Did you check the CPU activity and other indicators of resource
utilization while it was WAITING? Could be something else was going
on....

Stu

Sponsored Links





Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive | Programming forum archive

Copyright 2009 droptable.com