Buy Questpond's video subscriptions on
huge discount
.
Online: 518
Home
Articles
Interviews
Forums
For Beginners
Popular Questions
ITIL Career Advice
PMP Career Advice
Career Advices
Codes
Videos
ASP.NET
ASP.NET MVC
Android Intel XDK
Sql Server
AngularJS
Bootstrap
Backbone.JS
MongoDB
LESS (CSS)
jQuery
WPF
WWF
SSIS
LightSwitch
Tutorials
News
ASP.NET MVC
|
Be Interview Ready
|
Top Performers
|
DNF MVP
|
Top Posts
|
Winners
|
Subscribe
|
Catalogs
Welcome Guest !
Register
Login
Home
>
Interviews
>
ADO.NET
>
Loading ...
Best Method to retrieve two values from Database (SQL Server)
Posted by
Lakhangarg
on 8/18/2009 | Category:
ADO.NET Interview questions
| Views: 26048
Post
|
Interview FAQs
|
Exclusive Questions
|
Interview Home
Select from following answers:
ExecuteDataSet()
ExecuteScalar()
ExecuteReader()
ExecuteNonQuery()
All Above
Show Correct Answer
Asked In:
Many Interviews |
Alert Moderator
Bookmark It
< Previous :
What is the best state management variable to save ...
Next > :
Maximum Data that can be stored in a cookie?
Comments or Responses
Posted by:
Ganesh1984
on: 4/23/2011 |
Points: 10
i have small doubt.plz clarify me.actually ExecuteNonQuery() does not return any value from the database .it is execute command only means insert, delete,update .so how to retrieve two values from database.
Posted by:
Lakhangarg
on: 4/25/2011 |
Points: 10
Using OUTPUT Parameters.
Posted by:
AbuHamdaan
on: 9/9/2011 |
Points: 10
Hi there..
Just a question, cant we make use Of ExecuteReader() instead.. i think must be much feasible solution !!!!
Posted by:
Kannanthangamuthu
on: 12/26/2011 |
Points: 10
Why cant you try OracleDateReader or SqlDataReader...
Through this you can fetch any number of values in a single row!
Regards,
_Kannan
Posted by:
Santoshpatna123
on: 11/22/2012 |
Points: 10
ExecuteReader() Is Correct answer, Because ExecuteNonQuery() return only one value at a time. When we execute comman.
Login to post response
More Interview Questions by Lakhangarg
Maximum Data that can be stored in a cookie?
Latest Interview Questions
How to perform Event handling in silver light?.
What is Typed vs. Untyped XML in SQL Server ? Explain with an example
DEFAULT definitions cannot be created on columns defined with the foll ...
To modify a DEFAULT definition, We must first DELETE the existing DEFA ...
What is 'Self-referencing' tables in SQL Server ?
Number of PRIMARY KEY/FOREIGN KEY Constraints in a Table in SQL Server ...
How do you Copy Databases to SQL SERVER 2005 from various versions (6. ...
What is write-ahead log ?
More ...