I am implementing a database which takes requests and reply them as Approved or Denied
i want to add feature so that in case particular request not responded in 3days, it will auto replied as Denied. Its a status field in database.
I am using sql server 2008 with linq in asp.net 3.5
Is there any way other than checking on each loading time?
I am implementing a database which takes requests and reply them as Approved or
Share
First of all: My answer is similar to @AnandPhadke ‘s but with a small difference.
I have had this problem my self several times.
1) I usually build a “Robot” for these kind of tasks.
By “Robot”, I mean a really simple console application which only checks the database and performs the desired actions depending on the database result. This console application is also being able to log its’ activity (for debugging purposes and so on, you can for example use open source log4net for this task).
2) Then I let the standard Windows “Task Scheduler” call my console application periodically.
Here are more information about the “Task Scheduler”: http://windows.microsoft.com/en-US/windows7/schedule-a-task
EDIT/UPDATE:
This is the principal I’m trying to describe

There are several things that might affect the load on your CPU. Computation intensive operations at first. I have no idea what you DB design looks like at all but I sure know that the more complex your SQL query is (and the more data this complex query has to be processed on) it will need more power from the CPU. Try to optimize your query.