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
When establishing an ADO connection to a database, is it necessary to have a file path that is free of blank spaces?
how to store emails from exchange server into a tale in access?
Outlook XP won't install MAPI services
Error message saying cannot connect to linked SQL Server
MSSQL Service will not start up (Logs Posted)
Exchange 2003 Likely Corruption help
Access 2003 - How to create a timeline report
I want to use the sum by IFF Function by using a criteria
Mutliple Zones when adding a webpart to a page
Access 2000 - Query Crteria Problem