SQL2012 – FILE TABLE
PART1
By Anney
What(1/2)
•

SQL Server provides a special table of files, also referred to as a FileTable, for
applications that require ...
What(2/2)
•

Every row contains the following items.
A FILESTREAM column for stream data and a file_id (GUID) identifier. ...
HOW

2013/10/20

4
Enable FileStream – install

2013/10/20

5
Enable FileStream - installed

2013/10/20

6
Enable FileStream

2013/10/20

7
Configure fileStream_access_level
EXEC sp_configure filestream_access_level, 2
RECONFIGURE

2013/10/20

8
FileStream Access Level

2013/10/20

9
Add FileStream FileGroup

2013/10/20

10
Add FileStream Files

2013/10/20

11
Add FileStream Files(2)

2013/10/20

12
Set FileStream Non-Transacted Access
•

Non-Transacted Acces :
Full

2013/10/20

13
Start New FileTable

2013/10/20

14
References
•

http://technet.microsoft.com/zh-tw/library/ff929144.aspx

•

http://www.dotblogs.com.tw/skychang/archive/201...
~ TO BE CONTINU~

2013/10/20

16
Upcoming SlideShare
Loading in …5
×

20131011 sql2012 file-table_anney

259 views

Published on

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
259
On SlideShare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
6
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

20131011 sql2012 file-table_anney

  1. 1. SQL2012 – FILE TABLE PART1 By Anney
  2. 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. 2013/10/20 2
  3. 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. 2013/10/20 3
  4. 4. HOW 2013/10/20 4
  5. 5. Enable FileStream – install 2013/10/20 5
  6. 6. Enable FileStream - installed 2013/10/20 6
  7. 7. Enable FileStream 2013/10/20 7
  8. 8. Configure fileStream_access_level EXEC sp_configure filestream_access_level, 2 RECONFIGURE 2013/10/20 8
  9. 9. FileStream Access Level 2013/10/20 9
  10. 10. Add FileStream FileGroup 2013/10/20 10
  11. 11. Add FileStream Files 2013/10/20 11
  12. 12. Add FileStream Files(2) 2013/10/20 12
  13. 13. Set FileStream Non-Transacted Access • Non-Transacted Acces : Full 2013/10/20 13
  14. 14. Start New FileTable 2013/10/20 14
  15. 15. References • http://technet.microsoft.com/zh-tw/library/ff929144.aspx • http://www.dotblogs.com.tw/skychang/archive/2013/06/17/105580.aspx • http://caryhsu.blogspot.tw/2011/04/sql-server-2008-filestream.html • http://caryhsu.blogspot.tw/2011/04/t-sql-adonet-sql-server-2008-filestream.html 2013/10/20 15
  16. 16. ~ TO BE CONTINU~ 2013/10/20 16

×