Click here to Skip to main content
15,899,679 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi,
actually i am showing the records in the GRIDVIEW in ASP.Net and the data for gridview is coming from the SQL SERVER Database by using Store Procedure in SQL SERVER.now my question is that when i click on a record in gridview that record will delete from this gridview after the 9 days of clicking on the record but suppose if today i click on a record and after 4 days i also click on the same record than that record will delete after 9 days when i second time click on the same record?
if my application will not use on server for some days than in this case the same work will be done in this case?
Posted
Updated 3-Mar-11 18:02pm
v2
Comments
Sunasara Imdadhusen 3-Mar-11 23:48pm    
What is your problem?

In my opinion You will need to write a sql procedure and then schedule it through a job to meet your requirements.
You can find a good reference to Job scheduling in SQL at http://msdn.microsoft.com/en-us/library/ms191439.aspx[^]
also at http://www.databasedesign-resource.com/sql-server-jobs.html[^]

Hope this helps.
All the best.
 
Share this answer
 
delete from 'table_name' where 'date_field' > '2/3/2011'
 
Share this answer
 
Comments
Pravin Patil, Mumbai 4-Mar-11 0:22am    
Sorry prtk, but this is not OP is asking...
Please read the question again..

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