I have a situation where I need to copy several tables from one SQL Server database to a separate SQL Server database. Databases are in one instance. The tables that I copy contain at least 4.5 million rows and are about 40 GB in size.
I used BCP before, but I am not very familiar with it and could not find the documentation on whether it is possible to use BCP to copy directly from a table to a table without writing to a file between them.
Is it possible? If so, how?
EDIT: The reason we don’t use simple INSERT is because we have limited disk space on the log of the server, which almost instantly disappears when you try INSERT. We really tried to do this, but the request quickly slowed down when the log stream was full.
source
share