I need help to read a fileobject from SQLServer2008 R2 using the Openrowset, i can write a File to a Blob column like this:
INSERT INTO myTable(FileName, FileType, Document)
SELECT 'Text1.txt' AS FileName,
'.txt' AS FileType,
* FROM OPENROWSET(BULK N'C:\Text1.txt', SINGLE_BLOB) AS Document;
but how do i read it back and write it to the disk?
thank you