If you are using two select queries and retrieving data. how
do you access second query's result set using data reader?
Answer Posted / 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 View All Answers
How to use multiple scriptmanager controls in a web page?
Name the two properties are on every validation control?
What is asp.net response object?
How many ways are there to maintain a state in .net? What is view state?
Where is asp.net view state stored?
How we can force all the validation controls to run?
What is web configuration file and how to use in web application
Explain the main function of url routing system in asp.net mvc? : asp.net mvc
What I need to create and run an asp.net application?
How do you declare delegates and are delegates and events one and the same and explain how do you declare delegates and invoke them ?
Explain MVC model binders?
Is it possible to develop a single web application using ASP.NET webforms and ASP.MVC?
What are the asp.net 2.0 features?
How is application management and maintenance improved in asp.net 2.0?
i want to implement grid view value in paypal site. so how to create this code in asp.net with C#