SlideServe
Menu
Préférences
© SlideServe · v2026

BCP - Bulk Copy Program

tamyra avatar
5 diapositives · 421 Views · Aug 20, 2014

BCP - Bulk Copy Program. Bulk copying to and from Microsoft SQL Server. BCP introduction. BCP is use for import and export of data from / to Microsoft SQL Server. BCP is a simple(?) command line tool. BCP has a lot(!) of options. BCP import. Import data from a file to SQL Server.

BCP - Bulk Copy Program - slide 1
01 / 5BCP - Bulk Copy Program
1 / 17

Télécharger la présentation

BCP - Bulk Copy Program
Une image / un lien ci-dessous est fourni (tel quel) pour télécharger la présentation

Politique de téléchargement : le contenu du site vous est fourni TEL QUEL pour votre information et votre usage personnel ; il ne peut être vendu, concédé sous licence ni partagé sur d’autres sites sans l’accord de son auteur.Le contenu vous est fourni TEL QUEL, pour votre information et votre usage personnel uniquement. Téléchargez la présentation en cliquant sur ce lien. Lors du téléchargement, si vous ne parvenez pas à télécharger une présentation, l’éditeur a peut-être supprimé le fichier de son serveur.Pendant le téléchargement, si vous ne parvenez pas à obtenir une présentation, le fichier a peut-être été supprimé par l’éditeur.

F I N

Plus de contenu associé

Transcription de la présentation
  1. BCP - Bulk Copy Program Bulk copying to and from Microsoft SQL Server BCP - bulk copy program for Microsoft SQL Server

  2. BCP introduction • BCP is use for import and export of data from / to Microsoft SQL Server. • BCP is a simple(?) command line tool. • BCP has a lot(!) of options BCP - bulk copy program for Microsoft SQL Server

  3. BCP import • Import data from a file to SQL Server. • Database + tables must exist • no creation at run time BCP - bulk copy program for Microsoft SQL Server

  4. BCP import example • bcp importexport.dbo.employee in newEmployees.txt -c -t, -UNV14 -Uanders -Psecret -E • bcp bulk copy program • importexport.dbo.employee • importexort name of an existing database • dbo database owner (could we write anything else??) • employee name of an existing table (in the importexport database) • in using bcp to copy data INto the table • newEmployees.txt a text file with the new data • -c the imported file is a text (character) file • - t, field terminator is "," • -SUNV14 server name is "UNV14" • -Uanders user name is "anders" • -Psecret password is "secret" • -E don't ignore the identity columns in the input file • if not new identities are generated BCP - bulk copy program for Microsoft SQL Server

  5. BCP export example • bcp northwind.dbo.shippers out shipout.txt -c -t, -SUNV14 -Uanders -Psecret • bcp bulk copy program • northwind.dbo.shipper • northwind name of database • dbo database owner • shippers name of table • out copying OUT from the database • shipout.txt name of the receiving file • -c output is a text (character) file • - t, field terminator in output file is "," • -SUNV14 server name is "UNV14" • -Uanders username is "anders" • -Psecret password is "secret" BCP - bulk copy program for Microsoft SQL Server