MS SQL Server Job with precise timing
Posted
by TcKs
on Stack Overflow
See other posts from Stack Overflow
or by TcKs
Published on 2010-05-11T09:26:01Z
Indexed on
2010/05/11
9:54 UTC
Read the original article
Hit count: 226
Hi,
I have a DB with game data (map, players, etc...) and I have a game core mechanics writen in T-SQL stored procedure.
I need process game loop (via the stored procedure) every "X" seconds. I tried used the SQL Job, but when I set the interval to seconds, the SQL server stops responding. If I set the interval greater than one minute, all was ok.
I need game loop precise in time, e.g. the game loop will run only once and will be executed every "X" precisely (tolerance should be less than one second).
Can I do it with MS SQL Server capabilities? Or should I create a windows service which will repeatly execute game loop procedure? Or should I go another way?
Thanks!
EDIT: The game loop stored procedure takes less than the interval.
© Stack Overflow or respective owner