Guest_imported
New member
- Jan 1, 1970
- 0
Good afternoon,
I have a MS SQL 7 DB with 1 table (the table is called ads) of data. I would like to delete records from the DB that over over 60 days in age. There is a column of data called AdDate with a datatype of DateTime. This contains the date (example - 2/8/2001 from <%=date%>) the record was submitted to the DB.
Is there a way to create a filter or some command that will delete * from ads where AdDate=today-60 or something along those lines, nightly at say 1am or thereabouts? Not to sure of how the querry would be constructed either but I figure I should check and see if there is a way to automate this.
Thanks!
Rob
I have a MS SQL 7 DB with 1 table (the table is called ads) of data. I would like to delete records from the DB that over over 60 days in age. There is a column of data called AdDate with a datatype of DateTime. This contains the date (example - 2/8/2001 from <%=date%>) the record was submitted to the DB.
Is there a way to create a filter or some command that will delete * from ads where AdDate=today-60 or something along those lines, nightly at say 1am or thereabouts? Not to sure of how the querry would be constructed either but I figure I should check and see if there is a way to automate this.
Thanks!
Rob