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.

Updating and deleting <strong>FILESTREAM</strong> data________________________________78<strong>FILESTREAM</strong> and triggers____________________________________________79Advanced <strong>FILESTREAM</strong> DDL___________________________________________ 80<strong>The</strong> <strong>FILESTREAM</strong> data container and partitioned tables___________________ 80Creating a database with multiple <strong>FILESTREAM</strong> filegroups__________________83Disabling <strong>FILESTREAM</strong> Storage on a Database_____________________________87Summary_______________________________________________________________Chapter 3: Accessing <strong>FILESTREAM</strong> Data from Client Applications_____ 89What is Streaming?____________________________________________________ 89Understanding Streaming Access to <strong>FILESTREAM</strong> Data_____________________ 90Step 1: Starting a transaction___________________________________________91Step 2: Retrieving the logical path name and transaction context_____________92Step 3: Opening the <strong>FILESTREAM</strong> data file_______________________________95Step 4: Reading and writing <strong>FILESTREAM</strong> data__________________________ 98Step 5: Closing the <strong>FILESTREAM</strong> data file_______________________________ 101Step 6: Closing the transaction (COMMIT/ROLLBACK)___________________ 101Data Manipulation Using the Streaming APIs_____________________________102Inserting a new record into a <strong>FILESTREAM</strong>-enabled table__________________ 102Replacing the <strong>FILESTREAM</strong> data completely____________________________ 103Partial updates to <strong>FILESTREAM</strong> data___________________________________104Reading information from the <strong>FILESTREAM</strong> store________________________ 105Deleting the BLOB data stored in a <strong>FILESTREAM</strong> column_________________ 105Deleting a row from a <strong>FILESTREAM</strong>-enabled table_______________________ 105Lab 1: Reads, Writes and Partial Updates__________________________________106Handling multiple <strong>FILESTREAM</strong> columns and rows______________________ 114Understanding the Logical Path to a <strong>FILESTREAM</strong> Data File________________ 115Formatting PathName()______________________________________________ 119PathName() and ROWGUIDCOL______________________________________ 120SqlFileStream Class Reference__________________________________________ 123Instantiating a SqlFileStream object____________________________________ 123OpenSqlFilestream API Reference_______________________________________126Summary____________________________________________________________ 130

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

Saved successfully!

Ooh no, something went wrong!