Click here to Skip to main content
15,905,877 members
Please Sign up or sign in to vote.
3.50/5 (2 votes)
See more:
Here is what I would like to happen

SQL
CREATE TRIGGER EmployeeClockin ON Timeclock

FOR Insert

AS

Catch inserted time and have a timer running against it.

If timer >6 hours 

Send email

I have most of the code I need all ready written, I just have no idea if what I want to happen is possible in SQL.

I got the email to work, etc, I just need something that will fire this off after a certain amount of time has passed.

I usually write in VB and im still a little green when it comes to SQL so any help would be great :)
Posted
Comments
Sandeep Mewara 20-May-11 0:47am    
Comment from OP:
Im just going to call the procedure from SQL server agent jobs.

1 solution

To the best of my knowledge there is no way to do this with SQL server in a programmatic fashion like you are trying to do. It only allows scheduled running of jobs by means of SQL Server Agent jobs[^].
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900