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...


If you are using two select queries and retrieving data. how
do you access second query's result set using data reader?



If you are using two select queries and retrieving data. how do you access second query's resu..

Answer / uday kumar vuriti

If we have 2 select queries as follws
select * from dept
select * from emp

SqlDataReader dr;

//To Read 1st Select query dept
dr.Read();

//To Read 2nd Select query emp
dr.NextResult();

So the answer is dr.NextResult();

Is This Answer Correct ?    27 Yes 0 No

Post New Answer

More ASP.NET Interview Questions

What is inproc mode in session?

0 Answers  


Explain the page lifecycle of an asp.net mvc? : asp.net mvc

0 Answers  


What methods are fired during the page load?

2 Answers  


Caching techniques in .NET?

2 Answers   Microsoft,


What are the two Layouts supported by a Web form in ASP.NET?

0 Answers   MCN Solutions,


where is declare global variable in asp.net and what is use of global variable

3 Answers  


Explain Generics?

1 Answers  


Explain the difference between Web Garden and Web Farm?

0 Answers   Sans Pareil IT Services,


Explain the Session state management options available with ASP.NET?

0 Answers   Siebel,


if i wanna deploy my asp.net project to the production server and situation is that i m still not compiled my project i have as-is on my development side now on production server we dont have a visual studio now what kind of settings i need to be to do in webconfig /machine.config file to deploy my project and in iis too....

0 Answers   webdirekt,


How to create multi language website in asp.net mvc? : Asp.Net MVC

0 Answers  


How ASP and ASP.NET page works? Explain about asp.net page life cycle?

0 Answers  


Categories