bcp Vs Bulk Insert

What is the difference between bcp(Bulk Copy Program) and Bulk Insert in MS-SQL?
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

sti2006Author Commented:
Not Yet Found Any Answer
Aneesh RetnakaranDatabase AdministratorCommented:
Hi sti2006,

1.BCP : is a command prompt utility
2.  BULK INSERT statement cannot bulk copy data from an instance of SQL Server to a data file.


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Aneesh RetnakaranDatabase AdministratorCommented:
BULK INSERT is “in memory”
BCP is more configurable
Both are single threaded
Only run on one CPU( No parallel operations)
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

Ved Prakash AgrawalDatabase Consultant/Performance ArchitectCommented:
BCP used to transfer the data into data file with complete table or you can use query to be data transfer from table to file.
file may be text file or CSV and also you can give the formatting also.

BULK insert used to copy data from files to database tables.


Using ODBC BCP API in 7.0 and 2000
Native format is most optimal
Less parsing efforts/cost
No string to data type conversions!
Use load hints:
Import & Export
Local or Remote
Always uses Net Library
Version switch for down level native and char formats

Bulk Insert

“Fastest” way to load data into SQL Server
Everything is in-process with SQL Server
If table has existing data and is a HEAP, BULK INSERT starts on new extent to provide lightweight ROLLBACK
Ordered input data
Bulk Insert uses 1 Thread per CPU
Connections affinities to a UMS scheduler
Import only
Server based
Streams rowset directly in to server
No support for down level version input (native) data formats (no -V)

Chetan Sachdeva
Eugene ZCommented:

Using bcp and BULK INSERT

the BULK INSERT statement cannot bulk copy data from an instance of SQL Server to a data file. The BULK INSERT statement allows you to bulk copy data to an instance of SQL Server using the functionality of the bcp utility with a Transact-SQL statement, rather than from the command prompt.

check the article
SQL Server 2005 Books Online  
Introducing bcp, BULK INSERT, and OPENROWSET(BULK)  


Copies a data file into a database table or view in a user-specified format.

The BULK INSERT statement can be executed within a user-defined transaction. Rolling back a user-defined transaction that uses a BULK INSERT statement and BATCHSIZE clause to load data into a table or view using multiple batches rolls back all batches sent to SQL Server.

Only members of the sysadmin and bulkadmin fixed server roles can execute BULK INSERT.

Ved Prakash AgrawalDatabase Consultant/Performance ArchitectCommented:
BCP use for Creating data file into file system

BULK INSERT use for importing data from data file which is in file system
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft SQL Server

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.