17.07.2015 Views

The Art of SQL Server FILESTREAM - Red Gate Software

The Art of SQL Server FILESTREAM - Red Gate Software

The Art of SQL Server FILESTREAM - Red Gate Software

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter 1: Storing and Managing Unstructured DataWindows permissions can access the LOB data files directly. This makes it a considerablechallenge to ensure that the LOB data files are accessible only to the Windows users whohave access to the associated relational data.Enter <strong>FILESTREAM</strong> storage, introduced with <strong>SQL</strong> <strong>Server</strong> 2008, which allows us toappend a <strong>FILESTREAM</strong> attribute to a VARBINARY(MAX) data type, and so get the performanceadvantages <strong>of</strong> storing LOB data on the file system, combined with the manyadvantages <strong>of</strong> having that data under the control <strong>of</strong> <strong>SQL</strong> <strong>Server</strong>. In this chapter, we willbegin our exploration <strong>of</strong> the storage <strong>of</strong> LOB data, using the new <strong>FILESTREAM</strong> attribute,covering:• what we mean by structured, unstructured and semi-structured data• advantages and disadvantages <strong>of</strong> storing LOB data in the database and file system• what <strong>FILESTREAM</strong> <strong>of</strong>fers, a first look at how it works, and strategic considerationsfor its use.Structured DataAs database pr<strong>of</strong>essionals, we deal with data every day; we store, manage, process,and query large volumes <strong>of</strong> data as part <strong>of</strong> our day-to-day database development andmanagement work. Most <strong>of</strong> the data that we handle may be regarded as structured,meaning that it conforms fully to the formats and data models associated with therelational database. By way <strong>of</strong> its compliance with the relational data model, such datagenerally also conforms to more formal definitions <strong>of</strong> the term, structured data, whichrefer to:• information that has been organized to allow identification and separation <strong>of</strong> thecontext <strong>of</strong> the information from its content• data organized into semantic chunks or entities, with similar entities grouped togetherin relations or classes, and presented in a patterned manner24

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!