Create a store procedure to delete the data
from table, the rule is, look for date, if it
is before 12 months delete that row.We need to schedule this Sp weekly or
monthly
Please let me know what query should i write for this....
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Deepak VermaRank #672 · 3.6K reputationPosted Dec 16, 2012, 6:01 PM EST
You have to create a Job to do it. To know about how to create a Job, follow this link:
http://msdn.microsoft.com/en-in/library/ms187910.aspx