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 inproc mode in session?
Explain the page lifecycle of an asp.net mvc? : asp.net mvc
What methods are fired during the page load?
Caching techniques in .NET?
What are the two Layouts supported by a Web form in ASP.NET?
where is declare global variable in asp.net and what is use of global variable
Explain Generics?
Explain the difference between Web Garden and Web Farm?
0 Answers Sans Pareil IT Services,
Explain the Session state management options available with ASP.NET?
if i wanna deploy my asp.net project to the production server and situation is that i m still not compiled my project i have as-is on my development side now on production server we dont have a visual studio now what kind of settings i need to be to do in webconfig /machine.config file to deploy my project and in iis too....
How to create multi language website in asp.net mvc? : Asp.Net MVC
How ASP and ASP.NET page works? Explain about asp.net page life cycle?
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)