Your SlideShare is downloading. ×
0
20131011 sql2012 file-table_anney
20131011 sql2012 file-table_anney
20131011 sql2012 file-table_anney
20131011 sql2012 file-table_anney
20131011 sql2012 file-table_anney
20131011 sql2012 file-table_anney
20131011 sql2012 file-table_anney
20131011 sql2012 file-table_anney
20131011 sql2012 file-table_anney
20131011 sql2012 file-table_anney
20131011 sql2012 file-table_anney
20131011 sql2012 file-table_anney
20131011 sql2012 file-table_anney
20131011 sql2012 file-table_anney
20131011 sql2012 file-table_anney
20131011 sql2012 file-table_anney
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

20131011 sql2012 file-table_anney

121

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
121
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
5
Comments
0
Likes
0
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. SQL2012 – FILE TABLE PART1 By Anney
  • 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. 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. HOW 2013/10/20 4
  • 5. Enable FileStream – install 2013/10/20 5
  • 6. Enable FileStream - installed 2013/10/20 6
  • 7. Enable FileStream 2013/10/20 7
  • 8. Configure fileStream_access_level EXEC sp_configure filestream_access_level, 2 RECONFIGURE 2013/10/20 8
  • 9. FileStream Access Level 2013/10/20 9
  • 10. Add FileStream FileGroup 2013/10/20 10
  • 11. Add FileStream Files 2013/10/20 11
  • 12. Add FileStream Files(2) 2013/10/20 12
  • 13. Set FileStream Non-Transacted Access • Non-Transacted Acces : Full 2013/10/20 13
  • 14. Start New FileTable 2013/10/20 14
  • 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. ~ TO BE CONTINU~ 2013/10/20 16

×