Solved

What does an executereader return?

Posted on 2006-11-06
6
672 Views
Last Modified: 2008-03-06
What does an executereader return?
0
Comment
Question by:mathieu_cupryk
  • 2
  • 2
  • 2
6 Comments
 
LVL 15

Expert Comment

by:ozymandias
ID: 17884817
A DataReader
0
 

Author Comment

by:mathieu_cupryk
ID: 17885974
...a single value.
 
 
--------------------------------------------------------------------------------
 
  ...an XML DataSet.
 
 
--------------------------------------------------------------------------------
 
  ...a rowset.
 
 
--------------------------------------------------------------------------------
 
  ...nothing as there is no value to return.
 
0
 

Author Comment

by:mathieu_cupryk
ID: 17885976
which of the four?
0
Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
LVL 2

Accepted Solution

by:
Sinclair earned 250 total points
ID: 17886036
Technically, it does return a single value, just like every other function in C#. heh heh heh.
0
 
LVL 15

Expert Comment

by:ozymandias
ID: 17887468
It returns a class derived from DataReader depending on the type of the Command, i.e. an OdbcCommand.ExecuteReader() returns an OdbcDataReader.
The best answer is probably a rowset.
0
 
LVL 2

Expert Comment

by:Sinclair
ID: 17887522
It's kind of a pointless question, though, even for an "Intro to C#" course. All you need to do is memorize the right keywords, and you pass... but... that doesn't actually teach you anything. If they asked, "how many rows is the DataReader guaranteed to contain", or "which row is the DataReader's internal pointer pointing to immediately after the method returns", that would at least be something. But even then, who cares ? All that info is in the API comments, it doesn't take too long to look it up.

Sorry, I know that was offtopic, I just find CS classes like this one really frustrating :-(
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

We all know that functional code is the leg that any good program stands on when it comes right down to it, however, if your program lacks a good user interface your product may not have the appeal needed to keep your customers happy. This issue can…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question