Events
31 Mar, 11 pm - 2 Apr, 11 pm
The biggest SQL, Fabric and Power BI learning event. March 31 – April 2. Use code FABINSIDER to save $400.
Register todayThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Applies to:
SQL Server
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 the following benefits:
Generally it has been inconvenient to store unstructured data in a relational database. It has been impractical to rewrite established applications (such as Microsoft Word or Adobe Reader) to interact through relational database APIs. These applications expect the data to be accessible through Windows APIs. The applications have the following expectations:
Many years ago, SQL Server did not offer any variety of ways to store unstructured data in a relational database. But nowadays it does offer ways to store unstructured data.
SQL Server already has the FILESTREAM feature. The FILESTREAM feature 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. The FileTable feature enables enterprise customers to store unstructured file data, and directory hierarchies, in a SQL Server database. The feature addresses the requirements for non-transactional access and Windows application compatibility for file-based data.
Feature | File Server and Database Solution | FILESTREAM Solution | FileTable Solution |
---|---|---|---|
Single story for management tasks | No | Yes | Yes |
Single set of services: search, reporting, querying, and so forth | No | Yes | Yes |
Integrated security model | No | Yes | Yes |
In-place updates of FILESTREAM data | Yes | No | Yes |
File and directory hierarchy maintained in the database | No | No | Yes |
Windows application compatibility | Yes | No | Yes |
Relational access to file attributes | No | No | Yes |
Another option for storing unstructured data involves a Remote BLOB Store (RBS). For more information, see Remote Blob Store (RBS) (SQL Server).
FILESTREAM (SQL Server)
FileTables (SQL Server)
Remote Blob Store (RBS) (SQL Server)
Events
31 Mar, 11 pm - 2 Apr, 11 pm
The biggest SQL, Fabric and Power BI learning event. March 31 – April 2. Use code FABINSIDER to save $400.
Register todayTraining
Module
Explore Azure Storage for non-relational data - Training
This content is a part of Explore Azure Storage for non-relational data.
Certification
Microsoft Certified: Azure Database Administrator Associate - Certifications
Administer an SQL Server database infrastructure for cloud, on-premises and hybrid relational databases using the Microsoft PaaS relational database offerings.
Documentation
Remote Blob Store (RBS) (SQL Server) - SQL Server
SQL Server Remote BLOB Store (RBS) stores binary large objects in commodity storage instead of on the main database server. Learn about this add-on component.
FileTables (SQL Server) - SQL Server
Explore the benefits and functionality of FileTables, the SQL Server feature that uses a directory structure to store files. Learn how to work with FileTables.