What is BCP in SQL Server? When does it used?

What is BCP in SQL Server? When does it used?



Views: 1359 | Community Opinion: 1

Tags..  SQL Server Interview  Database  Database Interview

Bookmark this page..



Ask a New Question Go to Home

Community Opinion/Answers
 

BulkCopy is a tool used to copy huge amount of data from tables and views. The Bulk Copy Program (BCP) is a command-line utility that ships with SQL Server 2000. With BCP, you can import and export large amounts of data in and out of SQL Server databases. BCP does not copy the structures same as source to destination.

The BCP utility is accessed from the command prompt. The syntax is as follows:

bcp {dbtable | query} {in | out | queryout | format} datafile
[-n native type] [-c character type]
[-S server name] [-U username]
[-P password] [-T trusted connection]






Register or Login to Post Your Opinion