Reputation: 15345
Can I make a trigger that is fired every x hours?
Upvotes: 0
Views: 121
Reputation: 7574
If you are using SQL Server you can use SQL Server Agent for doing repetitive jobs.
Upvotes: 2
Reputation: 2355
No, Triggers are dependent upon rows being inserted, updated or deleted. The only way that you could have a trigger fire every few hours is to create a separate table and insert a row every few hours. shahkalpesh is correct, this was not the intended functionality for a trigger
Upvotes: 0