|
Posted by Erland Sommarskog on 01/10/07 23:26
Jennifer (J.Evans.1970@gmail.com) writes:
> I'm trying to do an insert using Bulk Insert with a fixed length file.
> I'm using a format file.
> I'm getting the following error message:
> Cannot perform bulk insert. Invalid collation name for source column 16
> in format file '\\wbhq.com\dfsdv\iDataInt\GOPFiles\GOPFormatFile.txt'.
I was not able to repeat this. Then again, I was not able to import the
file successfully either, but the error message I got was:
Server: Msg 4864, Level 16, State 1, Line 1
Bulk insert data conversion error (type mismatch) for row 1, column 15
(GLBalance).
Server: Msg 4864, Level 16, State 1, Line 1
Bulk insert data conversion error (type mismatch) for row 2, column 15
(GLBalance).
which makes me think that the format file was interpreted OK. (And the
reason for the error is simply that your file was mashed in news transport,
and I did not really make any effort to resurrect it.)
Since column 16 is a column you are not even importing the message seems
funny to me. My prime suspicions that the contents of
> '\\wbhq.com\dfsdv\iDataInt\GOPFiles\GOPFormatFile.txt'
is not what you think it is.
--
Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se
Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx
[Back to original message]
|