<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://sqlblogcasts.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>Simons SQL Blog : Filestream, Katmai</title><link>http://sqlblogcasts.com/blogs/simons/archive/tags/Filestream/Katmai/default.aspx</link><description>Tags: Filestream, Katmai</description><dc:language>en</dc:language><generator>CommunityServer 2007.1 (Build: 20917.1142)</generator><item><title>SQL Server 2008 Filestream : Why?</title><link>http://sqlblogcasts.com/blogs/simons/archive/2007/12/17/SQL-Server-2008-Filestream---Why-.aspx</link><pubDate>Mon, 17 Dec 2007 23:24:43 GMT</pubDate><guid isPermaLink="false">fa8c4e8e-46a3-4193-8264-2c1a9cb3475d:5635</guid><dc:creator>simonsabin</dc:creator><slash:comments>6</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://sqlblogcasts.com/blogs/simons/rsscomments.aspx?PostID=5635</wfw:commentRss><wfw:comment xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://sqlblogcasts.com/blogs/simons/commentapi.aspx?PostID=5635</wfw:comment><comments>http://sqlblogcasts.com/blogs/simons/archive/2007/12/17/SQL-Server-2008-Filestream---Why-.aspx#comments</comments><description>
&lt;p&gt;Why would you want to use filestream in SQL Server 
2008?&lt;/p&gt;
&lt;p&gt;The files you store using filestream in SQL Server 2008 are not accessible 
directly using the normal io methods.Instead you have to make a SQL call to get 
a pointer which you can then use with normal methods.&lt;/p&gt;
&lt;p&gt;So if you have to access SQL anyway&amp;nbsp;why not store the data directly in 
SQL in the say a varbinary(max) field?&lt;/p&gt;
&lt;p&gt;The answer is performance. &lt;/p&gt;
&lt;p&gt;Jim Gray and his colleagues did research into the storing of large data in 
the database (SQL2005)&amp;nbsp;versus the file system (NTFS).&lt;/p&gt;
&lt;p&gt;&lt;a href="http://research.microsoft.com/research/pubs/view.aspx?msr_tr_id=MSR-TR-2006-45"&gt;&lt;strong&gt;To BLOB 
or Not To BLOB: Large Object Storage in a Database or a Filesystem&lt;/strong&gt;&lt;/a&gt;, 
&lt;/p&gt;
&lt;p&gt;In this research it showed that storing anything less than 256Kb was better 
done in the database, and anything larger than 1M should be stored in the file 
system. In between depended on the read/write ratio, and storage age.&lt;/p&gt;
&lt;p&gt;So if you need to store data blobs that are &amp;gt; 256Kb (per instance) you 
need to consider filestream.&lt;/p&gt;
&lt;p&gt;[18/12/2007 Link fixed]&lt;/p&gt;&lt;br /&gt;
&lt;script type="text/javascript" src="http://sqlblogcasts.com/sitefiles/1000/Social_Buttons.js"&gt;&lt;/script&gt;
&lt;hr /&gt;
-
&lt;script type="text/javascript" src="http://sqlblogcasts.com/sitefiles/1000/google_rss.js"&gt;
&lt;/script&gt;
&lt;script type="text/javascript"&gt;var height=90;var width=720;&lt;/script&gt;
&lt;script src="http://www.sqlknowhow.com/scripts/Banner.js" type="text/javascript"&gt;
&lt;/script&gt;
 &lt;img src="http://sqlblogcasts.com/aggbug.aspx?PostID=5635" width="1" height="1"&gt;</description><category domain="http://sqlblogcasts.com/blogs/simons/archive/tags/Katmai/default.aspx">Katmai</category><category domain="http://sqlblogcasts.com/blogs/simons/archive/tags/SQL+Server+2008/default.aspx">SQL Server 2008</category><category domain="http://sqlblogcasts.com/blogs/simons/archive/tags/Filestream/default.aspx">Filestream</category></item></channel></rss>