I have a table with 3.4 million rows. I want to copy this whole data into another table.
I am performing this task using the below query:
select *
i
select * into new_items from productDB.dbo.items
That pretty much is it. THis is the most efficient way to do it.
Simple Insert/Select sp's work great until the row count exceeds 1 mil. I've watched tempdb file explode trying to insert/select 20 mil + rows. The simplest solution is SSIS setting the batch row size buffer to 5000 and commit size buffer to 1000.