PC Review


Reply
Thread Tools Rate Thread

Can't open two DataReaders to the same connection

 
 
Cyril Gupta
Guest
Posts: n/a
 
      3rd Jan 2006
I don't know if I am outdated or is my grouse still valid.

I am trying to connect two concurrent DataReader objects to the same
connection, but the attempt fails with the error "Another DataReader is
already open, it needs to be closed.. bla..bla.."

Using good old ADO I could connect as many Recordsets I wanted through one
connection, so how come ADO.Net is not allowing me to connect two
DataReaders?

I think I read somewhere that this can be done through .Net Framework 2.0.
Is this true? How stable is .Net 2.0? Are there any big issues that I should
know about?

My application will be distributed as a packaged software, so it should be
as stable as possible.

Please do send me your ideas.

Thanks
Cyril Gupta


 
Reply With Quote
 
 
 
 
Paul Clement
Guest
Posts: n/a
 
      3rd Jan 2006
On Tue, 3 Jan 2006 13:28:41 +0530, "Cyril Gupta" <(E-Mail Removed)> wrote:

¤ I don't know if I am outdated or is my grouse still valid.
¤
¤ I am trying to connect two concurrent DataReader objects to the same
¤ connection, but the attempt fails with the error "Another DataReader is
¤ already open, it needs to be closed.. bla..bla.."
¤
¤ Using good old ADO I could connect as many Recordsets I wanted through one
¤ connection, so how come ADO.Net is not allowing me to connect two
¤ DataReaders?
¤
¤ I think I read somewhere that this can be done through .Net Framework 2.0.
¤ Is this true? How stable is .Net 2.0? Are there any big issues that I should
¤ know about?
¤

I believe the feature you are referring to (called MARS) is specific to SQL Server 2005.

http://msdn2.microsoft.com/en-us/library/h32h3abf.aspx
http://msdn2.microsoft.com/en-us/library/yf1a7f4f.aspx


Paul
~~~~
Microsoft MVP (Visual Basic)
 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Multiple DataReaders on a single connection Jon Brunson Microsoft Dot NET Compact Framework 4 10th Apr 2006 09:05 AM
Two DataReaders, one Connection =?Utf-8?B?V2lsbGlhbVI=?= Microsoft Dot NET 4 19th Dec 2005 06:12 PM
Multiple DataReaders on one Connection, is that possible? SQL Server2000 Lars Siden Microsoft ADO .NET 6 16th Jan 2004 01:53 AM
Re: Connection pool for DataReaders? Marina Microsoft ADO .NET 0 3rd Jul 2003 06:17 PM
Re: Connection pool for DataReaders? Cowboy \(Gregory A. Beamer\) Microsoft ADO .NET 0 3rd Jul 2003 02:09 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:53 AM.