Multiple Active Result Sets

http://msdn.microsoft.com/en-us/library/cfa084cz.aspx

这个功能首先需要数据库支持。从SQL Server 2005开始就支持了。其次在ADO.NET中需要明确地声明使用该特性。它的好处就是在一个连接没有关闭,并且正在使用的情况下,同时可以读取多个结果集。以前只能同时读取一个结果集

 

 

Multiple Active Result Sets (MARS)

This page is specific to: .NET Framework Version:
  2.0 3.0 3.5 4

Multiple Active Result Sets (MARS) is a feature that allows the execution of multiple batches on a single connection. In previous versions, only one batch could be executed at a time against a single connection. Executing multiple batches with MARS does not imply simultaneous execution of operations.

In This Section

Enabling Multiple Active Result Sets (MARS)

Discusses how to use MARS with SQL Server 2005.

Manipulating Data (MARS)

Provides examples of coding MARS applications.

Related Sections

Asynchronous Operations (ADO.NET)

Provides details on using the new asynchronous features in ADO.NET.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值