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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Table <strong>of</strong> ContentsIntroduction____________________________________________________19Chapter 1: Storing and Managing Unstructured Data_________________23Structured Data______________________________________________________ 24Unstructured Data_____________________________________________________27CLOB data_________________________________________________________28BLOB data_________________________________________________________29Storing Unstructured Data______________________________________________30Storing Large Objects in <strong>SQL</strong> <strong>Server</strong>____________________________________30Storing Large Objects in the file system__________________________________ 32Database or file system?_______________________________________________ 32Enter <strong>FILESTREAM</strong>____________________________________________________ 37A first look at <strong>FILESTREAM</strong>___________________________________________39When to use <strong>FILESTREAM</strong>___________________________________________ 44Summary____________________________________________________________ 46Chapter 2: Getting Started with <strong>FILESTREAM</strong>______________________ 48<strong>The</strong> <strong>FILESTREAM</strong> Data Container_______________________________________ 48Understanding the <strong>FILESTREAM</strong> Filegroup________________________________50Creating <strong>FILESTREAM</strong>-enabled Databases_________________________________ 53Creating a new <strong>FILESTREAM</strong>-enabled database___________________________ 53Enabling an existing database for <strong>FILESTREAM</strong>___________________________59Creating a Table with <strong>FILESTREAM</strong> Columns_____________________________ 60Using SSMS table designer to create a table with <strong>FILESTREAM</strong> columns______ 60Using T-<strong>SQL</strong> to create a table with <strong>FILESTREAM</strong> columns__________________ 61Using T-<strong>SQL</strong> to add <strong>FILESTREAM</strong> columns to an existing table______________63Converting VARBINARY(MAX) columns to <strong>FILESTREAM</strong> and vice versa______ 66Tables and <strong>FILESTREAM</strong> filegroups____________________________________ 68<strong>FILESTREAM</strong> filegroup queries_______________________________________ 69<strong>FILESTREAM</strong> Data Manipulation Using T-<strong>SQL</strong>____________________________ 70Inserting a row with <strong>FILESTREAM</strong> data_________________________________72

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

Saved successfully!

Ooh no, something went wrong!