Solved

What does an executereader return?

Posted on 2006-11-06
6
669 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
6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

 
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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Article by: Ivo
C# And Nullable Types Since 2.0 C# has Nullable(T) Generic Structure. The idea behind is to allow value type objects to have null values just like reference types have. This concerns scenarios where not all data sources have values (like a databa…
This article introduced a TextBox that supports transparent background.   Introduction TextBox is the most widely used control component in GUI design. Most GUI controls do not support transparent background and more or less do not have the…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

706 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now