Professional Documents
Culture Documents
An End-to-End Walkthrough
An End-to-End Walkthrough
An End-to-End Walkthrough
to-End Walkthrough
SQL Server 2012 introduces two new features that make it both easier and more valuable to store your documents and files in the database:
FileTables let you save files into the database quickly and conveniently by dragging and dropping them in Windows Explorer, or saving them from your
everyday Windows applications. FileTables build on top of the FILESTREAM feature that was introduced in a previous version of SQL Server.
Semantic Search helps you get more value out of your documents by tagging documents with the most important key phrases that they contain, and by
identifying similar and related documents automatically. Semantic Search builds on top of the Full-Text Search feature that was introduced in a previous version
of SQL Server.
This article captures a timed walkthrough of the steps required to configure a SQL Server 2012 document storage solution from scratch. It includes a screen shot of
every step.
Steps
1. Configure document storage on the server.
a. At the instance level: Enable and configure FILESTREAM; specify a folder.
b. At the database level: Enable non-transactional access; specify a folder.
c. At the table level: Create a new FileTable. This looks like a folder to users.
2. Populate the table with documents by drag-and-drop.
3. Index the documents.
a. Create a new Full-Text and Semantic index.
b. Check the status of indexing and wait for indexing to finish.
4. Demonstrate the success of the indexing.
a. Query the Full-Text index.
b. Query the Semantic Search index.
In SQL Server Configuration Manager, enable FILESTREAM on the instance and specify a folder name for the instance-level share. By default, the share has the same
name as the instance.
In SSMS, check the corresponding instance-level server properties.
Enable non-transactional access to support FileTables in this database, and specify a folder name for the database-level share. By default, the share has the same name
as the database.
Create a new FileTable. By default, the folder name for the table-level share is the same as the name of the table itself. A FileTable has a fixed schema, so you don't
have to specify a list of columns.
This action scripts a CREATE TABLE statement template to a new query window.
Fill in parameter values for the template, and run the script to create the new FileTable.
Select the file_stream column that contains the documents as the column to be indexed. Specify the file_type column as the type column, and check the box under
Statistical Semantics to enable Semantic Search.
Finish the wizard and finish creating the full-text and semantic indexes.
Back to the top
Step 3.2. Check the status of indexing and wait for indexing to finish
Query two dynamic management views to check the status of full-text and semantic indexing.
Indexing is finished! (When you specify automatic population, the status of the indexing remains at "Starting" while waiting to process more updates.)
Back to the top
Now, let's query the semantic index for a list of white papers in which "ETL" is a key phrase and sort them in descending order by score.
How long did all this take?
Four minutes and twenty seconds.
http://dougbert.com/blog/post/Creating-a-Full-Text-Index-on-a-FileTable-in-SQL-Server-2012.aspx