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 2: Getting Started with <strong>FILESTREAM</strong>Let's create a partitioned table and see this in action. First, we'll drop the table we createdearlier by running the script shown in Listing 2-24.IF OBJECT_ID('Items', 'U') IS NOT NULLBEGINDROP TABLE ItemsENDGOListing 2-24:Dropping the Items table.When you drop a table with <strong>FILESTREAM</strong> columns, the <strong>FILESTREAM</strong> data containerfor that table is removed from the <strong>FILESTREAM</strong> data container. Note, however, thatthis is done by a garbage collector and you might experience some delay in getting thefile removed.If we now go to the <strong>FILESTREAM</strong> data container and take a look at the content <strong>of</strong> thefolder, the <strong>FILESTREAM</strong> folders have been removed and the folder is empty except for themetadata objects (Figure 2-7).Figure 2-7:Verifying that the <strong>FILESTREAM</strong> data container contains only metadata.81

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

Saved successfully!

Ooh no, something went wrong!