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 11: FileTableColumn Nameis_<strong>of</strong>flineis_hiddenis_readonlyis_archiveis_systemis_temporaryColumn DescriptionReflects the NTFS extended file attribute "<strong>of</strong>fline."When this attribute is set, it means that the file is onlyavailable when working online. This attribute is bestleft unmodified.Reflects the hidden attribute <strong>of</strong> the file system.Reflects the read-only attribute <strong>of</strong> the file system.Reflects the archive attribute <strong>of</strong> the file system.Usually, the archive bit is reset by full and incrementalbackup operations and set by the Windows APIs whenthe file contents are changed.It's important to note that when modifying thefile_stream value using T-<strong>SQL</strong>, the archive bit isnot set automatically by <strong>SQL</strong> <strong>Server</strong>.Reflects the system file attribute <strong>of</strong> the file system.Reflects the NTFS extended file attribute "temporary."SampleValue(s)Table 11-1:Overview <strong>of</strong> the FileTable schema.You'll notice that the majority <strong>of</strong> the columns in the schema are metadata columns. Ina traditional file system, this metadata would be stored in the file system's metadataarea (like the MFT for NTFS). This metadata is used by the <strong>SQL</strong> <strong>Server</strong> component thatexposes the FileTable's contents as a file share to set the file and folder attributes. <strong>The</strong>ydo not influence how the files can be used. For example, if the is_readonly bit is setto 1, it does not mean that <strong>SQL</strong> <strong>Server</strong> will enforce that the file contents cannot bechanged. <strong>The</strong>se metadata attributes are only present to provide compatibility with theNTFS file system.391

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

Saved successfully!

Ooh no, something went wrong!