create database PhotoRepository on primary
(
name =N'PhotoRepository',
filename = N'E:\PhotoRepository.mdf',
size=5MB,
filegrowth=1024KB
),
filegroup FS_PhotoRepository contains filestream
(
name='FS_PhotoRepository',
filename=N'E:\FileGroup\FileStream'
)
log on
(
name=N'PhotoRepository_log',
filename=N'E:\PhotoRepository_log.ldf',
size=2048kB,
filegrowth=10%)
go
今天建表的時候用到了這個,正是因爲filestream纔有這編文章。
總結:分兩步走
1、配置數據庫實例的filestream屬性
2、提升filestream訪問等級
EXEC sp_configure filestream_access_level, 2
RECONFIGURE
可以到這裏看:http://zhidao.baidu.com/question/328126191.html?qbl=relate_question_0&word=%D3%A6%D3%C3%20FILESTREAM%20%CA%B1%B3%F6%CF%D6%CE%B4%D6%AA%B4%ED%CE%F3