Have a need to move (not truncate) about 700K records from one a table into another table in a different database. Im going to do this using the OUTPUT modifier on the DELETE statement.
DELETE OUTPUT INTO
What I ran into the other day is it stopped because the transaction log filled up.
Im trying this on a test server, which was good because the last thing I want to do is fill up the tlog on the production box and have to deal with that.
So whats a better strategy if I want to basically archive a large number of records out of a table, but do not want to fill up either the source or the destination tlog?
Now that I think about it, I might have to do this in smaller "chunks" and allow the tlog to get rolled when a back up is done.
Did I just answer my own question? :)
The total table size is about 100MB and has about 770K rows and I want to move ALMOST all of them, but not all.