GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Microsoft  >  VB.NET
Go To First  |  Previous Question  |  Next Question 
 VB.NET  |  Question 37 of 60    Print  
how do you use two datareaders at the same time in a vb.net windows application ?

for example:

while(datareader1.read())

while(datareader2.read())

end while

end while

this is not allowed even though both datareaders have two different sets of data. can someone help me out with this please..is there another way to do this?
thank you



  
Total Answers and Comments: 2 Last Update: December 05, 2007     Asked by: IRDM 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
November 02, 2007 11:23:23   #1  
VIkas        

RE: how do you use two datareaders at the same time in...
Try different connections
 
Is this answer useful? Yes | No
December 04, 2007 20:17:18   #2  
WonderMonkey Member Since: December 2007   Contribution: 1    

RE: how do you use two datareaders at the same time in a vb.net windows application ?
A database connection can only have one open datareader associated with it at anytime. To do what you are looking to do in your example you must have two connections one for each datareader.
 
Is this answer useful? Yes | No

 Related Questions

Latest Answer : RemoveHandler myobj.myEvent, AddressOf MyEventHandler  ...

Latest Answer : You can go for internet control of robot.1. use chips:- at89c51 microcontroller, l293d motor driver n max232 converter (for robot)2. using vb.net, develop the gui n use winsock programming for sending photos on internet.3. use mscomm programming in .net ...
Read Answers (2) | Asked by : jojo

for example:while(datareader1.read()) while(datareader2.read()) end whileend whilethis is not allowed even though both datareaders have two different sets of data. can someone help me out with this 
Latest Answer : A database connection can only have one open datareader associated with it at anytime.  To do what you are looking to do in your example you must have two connections, one for each datareader. ...
Read Answers (2) | Asked by : IRDM

HiI am doing a project on bug tracking tool using VB.NET. For that i need a date time picker control as one in usual vb. I checked the tool box but i couldn't find it. So for the time being i am 
Latest Answer : see carfully datetimepicker control in toolbox where windows controls show ...

You develop a Windows-based application that includes the following code segment. (Line numbers areincluded for reference only.)01 Public Sub password_Validating (ByVal sender As _02 Object, ByVal e As 
Latest Answer : e.cancle = TrueIf the input in the control does not fall within required parameters,the property within your event handler can be used to cancel the Validating event and return the focus to the control. ...
Read Answers (2) | Asked by : Sudiya

You company AppDevRight assigns you to modify a Visual Studio .NET application that was created by a former colleague. However, when you try to build the application, you discover several syntax errors.You 
Latest Answer : Run the application in Debug Mode. Each time an error is encountered, correct it and continue debugging the application ...
Read Answers (1) | Asked by : Sudiya

You use Visual Studio .NET to create a Windows-based application. The application includes a form named GraphForm, which displays statistical data in graph format. You use a custom graphing control that 
Latest Answer : F. Set GraphForm.FormBorderStyle to one of the Fixed styles. ...
Read Answers (1) | Asked by : Sudiya

Explain about Single Thread Apartment and with real time usage with situation where it best fits . 


 Sponsored Links

 
Related Articles

Application Development in .NET

ASP NET 2 0 Tutorials Application development in NET Client Side Application Development Client applications are applications that run on the client system or the desktop of the user They are closest to the traditional windows based applications and they display forms or windows on the desktop enabl
 

N-Tier Application Partitioning

N Tier Application Partitioning Application partitioning is a vital process as it provides one with the opportunity to clearly define an even distribution of an application s presentation process and key data components without which you may find yourself feeling quite lost The components may be dis
 

N-Tier Application Manageability

N Tier Application Manageability While it is a fact that N Tier applications tend to provide almost limitless scalability the desire to change or add new forms of functionality can present a challenge in more than one arena Growth on a large scale can make capacity planning quite hard When available
 

Application Frameworks in SQL Server 2005

The new application framework of SQL called the Service Broker is a distributed application framework that provides relable asynchronous messaging at the database to database level. It allows internal and external processes to exchange streams of reliable asynchronous messages using extensions of T-
 

Rapid Application Development

What is RAD? One of the conveniences of developing software is that it is not a physical tool that can be lost once it gets developed or manufactured. Codes are used to implement the software and it does not disappear together with the product. We can re-use the code all over again in another softw
 

The Interview Snafu

How to turn someone else’s mistake to your advantage Your dream job is about to become reality. A recruiter gave you the heads up about the perfect position at Humungous Conglomerate, Inc. You went through five interviews as well as a battery of psychological tests mandated by their HR de
 

Effective Controls for Attaining Continuous Application Security

Effective Controls for Attaining Continuous Application Security Throughout the Web Application Development Life Cycle Given the choice, every organization would want secure Web sites and applications from the Web application development phase all the way through the software development life cycle.
 

Winning a Job Interview with a Winning Resume

Does your resume unlock your potential, take your skills to the highest level and win you the interview and the job you want now? The job market today is highly competitive and even if you think you have what it takes to get an interview you won’t get over the line without a polished, prof
 

Web Application Vulnerability Assessment Essentials

Your First Step to a Highly Secure Web Site If an organization taking a systematic and proactive approach to web security, and to running a web application vulnerability assessment in particular, then that organization defended against the most rapidly increasing class of attacks. &nb
 

Top 10 Application Security Vulnerabilities in Web.config Files - Part One

These days, the biggest threat to an network security comes from its public Web site and the Web-based applications found there. Unlike internal-only network services such as databases-which can be sealed off from the outside via firewalls-a public Web site is generally accessible to anyone who wan
 

About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape