如何为Filestream Provider设置Blob Store?
2015-11-25 09:50
295 查看
博客地址:http://blog.csdn.net/shelleyliu0415
上一篇Blog给大家介绍了如何在SQL
Server中Enable FileStream,今天给大家介绍一下如何为Filestream
Provider设置Blob Store,也就是说为特定的Content Database设置Blob
Store用来存储Document的Blob,这样实现的效果就是借用SQL
Server进行管理,但是真正的Content存储到了其他存储介质中,减少了SQL
Server空间的使用。
具体步骤为:
打开SQL Server Management Studio,选定某个Content
Database,如下图所示:
选中Content Database,点击Query,执行下面的SQL
语句:
use [WSS_Content]
if not exists (select * from sys.symmetric_keys where name =
N'##MS_DatabaseMasterKey##') create master key encryption bypassword =
N'Admin Key Password !2#4'
use [WSS_Content]
if not exists (select groupname from sysfilegroups where
groupname=N'RBSFilestreamProvider') alter database [WSS_Content]
add filegroup RBSFilestreamProvider contains filestream
use [WSS_Content]
alter database [WSS_Content] add file (name = RBSFilestreamFile,
filename = 'c:\blobstore') to filegroup RBSFilestreamProvider
注意:Content DB的名字要与你选中的保持一致,如下图所示:
我们检查一下物理路径,已按照SQL
语句创建出存储Blob的Folder,注意:该路径不可之前创建好,必须填写一个不存在的路径,他会自动创建出来。
希望大家本篇文章能给大家带来帮助,接下来会给大家介绍如何激活和验证RBS的安装情况,谢谢阅读!
上一篇Blog给大家介绍了如何在SQL
Server中Enable FileStream,今天给大家介绍一下如何为Filestream
Provider设置Blob Store,也就是说为特定的Content Database设置Blob
Store用来存储Document的Blob,这样实现的效果就是借用SQL
Server进行管理,但是真正的Content存储到了其他存储介质中,减少了SQL
Server空间的使用。
具体步骤为:
打开SQL Server Management Studio,选定某个Content
Database,如下图所示:
选中Content Database,点击Query,执行下面的SQL
语句:
use [WSS_Content]
if not exists (select * from sys.symmetric_keys where name =
N'##MS_DatabaseMasterKey##') create master key encryption bypassword =
N'Admin Key Password !2#4'
use [WSS_Content]
if not exists (select groupname from sysfilegroups where
groupname=N'RBSFilestreamProvider') alter database [WSS_Content]
add filegroup RBSFilestreamProvider contains filestream
use [WSS_Content]
alter database [WSS_Content] add file (name = RBSFilestreamFile,
filename = 'c:\blobstore') to filegroup RBSFilestreamProvider
注意:Content DB的名字要与你选中的保持一致,如下图所示:
我们检查一下物理路径,已按照SQL
语句创建出存储Blob的Folder,注意:该路径不可之前创建好,必须填写一个不存在的路径,他会自动创建出来。
希望大家本篇文章能给大家带来帮助,接下来会给大家介绍如何激活和验证RBS的安装情况,谢谢阅读!
相关文章推荐
- 与MSSQL对比学习MYSQL的心得(四)--BLOB数据类型
- ExtJS Store的数据访问与更新问题
- 深入浅析mybatis oracle BLOB类型字段保存与读取
- SQLSERVER Pager store procedure分页存储过程
- 什么是blob,mysql blob大小配置介绍
- MySQL中TEXT与BLOB字段类型的区别
- 通过sql语句将blob里的char取出来转成数字保存在其它字段
- 图解DAS、NAS、SAN三种存储技术
- ORACLE PL/SQL LOB大对象
- Blob Clob
- 下拉框树形
- MySQL的四种BLOB类型
- IOS App Store被Rejected 的各种原因翻译
- Openbiz 推进PHP进入大App Store时代
- ExtJS4 filter混乱问题
- jdbc 使用PreparedStatement来存储和读取大数据(Blob或Clob)
- 【游戏分享】新的免费游戏发布啦- Save The Gals Free(英雄救美)
- 向数据库中存储以及读取BLOB对象
- MysqL Blob 实例代码
- MySQL BLOB 类型介绍