August 15, 2013 at 12:11 am
Hi,
I need How to create a time based trigger in sql server.Pls....
and thanks 🙂
August 15, 2013 at 12:23 am
You don't give us much information. Can you specify your needs and describe the purpose?
Perhaps you can create a SQL Agent job that executes your command at the specified time(s)?
August 15, 2013 at 6:25 am
We do need more information. If you are asking for a trigger to execute when a time is reached or elapsed, that's a job. As noted above, SQL Agent would be how you do this.
August 15, 2013 at 6:37 am
You could set up a SQL Agent job that triggers at a certain time or at even at fixed intervals. Another methodology I have used is just a stored procedure that uses WAITFOR DELAY or reads from a service broker message queue with a read timeout set or have other processes writing messages at specified intervals.
Lots of ways, it just depends upon what your requirements are.
The probability of survival is inversely proportional to the angle of arrival.
Viewing 4 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply