I had a very similar situation as you. I also opted to BCP OUT, TRUNCATE, DROP, BCP IN - yaddy ya. Then I stumbled across this simple solution:
If you have a datetime to work with, use the SET ROWCOUNT feature to do a Transactional DELETE. I was able to DELETE about 1M rows / minute using...
I recommend creating SQL Maintenance Plan (read BOL - Simple to Set up in SQL Server) But if you really want a stored proc, I've attached one -- this will backup your LOGS & Databases w/out any downtime. You can execute this concurrent w/ your online & batch applications.
Here ya go --...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.