patternsqlMinor
Scheduling a task that happens very frequently in Sql Server
Viewed 0 times
schedulingserversqlfrequentlythatveryhappenstask
Problem
I've just added some caching to my Sql server to speed up a particularly important
Is using the Sql server agent the right solution here? This seems to be more aimed at large database maintenance tasks. Should I use a different SQL Server method, or perhaps trigger the update from my client application?
Also, my dev machine does not have the server agent available, so using a different method is attractive for that reason.
SELECT query. This cache will be refreshed every ~10 minutes. The time between activations does not have to be predictable, so long as there is not a long delay between activations.Is using the Sql server agent the right solution here? This seems to be more aimed at large database maintenance tasks. Should I use a different SQL Server method, or perhaps trigger the update from my client application?
Also, my dev machine does not have the server agent available, so using a different method is attractive for that reason.
Solution
I've used SQL Server Agent to run jobs every 10 seconds. It's OK.
If you don't have it, you can use the Windows Scheduler to run osql or sqlcmd as required.
Or say Quartz.net in your app. Or anything that can call a database on a schedule (AutoSys etc)
If you don't have it, you can use the Windows Scheduler to run osql or sqlcmd as required.
Or say Quartz.net in your app. Or anything that can call a database on a schedule (AutoSys etc)
Context
StackExchange Database Administrators Q#13165, answer score: 3
Revisions (0)
No revisions yet.