Hilaire,
I am a friggin idiot. Here's more detail and my simple solution. I am reading byte arrays from a binary file and loading them into SQL Server.
I read them out as a hex string, ie 0x0000..... Ok when I tried to bulk insert them into a SQL Server binary column SQL Server barked
at me and said I needed to use convert to get the data in there. As it turns out all I had to do was leave the "0x" off the front of the hex string
and all was good.
-CodeYankee
Main Topics
Browse All Topics





by: HilairePosted on 2005-03-17 at 01:43:06ID: 13563290
Not simple ...
I'm afraid you'll have to use a loop to update each record separately
I can post working code if you post table structure, or at least
tablename, primary key,
name and datatype of the char/varchar column that contains the binary strings,
and name and datatype of the binary/varbinary column to be updated
Hilaire