Buy Questpond's video subscriptions on
huge discount
.
Online: 332
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
>
Sql Server
>
Loading ...
Which is the best method to get the single value from Database?
Posted by
Lakhangarg
on 8/25/2009 | Category:
Sql Server Interview questions
| Views: 20605
Post
|
Interview FAQs
|
Exclusive Questions
|
Interview Home
Select from following answers:
ExecuteDataSet()
ExecuteScalar()
ExecuteReader()
ExecuteNonQuery() With Output parameters
All Above
Show Correct Answer
Asked In:
Many Interviews |
Alert Moderator
Bookmark It
< Previous :
Unique Key is smilar to Priamary Key,except it
Next > :
Which method is used to Get a value indicating whe ...
Comments or Responses
Posted by:
Raja
on: 8/25/2009
Either the question or the answer is wrong.
The question is "Which is the best method to get the single record from Database?"
ExecuteScalar() method of ADO.NET Command eg. SqlCommand object is used to get the
first row and first column
data from the SELECT statement.
It doesn't give the single record, but it gives the single value.
Please correct the question.
Thanks
Login to post response
More Interview Questions by Lakhangarg
Difference Between Truncate Table and Delete Table Command in SQL Serv ...
How Can we Write the Transaction Block in SQL Server?
How can we Rollback the Transaction in DataBase?
Who Developed JavaScript?
Will COUNT(column) include columns with null values in its count?
What is the page size in SQL Server?
Can UNIQUE KEY in SQL Server 2005 have two or more NULL?
What’s the difference between a primary key and a unique key?
Latest Interview Questions
Which method is used to Get a value indicating whether the column cont ...
Which method is used to Gets the name of the specified column using Da ...
Which method is used to commit all changes in the DataSet or DataTable ...
Which method is used to create a new row in a Table
How to disable the page viewstate by
disadvantages of hidden fields?
What does is Nan function do?
What Boolean operators are not supported by JavaScript?
More ...