473,511 Members | 16,983 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

I've got doubt about MARS feature support in ASP.NET 2.0 and MSSQL 2.0

Hi everyone,

I've got issue about MARS feature support in ASP.NET 2.0 and MSSQL 2.0
How to get things work?

What i've done is I got vs.net 2.0 and MSSQL 2005 installed on my pc.
Then I tried to test MARS feature following the example in the msdn
website
as the url "http://msdn2.microsoft.com/en-us/library/yf1a7f4f"
to see what the asp.net 2.0 can do with multiple active result sets.

What the code should be doing is to instantiate two instances of
datareader.
Then it will execute the datareader#1 and loop through the first result
set returned.
after that inside the datareader#1's block, the code will get the
datareader#2 executed and retrieve its own result sets while the first
datareader's retrieving operation is not completed.

When running the code,I still got the error "There is already an open
DataReader associated with this Command which must be closed first."
which is the same error I should encounter with the older version of
ASP.NET.

Because it should work fine as long as I got everything installed
correctly.

Nov 19 '05 #1
1 1437
Not enabled in the connection string ?

You mention SQL Server 2005 but also MSSQL 2.0 (do you mean 2000 ?). Which
version are you using ? If you have both double check you are trying against
SQL Server 2005 (from the previous page it looks like you need SQL Server
2005).

--
Patrice

"Optimus" <sa******@gmail.com> a écrit dans le message de
news:11**********************@o13g2000cwo.googlegr oups.com...
Hi everyone,

I've got issue about MARS feature support in ASP.NET 2.0 and MSSQL 2.0
How to get things work?

What i've done is I got vs.net 2.0 and MSSQL 2005 installed on my pc.
Then I tried to test MARS feature following the example in the msdn
website
as the url "http://msdn2.microsoft.com/en-us/library/yf1a7f4f"
to see what the asp.net 2.0 can do with multiple active result sets.

What the code should be doing is to instantiate two instances of
datareader.
Then it will execute the datareader#1 and loop through the first result
set returned.
after that inside the datareader#1's block, the code will get the
datareader#2 executed and retrieve its own result sets while the first
datareader's retrieving operation is not completed.

When running the code,I still got the error "There is already an open
DataReader associated with this Command which must be closed first."
which is the same error I should encounter with the older version of
ASP.NET.

Because it should work fine as long as I got everything installed
correctly.

Nov 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
23857
by: mj | last post by:
Hello, thanks for the help. I am running a WinXP Pro w/ SP2 (my home computer, with ZoneAlarm firewall) Apache 2.0.52 MySQL 4.1.7 PHP 5.1.0-dev I have developed a PHP/MySQL web app that...
198
18090
by: Michael N. Christoff | last post by:
Java, the software developed by Sun Microsystems in the mid-1990s as a universal operating system for Internet applications, gave NASA a low-cost and easy-to-use option for running Spirit, the...
8
1766
by: HalcyonWild | last post by:
Hi, I installed the free version(command line only) of the digital mars c++ compiler. It said it features a garbage collection mechanism, but there was no documentation. I figured out that...
11
2213
by: krishnamaddi | last post by:
Hi Friends, I am having some doubt. I want to print an ASP Page, for this i need to use java script. the problem is while printing if the line is too big, i can't print those data properly . i am...
3
1682
by: LW | last post by:
"Consider the U.S. government's recognition and protection of intellectual property in the computer industry. Inventors of computer hardware were able to patent their inventions, and the government...
33
3038
by: jacob navia | last post by:
Mankind has now two robots wandering about in the planet Mars. No, it wasn't Mars that invaded Earth, but Earth that landed in Mars more than two years ago. After some initial OS glitches (Chris...
11
2899
by: whirlwindkevin | last post by:
I saw a program source code in which a variable is defined in a header file and that header file is included in 2 different C files.When i compile and link the files no error is being thrown.How is...
32
2523
by: jhc0033 | last post by:
Interesting article I came across on Slashdot: http://developers.slashdot.org/developers/08/07/10/213211.shtml They are using C at JPL to program Mars Lander and just about everything now! Not...
0
1929
chathura86
by: chathura86 | last post by:
hi im using MySQL Connector Net 5.2.3 to connect my ASP.NET/C# web application to MySQL but when i add the multipleactiveresultsets=true to my connection string i get an error it works...
0
7245
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7144
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7427
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7085
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
1
5069
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4741
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3227
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1577
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
449
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.