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 are the authentication types in asp.net?
Explain what does mvc represent in asp.net? : asp.net mvc
What is the concept of postback in asp.net?
What are the different ways of processing data in ASP page in the server side (like Forms, QueryStrings etc)?
explain code with datachaching with example
What is the life cycle of web page?
What is the difference between a thread and a process?
What is the difference between c# and .net?
how many select state ments are used in stored procedure?
What is asp.net localization?
Difference between .NET and previous version?
What is three major points in WCF?
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)