+ All Categories
Home > Technology > 20131011 sql2012 file-table_anney

20131011 sql2012 file-table_anney

Date post: 26-Dec-2014
Category:
Upload: learningtech
View: 112 times
Download: 0 times
Share this document with a friend
Description:
 
16
SQL2012 – FILE TABLE PART1 By Anney
Transcript
Page 1: 20131011 sql2012 file-table_anney

SQL2012 – FILE TABLE PART1

By Anney

Page 2: 20131011 sql2012 file-table_anney

04/10/2023 2

What(1/2)

• SQL Server provides a special table of files, also referred to as a FileTable, for applications that require file and directory storage in the database, with Windows API compatibility and non-transactional access. A FileTable is a specialized user table with a pre-defined schema that stores FILESTREAM data, as well as file and directory hierarchy information and file attributes.

• A FileTable represents a hierarchy of directories and files. It stores data related to all the nodes in that hierarchy, for both directories and the files they contain. This hierarchy starts from a root directory that you specify when you create the FileTable.

• Every row in a FileTable represents a file or a directory.

Page 3: 20131011 sql2012 file-table_anney

04/10/2023 3

What(2/2)• Every row contains the following items.

• A FILESTREAM column for stream data and a file_id (GUID) identifier. (The FILESTREAM column is NULL for a directory.)

• Both path_locator and parent_path_locator columns for representing and maintaining the file and directory hierarchy.

• 10 file attributes such as created date and modified date that are useful with file I/O APIs.

• A type column that supports full-text search and semantic search over files and documents.

• A FileTable enforces certain system-defined constraints and triggers to maintain file namespace semantics.

• When the database is configured for non-transactional access, the file and directory hierarchy represented in the FileTable is exposed under the FILESTREAM share configured for the SQL Server instance. This provides file system access for Windows applications.

Page 4: 20131011 sql2012 file-table_anney

04/10/2023 4

HOW

Page 5: 20131011 sql2012 file-table_anney

04/10/2023 5

Enable FileStream – install

Page 6: 20131011 sql2012 file-table_anney

04/10/2023 6

Enable FileStream - installed

Page 7: 20131011 sql2012 file-table_anney

04/10/2023 7

Enable FileStream

Page 8: 20131011 sql2012 file-table_anney

04/10/2023 8

Configure fileStream_access_levelEXEC sp_configure filestream_access_level, 2 RECONFIGURE

Page 9: 20131011 sql2012 file-table_anney

04/10/2023 9

FileStream Access Level

Page 10: 20131011 sql2012 file-table_anney

04/10/2023 10

Add FileStream FileGroup

Page 11: 20131011 sql2012 file-table_anney

04/10/2023 11

Add FileStream Files

Page 12: 20131011 sql2012 file-table_anney

04/10/2023 12

Add FileStream Files(2)

Page 13: 20131011 sql2012 file-table_anney

04/10/2023 13

Set FileStream Non-Transacted Access• Non-Transacted

Acces : Full

Page 14: 20131011 sql2012 file-table_anney

04/10/2023 14

Start New FileTable

Page 16: 20131011 sql2012 file-table_anney

04/10/2023 16

~ TO BE CONTINU~


Recommended