Buy Questpond's video subscriptions on
huge discount
.
Online: 1920
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 ...
How to check whether SqlDataReader contains any rows or not?
Posted by
vishalneeraj-24503
on 12/17/2013 | Category:
ADO.NET Interview questions
| Views: 2120 |
Points: 40
Post
|
Interview FAQs
|
Exclusive Questions
|
Interview Home
Answer:
SqlDataReader has
HASROW
property,which returns true,if it contains any row otherwise returns false.
For Example:-
if(dr.HasRows)
{
}
Asked In:
Many Interviews |
Alert Moderator
Bookmark It
< Previous :
What does DataReader'Read() method do?
Next > :
How to get No of columns in DataSet/DataTable obje ...
Comments or Responses
Login to post response
More Interview Questions by vishalneeraj-24503
How to get No of columns in DataSet/DataTable object?
Which property of SqlDataReader object is used for getting no of colum ...
Which ADO.Net object is used for fetching records in Forward-Only mann ...
What are the core objects of ADO.Net?
How to set Default focus on Button.
How to wrap long text into multiple line?
How to hide Vertical scroll bar only.
How to show only horizontal scroll bar only?
Latest Interview Questions
Your developing web application which access data from a MS sql and ha ...
Differences between ISNULL and NULLIF ?
What will be output of following function when called? public strin ...
How to assign a value to a textbox through javascript?
DB2 - Display the employee details who are working from more than 1 an ...
DB2 - Fetch the current date and time in the following format 24/APR ...
DB2 - Find the NAMEs that have an even number of letters in them
DB2 - Find the count of departments having average salary greater than ...
More ...