BUG: SQL Server 2000 BCP Utility Fails to Produce Proper Prefix-Length for Varbinary Column in Format File (279224)
The information in this article applies to:
- Microsoft SQL Server 2000 (all editions)
This article was previously published under Q279224
BUG #: 234709 (Shiloh_bugs)
SYMPTOMS
Running the bcp utility to get the data out of a table with varbinary columns, generates an incorrect prefix-length value in the format file.
Use of a varbinary column, with a width greater than 255 bytes, generates a format file that has a prefix-length of 1 byte instead of 2 bytes and leads to the truncation of the actual data that is copied in.
WORKAROUND
When you specify the parameters for the format file, when BCPing out the data, you must manually set the "Prefix length of field FIELD_NAME" to 2 for the varbinary columns that are 255 bytes or more.
STATUS
Microsoft has confirmed this to be a problem in SQL Server 2000.
Modification Type: | Major | Last Reviewed: | 10/3/2003 |
---|
Keywords: | kbBug kbCodeSnippet kbpending KB279224 |
---|
|