The information in this article applies to:
SUMMARY
The BCP format file can be modified to skip over data in the BCP
input data file and be loaded into specific columns of a table. The
fifth column of the BCP format file identifies which column (first,
second, third, etc.) of a table the corresponding field of the input
data file is loaded into. The values of the column identifiers can be
changed to redirect the load of the input data file.
MORE INFORMATION
Listed below are "before" and "after" examples of a BCP format file
that was modified to load the fifth, sixth, and seventh field
positions of a 10-field input file into the first, second, and
third columns of a table.
BeforeAll input file fields are loaded into all table columns.
AfterThe fifth, sixth, and seventh field positions of the input file are loaded in the first, second, and third columns of a table. Please note that nonzeroed columns of the table are not required to be in any specific order. Other possible combinations are: 132, 231, 213, 312, and 321.This "after" format file can be used to load a table with 10 columns with the columns not receiving data defined to allow nulls, or used to load a table with three columns.
Additional query words: BCP
Keywords : kbtool SSrvBCP |
Last Reviewed: March 9, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |