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
Forefront client Security and Server management Console
Changing Primary SMTP Address
C# -- TableAdapter -- "GetDataBy" Column Value ?
help with Scalar-valued function
How to prevent "Request Timed Out" error in aspx pages? How to increase the timeout?
Combo Box problem with access the selected item
RGB Control
linq query handling null datetime
Urgent System.UnauthorizedAccessE<wbr />xception
URL Injection flaw - OWA 2003