INF: Differences Between BCP Format Files Versions 1.x and 4.2ID: Q89657
|
As stated in Chapter 10 "Transferring Data to and from SQL Server" of the
Microsoft SQL Server version 4.2 "System Administrator's Guide," format
files for Bulk Copy Program (BCP) are not compatible between versions 1.x
and 4.2. This article discusses how the structure of the format file has
changed in version 4.2, thus enabling you to make the appropriate changes
to existing 1.x format files if needed.
(NOTE: The above reference is on page 91 of the SQL Server for OS/2 4.20
and on page 210 of the SQL Server for Windows NT "System Administrator's
Guide.")
There are two distinct changes made to the structure of the format
file in version 4.2, which are as follows:
4.0
2
1<tab>SYBCHAR<tab>0<tab>14<tab>","<tab>1<tab>name
2<tab>SYBINT<tab>0<tab>4<tab>"\r\n"<tab>age
In version 4.2 ("." represents spaces):
4.2
2
1.......SYBCHAR.......0.......30......",".......1........name
2.......SYBINT........0.......4......."\r\n"....2........id
The length of each column of information in the format file for BCP
version 4.2 is:
Host file column order: 8
Host file datatype: 14
Host file data length: 8
Prefix length: 8
Terminator: 10
Server column number: 8
Server column name: \r\n
(NOTE: The column name is terminated with a carriage return line
feed.)
Additional query words: 4.20 1.10 Format FMT Windows NT
Keywords : kbtool SSrvBCP
Version : 1.x 4.2
Platform :
Issue type :
Last Reviewed: March 13, 1999