question

Naren avatar image
Naren asked

About BCP?

I have one table with 2GB data resides in one server how to use "BCP" and export the data into another table server?
sql-server-2005dba
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
TimothyAWiseman avatar image
TimothyAWiseman answered
You have this tagged as 2005, so you may want to consider SSIS instead of BCP. SSIS tends to do many of the same things as BCP, but it is more user friendly and (at least for certain tasks) more effecient. Moving data between two instance of SQL Server that are both on the same domain is one area where SSIS will tend to shine. But if you want to use BCP, I do not believe there is a way to directly move data from one instance of SQL to another. You can however do it indirectly by using BCP to export the data to an interemediate file, and then use BCP again to import it from that intermediate file into your other instance of SQL Server. BCP is a command line driven program, and I can't really give you a good example without a lot more details, but the general syntax and some samples are availabe on [MSDN][1]. [1]: http://msdn.microsoft.com/en-us/library/ms162802.aspx
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.