Microsoft
Software
Hardware
Network
Question : SQL Query to delete all records older than 365 days
I need to write a sql query to delete all records in my database older than 365 days. The date/time field name is called 'DateShipped'. TIA!
Answer : SQL Query to delete all records older than 365 days
delete from tableName
where DateShipped < dateadd( dd, -365, convert(varchar,getdate(),
112) )
Random Solutions
How do I find the highest value in a column in a list box?
Disable Domain Policy application, Domain Admin addition
How to change gradually by code the forecolor of a Progressbar ?ex:from green to yellow
One way traffic over a hardware VPN
mqsvc.exe has generated errors - message at startup - what does it mean and why etc.?
Unable to recover outlook PST file
How to enter a derived column in a SQL Server query being built using Access that provides if/then/else functionality
system scan
nVidia nForce Raid controller embedded in Proliant ML115 G5 Event 129
how can I compare two databases in foxpro to check if they are identical?