I need help reading a file from SQLServer2008 R2 using Openrowset, I can write the file in the Blob column as follows:
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 to read it and write to disk?
Thank you
user741233
source
share