Compare Options for Storing Blobs (SQL Server)


Applies To: SQL Server 2016

Discusses and compares the options that are available for storing files and documents in SQL Server.

A large percentage of enterprise data is unstructured in nature, and is typically stored as files and documents in file systems. Most of this data is produced, managed and consumed by applications that access the files through Windows APIs. Enterprises typically keep this data in the file system, while storing the related metadata for the files in a relational database.

Integrating unstructured data into the relational database provides significant benefits. These benefits include the following:

  • Integrated storage and data management capabilities such as backup.

  • Integrated services such as full-text search and semantic search over data and metadata.

  • Ease of administration and policy management over the unstructured data.

For the most part, however, it has not been convenient to store unstructured data in a relational database. It has not previously been possible to run existing Windows-based applications on top of relational systems. It is not practical to rewrite established applications (such as Microsoft Word or Adobe Reader) to run on top relational database APIs. These applications simply expect the data to be accessible through Windows APIs. In other words, the expectations include the following:

  • Windows applications are not aware of database transactions and do not require them.

  • Windows applications require compatibility with file system APIs for file and directory data.

SQL Server already has the FILESTREAM feature, which provides efficient storage, management and streaming of unstructured data stored as files on the file system. However, a FILESTREAM solution requires custom programming, and does not satisfy the requirement for full Windows application compatibility described above.

The FileTable feature builds on top of existing FILESTREAM capabilities to enable enterprise customers to store unstructured file data and directory hierarchies in a SQL Server database, by addressing the requirements for non-transactional access and Windows application compatibility for file-based data.

FeatureFile Server and Database SolutionFILESTREAM SolutionFileTable Solution
Single story for management tasksNoYesYes
Single set of services: search, reporting, querying, and so forthNoYesYes
Integrated security modelNoYesYes
In-place updates of FILESTREAM dataYesNoYes
File and directory hierarchy maintained in the databaseNoNoYes
Windows application compatibilityYesNoYes
Relational access to file attributesNoNoYes

For a comparison of these two features, see this blog post from the RBS team: SQL Server Remote BLOB Store and FILESTREAM feature comparison.

FileTables (SQL Server)
Remote Blob Store (RBS) (SQL Server)

Community Additions