Click here to Skip to main content
15,893,564 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hii All,

I want to create Audit trail for EmployeeAbsence. In which employee can request for his leave, update his leave , adjust his leave and all. Firstly i was thinking to simply apply trigger for that but then i realised that trigger makes application slower.

Please suggest me how to Create Audit trail for my requirement?
Posted
Updated 27-Aug-13 20:26pm
v2
Comments
Manikandan Sekar 2-Sep-13 3:00am    
What you are asking is a project. If you want someone to do your project means hire someone. If you want create on your own means Google it and get some ideas. Start your move and ask help when you stuck anywhere means.
Torakami 2-Sep-13 10:38am    
What i meant was if trigger is safer or shall go for dynamic changes

1 solution

You could use Trigger or Stored procedure.
Store Procedure for Audit Trial in SQL[^]
 
Share this answer
 
Comments
Torakami 11-Sep-13 3:43am    
Thnaks but my work is already done .. i had gone for dynamic updates using methods and from there i am updating and creating table changes .. i did so much research on topic and came to know that using store procedure is quite slower the process on the server side ...
thatraja 11-Sep-13 5:02am    
I don't think so, stored procedure could reduce many headaches. And you could reuse the code for some other places & it's faster. Anyway glad to know that you have solved the issue yourself. If possible please share what you did, which could help others in future.

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