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
SQL Server 2008 ---- filestream的启用
时间: 2024-10-21 21:15:36