BUG: An Error Message May Occur with the bcp Utility and BULK INSERT When You Load IMAGE Data Into Tables (271344)
The information in this article applies to:
- Microsoft SQL Server 2000 (all editions)
This article was previously published under Q271344
BUG #: 235567 (SHILOH_BUGS)
SYMPTOMS
If you try to insert a binary large object (BLOB), such as a Microsoft Word document, into a table that uses the bulk copy program or BULK INSERT, one or both of the following error messages may occur:
Server: Msg 4832, Level 16, State 1, Line 1
Bulk Insert: Unexpected end-of-file (EOF)
encountered in data file.
Server: Msg 7399, Level 16, State 1, Line 1
OLE DB provider 'STREAM' reported an error.
The provider did not give any information about the error.
The statement has been terminated.
CAUSE
The error messages occur because both the bulk copy program and BULK INSERT assume that the file being used is a delimited file.
WORKAROUND
Edit the format file and remove all references to the rest of the data columns in the table from the format file as shown in the example in the "More Information" section.
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 KB271344 |
---|
|