<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://sqlblog.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Search results matching tags 'SQL Server', 'encryption', 'SQL 2008', and 'filestream'</title><link>http://sqlblog.com/search/SearchResults.aspx?o=DateDescending&amp;tag=SQL+Server,encryption,SQL+2008,filestream&amp;orTags=0</link><description>Search results matching tags 'SQL Server', 'encryption', 'SQL 2008', and 'filestream'</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP2 (Build: 61129.1)</generator><item><title>T-SQL Tuesday #004: Why Doesn't TDE Encrypt My FILESTREAM Data?</title><link>http://sqlblog.com/blogs/michael_coles/archive/2010/03/08/t-sql-tuesday-004-why-doesn-t-tde-encrypt-my-filestream-data.aspx</link><pubDate>Tue, 09 Mar 2010 02:42:00 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:22972</guid><dc:creator>Mike C</dc:creator><description>&lt;P&gt;This post is my entry for &lt;A title="Adam Machanic's Blog" href="http://sqlblog.com/blogs/adam_machanic/default.aspx" target=_blank&gt;Adam Machanic's&lt;/A&gt; &lt;A title="T-SQL Tuesday #004" href="http://www.straightpathsql.com/archives/2010/03/invitation-for-t-sql-tuesday-004-io/" target=_blank&gt;T-SQL Tuesday #004&lt;/A&gt;, hosted this time by &lt;A title="Mike Walsh" href="http://www.straightpathsql.com/aboutus/" target=_blank&gt;Mike Walsh&lt;/A&gt;. I was at the RSA Conference in San Francisco last week discussing database encryption options in SQL Server 2008 and one question seemed to keep coming up. The question concerns &lt;A title="FILESTREAM Overview" href="http://msdn.microsoft.com/en-us/library/bb933993.aspx" target=_blank&gt;FILESTREAM&lt;/A&gt; and &lt;A title="Understanding TDE" href="http://msdn.microsoft.com/en-us/library/bb934049.aspx"&gt;Transparent Data Encryption&lt;/A&gt; (TDE), but first a little background:&lt;/P&gt;
&lt;P&gt;FILESTREAM is a new&amp;nbsp;SQL Server 2008 feature. When you apply the FILESTREAM attribute to a &lt;A title=varbinary href="http://msdn.microsoft.com/en-us/library/ms188362.aspx"&gt;varbinary(max)&lt;/A&gt; column SQL Server stores your BLOB data in a "FILESTREAM data container" (an NTFS directory structure) instead of directly in the database (the MDF and NDF files that normally hold all your data). The advantages of FILESTREAM are speed (streaming NTFS&amp;nbsp;access for large files) and the ability to store BLOB data larger than 2.1 GB.&lt;/P&gt;
&lt;P&gt;One of the downsides of FILESTREAM concerns another new feature, TDE. TDE&amp;nbsp;transparently encrypts your database, adding a layer of protection against physical theft of your database files and storage devices. But TDE does not encrypt FILESTREAM data. The question I kept getting was "why?"&amp;nbsp; The answer is fairly simple -- but a picture's worth a thousand words:&lt;/P&gt;
&lt;P&gt;&lt;IMG style="WIDTH:441px;HEIGHT:240px;" title=TDE alt=TDE src="http://e60ybw.bay.livefilestore.com/y1pQnPEkhA79JnqanROmfWvN1V2efDqOZYfYWtlVzuhCvibk6fuQMvWa1mqL3pRzsYHUAW6CRFYEtgAdJojBTYaJlzNqpYYX20N/iFTS_TDE.png" width=441 height=240&gt;&lt;/P&gt;
&lt;P&gt;As you can see in the picture,&amp;nbsp;TDE sits midway between your physical storage and SQL Server's IO buffers. This ensures that everything that passes through the IO buffers gets encrypted on its way to persistent storage and decrypted on its way back out of storage. This is also&amp;nbsp;why it's "transparent" to your applications, developers and users. SQL Server reads and writes data through the IO buffers in 8 KB pages. FILESTREAM achieves much of its performance enhancement for BLOB data by simply bypassing the IO buffers. But since TDE acts only on data passing through the IO buffers, it misses FILESTREAM BLOB data completely.&lt;/P&gt;
&lt;P&gt;Fortunately there are plenty of other options for encrypting your FILESTREAM data -- you can&amp;nbsp;use &lt;A title=EFS href="http://msdn.microsoft.com/en-us/library/ms995356.aspx"&gt;Windows Encrypting File System&lt;/A&gt; (EFS), &lt;A title=BitLocker href="http://support.microsoft.com/kb/933246"&gt;BitLocker&lt;/A&gt;&amp;nbsp;or third-party file/folder/volume encrypting software, for instance.&lt;/P&gt;</description></item></channel></rss>