August 6, 2010 at 4:46 am
hii
I need a trigger query which fired automatically after a specific time interval.
please help me!
August 6, 2010 at 5:02 am
That will not be called a "trigger"!
You need to look into SQL Server Agent. You can create SQL Job which can be scheduled to run with requested frequency...
August 6, 2010 at 6:24 am
thanks a lot for giving valuable suggestion
could you please explain me procedure to do such job?
thanks again !
August 6, 2010 at 7:38 am
You write a query you want (or you can wrap it into stored proc), then,
using SQL Server Management Studio, you can create a job in SQL Server Agent, which will execute your query or call you stored proc. Schedule it too run at the required time/interval.
Creation of job can be scripted...
August 6, 2010 at 8:02 am
don't forget that the Express edition does not include the SQL Agent;
you should spend the $49 dolalrs and get the Developer Edition, which includes the SQL Agentand so much more.
Lowell
Viewing 5 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic. Login to reply