Forums

This topic is locked

deleting messages after 18 months

Posted 06 Jan 2003 11:33:46
1
has voted
06 Jan 2003 11:33:46 Dave Clarke posted:
Hi

Using a COMMAND (Stored Procedure) in UD4 how would I delete all records over 18 months old that are not in a certain category? It's the format of the date i'm fumbling with.
Was thinking of this (assuming that 18 months is 550 days)

<b>DELETE FROM messages
WHERE ((messages.fldPosted&lt;Date()-550)) AND messages.fldCategory &lt;&gt; 'FOUND'</b>

how does that look??

thanks

Dave

ASP|VBScript|IIS5.1|Access|WinXPPro & WinXPHome

Replies

Replied 06 Jan 2003 13:39:14
06 Jan 2003 13:39:14 Dave Clarke replied:
hi

that works fine ( I think<img src=../images/dmxzone/forum/icon_smile.gif border=0 align=middle>

ASP|VBScript|IIS5.1|Access|WinXPPro & WinXPHome

Reply to this topic