Question : Inserting picture's from a url into MS SQL Server 2008

Is there a way, to insert a picture into a sql server, if that image is only accessable via a URL?

e.g.:

UPDATE dbo.tbl_Photos SET Document =
(SELECT * FROM
OPENROWSET(BULK 'http://www.website.be/photos/1.jpg', SINGLE_BLOB) AS ORS)
WHERE INP_ID = '00000000-0000-0000-0000-000000000000'

Thanks in advance,

MA

Answer : Inserting picture's from a url into MS SQL Server 2008

you must do it from .net code
but you can use CLR to run .net code from sql server.
Random Solutions  
 
programming4us programming4us