« SQL Server 2008 R2 Training Kit | Main | Key points on using Filestream attribute »
April 18, 2010
Key points on using Filestream attribute
According to this study from Microsoft Research, SQL Server handles BLOBs smaller than 256KB more efficiently than a file system, while NTFS is more efficient for BLOBS larger than 1MB. SQL Server 2008 introduced the Filestream storage attribute for varbinary(max) data type to store data in files.Here are the steps to begin using this feature:
Example of column definitions:
Photo VARBINARY(max) FILESTREAM NULL,
RowId UNIQUEIDENTIFIER NOT NULL ROWGUIDCOL UNIQUE DEFAULT NEWID()
Reference:
Bob Beauchemin, Programming with FileStreams in SQL Server 2008, MSDN Magazine
Posted by Steve Mann at April 18, 2010 4:38 PM
