Click here to Skip to main content
15,889,595 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi

My application have to maintain employee attendance details daily.

In the Application, i am getting employee IN Time and OUT Time by using IN & OUT Buttons.

The employee has to Click IN button when he enter in to office and similarly he Click on OUT button when
he leaving from office in application.

By using OUT Time button click, i maintain the attendance details on that day.

My requirement:

Suppose the employee is not came to office(absent), i will not get IN&OUT details for that employee on that day.

so after some time suppose After 6 PM office closing time,the application will have search all employee IN and OUT times, then and it will automatically store(send data as Absent to database) for those employee who are absent.

How can i achieve it?



Thanks Advance ..
Krishna..
Posted

it's easy to do this task with sql

simply create sp which find absent employees and dump data in sql table
then set a sql job for this sp which run every day 6 o'clock or what ever time you want to set

Happy Coding! :)
 
Share this answer
 
Comments
DevilsCod 20-Sep-14 13:06pm    
hi, My doubt is how the application know its 6pm(or other time) i want to update? with out user action
Aarti Meswania 20-Sep-14 13:09pm    
first you tell me are you using SQL server as back-end database?
DevilsCod 21-Sep-14 7:26am    
yes i am using sql server 2008 r2 as database !
Aarti Meswania 21-Sep-14 11:36am    
sql jobs are like timers.
On configured time sql job runs and performs task assigned to it.
the task can be sp(store procedure) or exe files etc
http://msdn.microsoft.com/en-IN/library/ms190268.aspx
follow this one...with your own store procedure and change the time as per your project.

http://asp-arka.blogspot.in/2014/09/how-to-execute-perform-task-at-specific-time-12-night-sql-server.html[^]
 
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