Open Blob fields using Openrowset in SQLSERVER 2008 R2
-
29-10-2019 - |
Question
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
No correct solution
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow