Im getting an error while trying to load some data that includes a binary field into a database. Doing a INSERT INTO works fine, but doing a BULK LOAD doesnt. How could I fix this problem? Do I have to specify any additional information in the BULK INSERT command?
Command:
File Contents: (temp.txt)
Error Message:
Thanks for the help.
Edit: btw, im using SQL Server 2005 Express
Command:
BULK INSERT Table_2 FROM c:\temp.txt WITH (FIELDTERMINATOR = ,, ROWTERMINATOR =
File Contents: (temp.txt)
The binary field is the final field (col 2)DEFAULT,0x1000
Error Message:
Bulk load data conversion error (type mismatch or invalid character for the specified codepage) for row 1, column 2 (data). The OLE DB provider "BULK" for linked server "(null)" reported an error. The provider did not give any information about the error. Cannot fetch a row from OLE DB provider "BULK" for linked server "(null)".
Thanks for the help.
Edit: btw, im using SQL Server 2005 Express
Last edited by a moderator: