Hello, I know how to copy a file from my FileSystem to a FileTable in SQL using TSQL.
But how do I do the opposite? that is, copy a file that I have in the FileTable to a folder in my PC?
Note: I have Non-Transactional access disabled so the FileTable is not visible to the File System
Code:
INSERT INTO Designs ([name],[file_stream])
SELECT 'Ime.xlsx' ,*
FROM OPENROWSET(BULK N'C:\Users\kalim\Documents\Ime.xlsx', SINGLE_BLOB) AS FileData
Note: I have Non-Transactional access disabled so the FileTable is not visible to the File System