SELECT getdate()
go
WAITFOR DELAY '0:00:05'
go
SELECT getdate()
go
--
Keith, SQL Server MVP
Quote:> I need to perpetually call a stored proc between a time
> range, from 9.00 am to 10.00pm. We are using a real time
> system and need to run an algorhythm every 5 seconds.
> Obviously MS Agent only has a time span of 1 minute so we
> are wondering about using the Delay function. What I want
> to know is this a good idea, what are the pitfulls of
> using it, the best way of using it etc. Any help would be
> gratefully recieved.
1. Delay when using Enterprise Manager
Running SQL Workstation 6.5 (SP4) on an NT4 Workstation (SP3) with twin
Pentium Pro 200s, 128 meg memory (80 given to SQL WS), 3x4gig Fast Ultra
Wide Scsi 3 disks, with SQL Server starting as a service and with its own
User account, I note that whenever I start Enterprise Manager, as soon as I
click on the + beside the server name, a considerable delay (up to 20
seconds) occurs. I use only Named Pipes with integrated security.
Is there a way of keeping open the required connection(s) at all times apart
from keeping Enterprise Manager open (if that is what is causing this
problem)? Otherwise, where does the problem lie, and what can I do to solve
it?
--
Paul Thornett
2. 16500-MA-Boston-ORACLE-Oracle DBA's
3. delayed transaction using DAO ?
4. UV Objects / Intercall and C++
5. Update Record delayed using DAO 3.6
6. Oracle Internet Director -ldifwrite
7. SQL delay using SHAPE compared to simple SELECT
8. pg_dump Backup on 7.0.3 - Sanity error?
9. Transaction Delay using PHP4-OCI8 APACHE-2.0.40 against Oracle Win2k Server
10. page buffering in MSAccess (5 sec delay) using ADO
11. Login prompt delay using telnet command
12. delay multithreading multiusers
13. print / if / select delay problem