Just observed on SQL Server Express 2008 R2, I am able to delete the filestream files for each table row manually in filesystem. Upon delete the application throws an error
A transport-level error has occurred when receiving results from the server. (provider: Shared Memory Provider, error: 0 – No process is on the other end of the pipe.)
Is there a way to restrict delete operation on the filesystem while using filestream to avoid this?
I am following this article Link
Under “File System Streaming Access” it states that
Because file operations are transactional, you cannot delete or rename FILESTREAM files through the file system.
However, I am able to delete them.
From the link you provided
which is exactly what you see…
This in turn means that your setup is not secure – the machine login and the SQL Server service account must be different and the machine login should NOT have access to those parts of the filesystem!