Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Why Datareader is useful?

Answer Posted / payal

1)it is used for forward record only.

2)we cannot update or save

3)speed is fast than dataset

4)not persist any record

5)it is usefual in case of display data according to
critiera on form using control like textbox,label etc.

who to use

in vb.net
dim sqlcmd as new sqlcmd("select ename from tblemp where
empid=5;
dim dr as new dataReader
dr=sqlcmd.executeReader()
if dr.hasRows then
txtbox1.text(dr("ename"))
end if

this display ename in textbox.

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are all the parts of .net framework?

976


Which namespace are used for accessing the data?

1255


What is the maximum size of the textbox?

995


How many ways the function can return values?

1022


what is interface and when it is used?

2274


What is tracing?

1137


What is the use of errorprovider control?

1005


Explain the differences between vb.net and c#, related to oops concepts?

939


Explain the difference between system.string and system.stringbuilder classes?

996


Explain the difference between an xml "fragment" and an xml "document."

909


What is the role of new keyword?

1031


Which is the tool which can convert visual basic old version to .net compatibility version?

975


Define cls?

1013


What is redim keyword and its use?

1041


what is intermediate language?

1040