Click here to Skip to main content
15,896,606 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
Dear Sir,
I create a login form in which if you insert password 3 times wrong then u r account is locked for next 15 minute.
and we send a random password on referenced emailid which is sent after 15 minute.
For these 15 minute the account isactive='false'.

So can u please help me to give code for a stored procedure or triggers which is fired after 15 minute,which update this account isactive = 'true'.

Please help me.

Thanks In Advance
Posted
Updated 22-Mar-11 22:41pm
v2

1 solution

Stored procedures and triggers don't fire themselves. If you have standard edition, use SQL Agent's job to do the checks every 15 minutes ( http://msdn.microsoft.com/en-us/library/ms187910.aspx[^] ).

If you use Express edition where agent is not available you can create a small service to do the checks or perhaps use SQL Agent: A Job Scheduler Framework[^]
 
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