The information in this article applies to:
SUMMARYThe following information describes how to use BCP (bulk copy program) to extract just the month and the year from an ASCII file with a column that has a date of "mm/dd/yy" in it. MORE INFORMATION
Using a format file, BCP can be instructed to skip information or
entire fields. For example, suppose a table is defined as the
following:
And you want to load in an ASCII file with the following information in it:
To do this, you need to edit a format file to include a field of the length that you want to skip, and then map this to column 0 (zero) on the server. For a more detailed explanation of this procedure, query on the following words in the Microsoft Knowledge Base:
The following is a sample format file:
Keywords : kbtool SSrvBCP |
Last Reviewed: March 10, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |