Question : Insert image into sql 2005 table

I am trying to insert an image into a table., from this syntax from the web but it does not seem to work for me.  Keeps gving the error of Incorrect syntax near the keyword BULK.  Don't know if my network address will work either.  I am trying to go over netowrk to my computer to get the image.

 SELECT * FROM OPENROWSET(BULK, '\\ngmnnb-j6ops-a2\C:documents and settings\kevin.deutschman\my documents\my pictures\black1.ico', SINGLE_BLOB)

Answer : Insert image into sql 2005 table

Hi,

Try this:

SELECT * FROM OPENROWSET(BULK '\\ngmnnb-j6ops-a2\C$\documents and settings\kevin.deutschman\my documents\my pictures\black1.ico', SINGLE_BLOB)

/peter
Random Solutions  
 
programming4us programming4us