Click here to Skip to main content
15,892,927 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi Experts,

I would like to make code in SQL server, which deletes the records from table automatically within a specific interval without human interaction.
Just like a timer concept in C#, but here I cannot use any other language, only SQL.

Please help me in this mater.

Thanks.
Posted
Updated 18-Nov-11 2:08am
v2

 
Share this answer
 
Comments
Amir Mahfoozi 18-Nov-11 10:49am    
+5 I agree with you.
thatraja 19-Nov-11 7:45am    
My 5! too. But I have posted an alternative.
Agree, Sql Agent is the best. Another alternative is
Use SQLCMD[^] with Task Scheduler[^]
 
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