Enterprise Business Rules · Module 7

bcp Import Exercise: Model Answer

Module reference

bcp Import Exercise: Model Answer

bcp accounting.dbo.employees in "C:\data\emp.txt" -S SRV1 -T -c

Run this in a Windows terminal with bcp installed. The input path belongs to that machine. The target table must already exist and match the file layout. -T selects integrated authentication; -c selects character format.

  1. Correct target: accounting.dbo.employees (4 points).
  2. Import direction and quoted file path (4 points).
  3. SRV1 selected with -S (4 points).
  4. -T and -c options (4 points).
  5. Check process status, rejected rows, and destination data before accepting or retrying the load (4 points).

No completion credit is automatically recorded. Return to the exercise.