I came across this solution for some months ago on another forum. It is very handy, so I thought i should share it.
CREATE TABLE myTable(Document varbinary(max))
INSERT INTO myTable(Document) SELECT * FROM OPENROWSET(BULK N'C:\Image1.jpg', SINGLE_BLOB)
Print | posted on Wednesday, September 26, 2007 12:35 PM | Filed Under [ Administration ]
Powered by:
Copyright © Peter Larsson