dhoward007
Programmer
I am having a problem calculating dates.
I have a field datetime and I need to delet records older than 60 days.. my query is something like this.
delete from table where statdate < dateadd(day, -60, getdate())
For some reason this doesn't work.. Can you give me some suggestions?
I have a field datetime and I need to delet records older than 60 days.. my query is something like this.
delete from table where statdate < dateadd(day, -60, getdate())
For some reason this doesn't work.. Can you give me some suggestions?