Site sponsored by: Idera The gold standard of SQL Server performance monitoring & diagnostics.
SQL Server Performance

  • Home
  • Articles
  • Forums
  • Tips
  • Quiz
  • FAQ's
  • Blogs
  • Software
  • Books
  • About Us
RSS Feeds
Sign in | Join


Article Topics

All Articles
Performance Tuning
Audit
Business Intelligence
Clustering
Reporting Services
Developer
General DBA
ASP.NET / ADO.NET

Write for Us

Share your SQL Server knowledge with others and raise your profile in the community More...
Latest Articles

Recover Data Using Database Snapshots
Analyze and Fix Index Fragmentation in SQL Server 2008
Powerful Geographical Visualisations made easy with SQL 2008 Spatial (Part 2) ...
Backup User Databases Using a Maintenance Plan

More     
 
Latest FAQ's

How to alter a User Defined Data Type?
How to unzip a File in SSIS?
How to view previous query plans?
ALTER TABLE SWITCH statement failed because the object '%.*ls' is not ...

More     
   
Latest Software Reviews

Spotlight on ApexSQL Doc 2008
ApexSQL Enforce
Embarcadero Change Manager
SQL Server DBA Dashboard

More     

articles >> general dba >> Configure Filestream in SQL Server 2008 ...

Configure Filestream in SQL Server 2008

By : Ashish Kumar Mehta
Jul 28, 2008

Page 2 / 3


Configure and Enable Filestream at Server Instance Level Using GUI  
  1. Connect to SQL Server 2008 Instance using SQL Server Management Studio
  2. In Object Explorer, right click the server and select properties to view the Server Property window
  3. Under Advanced, Click on the drop down next to Filestream Access Level and select Full access enabled
  4. To do this the user needs to be a member of the sysadmin or serveradmin fixed server role to change the default settings for Filestream
  5. Click Ok to save changes

 

How to create a Filestream Database
The FILESTREAM feature uses a special type of filegroup when you create the database. You need to specify the CONTAINS FILESTREAM clause for at least one filegroup in the create database statement.

Use Master
Go
IF  EXISTS (SELECT name FROM sys.databases WHERE name = N'FileStreamDB')
DROP DATABASE FileStreamDB
GO

USE Master
GO
CREATE DATABASE FileStreamDB ON PRIMARY
  ( NAME = FileStreamDB_Data,
    FILENAME = N'D:\FileStream\FileStreamDB_Data.mdf',
    SIZE = 10MB,
    MAXSIZE = 50MB,
    FILEGROWTH = 15%),
 FILEGROUP MyDBData
  ( NAME = MyFileStream_Data,
    FILENAME = N'D:\FileStream\FileStreamDB_Data.ndf',
    SIZE = 10MB,
    MAXSIZE = 50MB,
    FILEGROWTH = 5MB),
FILEGROUP FileStream CONTAINS FILESTREAM
  ( NAME = FileStream,
    FILENAME = N'D:\FileStream\FileStreamData')
LOG ON
  ( NAME = 'FileStreamDB_Log',
    FILENAME = N'D:\FileStream\FileStreamDB_Log.ldf',
    SIZE = 5MB,
    MAXSIZE = 25MB,
    FILEGROWTH = 5MB);
 GO 

The image below shows the properties of FileStreamDB Database which was created by executing the above TSQL statement:



The below snippet displays the files which got created for FileStreamDB database in D:\FileStream folder. You will see a folder named FileStreamData which will store all the varbinary (max) values.



Within the D:\FileStream\FileStreamData folder you can see a sub folder named $FSLOG and a file named filestream.hdr, this file is a header file for the FILESTEAM container.



<< Prev Page     Next Page>>    








Home | Peformance Articles | Audit Articles | Business Intelligence Articles | Clustering Articles | Developer Articles | Reporting Services Articles | DBA Articles | ASP.NET / ADO.NET Articles | DBA FAQ's | Developer Peformance FAQ's | DBA Peformance FAQ's | Developer FAQ's | Clustering FAQ's | Error Messages | Audit Tool Reviews | Backup Tool Reviews | Coding Tool Reviews | Compare Tool Reviews | Documentation Tool Reviews | Design Tool Reviews | Monitoring Tool Reviews | Log Tool Reviews | Reporting Tool Reviews | Clustering Tool Reviews | Security Tool Reviews | Change Management Tool Reviews | Remote Access Tool Reviews | Book Reviews | Security Tool Reviews | QDPMA Performance Tuning | ADO.NET / ASP.NET | Administration | Analysis/OLAP Services | Application Development | Configuration | Components | ETL | Hardware | High Availability | Hints | Index | Misc | Operating Systems | Performance Tuning | Replication | T-SQL | Views


              © 1999-2008 by T10 Media. All rights reserved