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 an axd file?
What object is used to encapsulate a rowset? a) DataSet b) DataAdapter c) DataRowSet d) DataTable
Where would you use an ihttpmodule, and what are the limitations of any?
Can you explain the difference between an ADO.NET Dataset and an ADO Recordset?
What does asp in asp.net stand for?
What is difference between cache and session?
what are partial classes and their use?
How do you change the session time-out value?
0 Answers TryTechnicals Pvt Ltd,
Can you explain composite pattern?
What is the use of the tag in the web.config file?
How to automatically get the latest version of all the asp.net solution items from source safe when opening the solution?
Explain diff. Betn dataset and recordset?