Please visit SQLVERSITY.COM for more details.
BCP stands for Bulk Copy Program.
bcp <Table/View/Query> <in/out/queryout/format> <File Name> <options>
bcp SQLVersityDB.dbo.BCPDemo in “C:\BCPDemo\BCP.txt” -c -T
It imports all the records of BCP.txt into BCPDemo table.
bcp SQLVersityDB.dbo.BCPDemo out “C:\BCPDemo\BCP.txt” -c -T
It exports all the records of BCPDemo table into BCP.txt.
-c indicates data is character type
-T indicates trusted connection. It tells that BCP should use windows authentication to connect to database.
To see the description of all BCP command line arguments, Start — type CMD and press Enter — Type BCP and press enter.
For more information about BCP, Click here