SQL Server 2012 Full Text Search on FILESTREAMS with Windows Encrypting File System (EFS)

强颜欢笑 提交于 2019-12-23 19:16:13

问题


This is basically a yes/no question, but it is appreciated if the answer includes supporting references and a how-to if the answer is "yes". Strangely, I couldn't find a definitive answer in MSDN or TechNet, and my instincts and experiments lead me to a "no" conclusion.

Is it possible to use Windows EFS with SQL Server 2012's FILESTREAMS and FileTables and have Full Text Search work on those FILESTREAMS?

TIA

Additional Detail

I have a Visual Studio SQL Project created that stamps out DBs with FILESTREAMS on FileTables, with Full Text Search working, so I know the baseline is good. From there I tried 2 things.

  1. Browse to the physical FileTable folders and encrypt them with EFS. This is probably the wrong approach, since I'm adding encryption after creating the DB, Log and FILESTREAM. The SQL error is "Msg 233, Level 20, State 0, Line 0 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.)" Disabling encryption on the physical folder puts things to rights.

  2. Encrypt the physical target folders first, then deploy the SQL project (so the .MDF and .LDF are also encrypted on disk). This seems to work better, but when I browse the UNC path (\MyMachine\MSSQLSERVER\NewDb\Files) and copy a file there, I get an error from Windows: "Destination Folder Access Denied. You need permission to perform this action." So search might work, but I can't put files in the folder.


回答1:


The answer is "yes" you can encrypt FILESTREAMS with Full Text Search. Details are in the comments.



来源:https://stackoverflow.com/questions/34949739/sql-server-2012-full-text-search-on-filestreams-with-windows-encrypting-file-sys

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!