troubleshooting Question

SQL delete Query

Avatar of Keef4000
Keef4000 asked on
Microsoft SQL ServerMicrosoft SQL Server 2005Microsoft SQL Server 2008
5 Comments1 Solution343 ViewsLast Modified:
I have a database called "test" that has a table within it called "5Cycle". We have hundreds of thousands of records that I want to archive down. I'd like to do this by year so I need to delete anything older than a certain date. The date column is "TestDate" formatted YYYY-MM-DD   00:00:00:000

How do I select and delete anything older than 1/1/2010?
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 5 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 5 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros