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
Tray 900 Unable to Set Tray Icon error. How do I clear it when Windows XP Pro starts?
SmtpClient and Exchange server settings
The store driver couldn't deliver the public folder replication message. Property Validation Failed when replicating public folders in mixed 2003/2007 evironment
Vista command prompt
Array Usage In Access
Combining Arrays in VBA
SQL query to select distinct ID for latest date past June/01/2009 where there are (possibly) more than one occurrence of each ID
Cannot Open PDF in IE7, Tries to save .aspx file instead
Change Log on data
Publisher cannot open the file