Microsoft SQL Remote Blob Storage (RBS) Samples

介绍了一种名为Remote Blob Storage (RBS)的技术,该技术旨在将数据库中的BLOB数据转移到外部内容寻址存储中,同时在数据库中保存对这些数据的引用。应用程序通过调用RBS客户端库来存储和访问这些数据。此外,还提供了一些示例应用程序和文件存储样本提供者。

http://sqlrbs.codeplex.com/

RBS is a library API set that is designed to move storage of BLOB data from database servers to external Content Addressable Stores (CAS). A reference to the blob is stored in the database. An application stores and accesses blob data by calling into the RBS client library. RBS manages the lifecycle of the blob e.g. doing garbage collection as and when needed.
The following samples are included:

  • Remote Blob Storage Sample Application Application.exe. This contains implementations of Simple Store / Fetch, Custom Store (specifying collections / blob stores), Store / Fetch using Push streaming, Store / Fetch using Pull streaming, and an example that uses the System.IO.Stream APIs to do asynchronous reads from the blob store.
  • File Store sample provider Microsoft.Data.BlobStores.FileBlobStore. This file contains the basic implementation of a provider that uses NTFS files as the blob store. This is a demonstration provider for development and testing purposes only and should not be used on production systems.
  • InstallProvider.exe utility application. This is a generic utility tool to aid in correctly installing, registering and uninstalling providers on both on the client and the server.


See the RBS team blog at http://blogs.msdn.com/sqlrbs for the latest news regarding RBS.
Also, the Remote Blob Store Provider Library Implementation Specification is now online at http://msdn.microsoft.com/en-us/library/cc905212.aspx.

Scenario
Jane is a developer for Adventure Works Cycles. She has to store documents in an external CAS store but still wants to utilize the relational capabilities of SQL Server without incurring the cost of manually keeping track of the external blobs.
Joe is a developer for a firm that manufactures Content Addressable Store hardware. He wants to create a provider library to allow applications that are RBS enabled to utilise his firm's technology.
Languages
Transact-SQL and Visual C#.
Prerequisites
Before running this sample, make sure the following software is installed:
  • Microsoft SQL Server or Microsoft SQL Server Express. You can obtain SQL Server Express free of charge from the SQL Server Express Documentation and Samples web site.
  • The SQL Server Remote Blob Store installation package available as part of the feature packs included with SQL Server, also available at the SQL Server Feature Pack site.
  • .NET Framework SDK 2.0 or Microsoft Visual Studio 2005. You can obtain .NET Framework SDK free of charge.
本文由作者: 陈希章 于 2009/7/30 21:59:04 发布在: http://www.cnblogs.com/chenxizhang/
本文版权归作者所有,可以转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利。
更多博客文章,以及作者对于博客引用方面的完整声明以及合作方面的政策,请参考以下站点: 陈希章的博客中心

转载于:https://www.cnblogs.com/chenxizhang/archive/2009/07/30/1535510.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值