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 api endpoint?
How can you achieve nested Masterpages in 2.0?
What is the difference between the asp and asp.net?
What is _viewstart?
What methods are fired during the page load? Init()
how we deploy the asp.net 2.0 application
How to disable validator control by client side JavaScript?
What is .net remoting?
Explain how cookies work. Give an example of cookie abuse.
Which data type does the rangevalidator control support?
Write some code using interfaces, virtual methods, and an abstract class`
what are the security certificates used in webservices?
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)