I am trying to do the following bulk insert:
BULK INSERT DATABASE.TABLE FROM 'C:\local\output\TESTFILE.txt' WITH (FIELDTERMINATOR = ';', ROWTERMINATOR = '\n').
Receiving the following error:
Msg 4863, Level 16, State 1, Line 1
Bulk load data conversion error (truncation) for row 1, column 2 (BinaryString).
Entire contents of TESTFILE.txt is as follows:
/STR_8.YOU.Test ; 1C 48 D0 00
NOTE: When I remove the spaces between binary data, so it looks like
/STR_8.YOU.Test ; 1C48D000
it works just fine.
My TABLE has the following 2 columns in it:
IDString varchar(50)
BinaryString varbinary(MAX)
Is there a particular data type to use to account for not only a binary string, but also the space character? I have tried using all reasonable data types to include varchar(MAX), varbinary(MAX), image (replacement for BLOB?). Or is there a particular argument I need to use to allow for the space character?