Professional Documents
Culture Documents
• Advantages
• Everything within the database for backups, restores,
transactional and referential integrity, and so on
• Disadvantages
• BLOBs can only be accessed through Transact-SQL
• Large BLOBs can reduce performance
Storing BLOBs on the File System
• Disadvantages
• No mechanism for keeping data in step
• Security must be configured for the file system
FILESTREAM
• FILESTREAM implementation
• Varbinary(max) column
• BLOBs stored in NTFS file system
• Create a FILESTREAM filegroup
• Advantages
• Better performance for BLOBs > 1 MB and no limit
• Fully integrated: management, security, referential and
transactional integrity
• Full text searches
• Disadvantages
• Applications cannot access BLOBs directly
• Must be stored on hard disk or SAN
FileTables
• FileTable implementation
• An extension to FILESTREAM
• Varchar(max) column with FILESTREAM enabled
• Can use a shared folder on a remote server
• FileTable benefits
• Applications can read and manipulate BLOB content
• Advantages
• All the advantages of FILESTREAM, plus applications
such as Word and Excel can access files
• Can read, write and delete
• Disadvantages
• Separate database table with fixed schema
Demonstration: BLOBs in the Adventure Works
Database
• FileTable prerequisites
• FILESTREAM enabled
• FILESTREAM filegroup configured
• Nontransactional access configured
• FileTable directory configured
• FileTable limitations
• No table partitioning
• No database replication
• No transactional rollbacks and point-in-time recovery
• Limited access to FileTables after AlwaysOn availability
group failover
• No DML INSTEAD OF triggers
• No indexed views for FileTables
Enabling FileTables
• Performance
• Property-scoped Searches
• Language Support
Components and Architecture of Full-Text
Search
Configuring Full-Text Search
Logon Information
Virtual machine: 20762C-MIA-SQL
User name: ADVENTUREWORKS\Student
Password: Pa55w.rd