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
Create a speedometer chart in excel
Unable to join a Win2008 server to a Windows 2008 Domain
recycle bin err
Modal Window postback opens new windows instead of posting to itself!
Adding a keyboard shortcut to a WPF MenuItem
Converting form MSSQL 2000 to MSSQL 2005
table tables in SSRS?
FollowHyperlink on Access Form
Email Observation
Item not found in collection