If you are using two select queries and retrieving data. how
do you access second query's result set using data reader?
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 |
What is a web pool?
How can we apply themes to an asp.net application?
What is view state management in asp net?
What is HTTPModule and HTTPcontext? What is the use of each?
Is asp.net free?
Explain login controls.
Describe session handling in a webfarm, how does it work and what are the limits?
Can we use http handlers to upload a file in asp.net?
Explain the advantages of caching?
How can we Maintain more than on config file in one .Net web application and how?
what are the events in ASP.net page life cycle?
Where session id is stored?