473,396 Members | 1,871 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Opening Oracle connections within connections

Is it possible to use a data reader to retrieve data from a database while another connection is currently open? I want to
access the same database but I need to retrieve data from one table based on the result of another query. Is it possible for me to do this

Thanks for the help.
Nov 20 '05 #1
3 1029
Sure. You can open as many new connections to the same database as you
want... until the database or driver/provider connection pool refuses your
connections because you have too many of them open simultaneously :-)

-Rob Teixeira [MVP]

"Parveen" <an*******@discussions.microsoft.com> wrote in message
news:2B**********************************@microsof t.com...
Is it possible to use a data reader to retrieve data from a database while another connection is currently open? I want to access the same database but I need to retrieve data from one table based on the result of another query. Is it possible for me to do this?
Thanks for the help.

Nov 20 '05 #2
I don't think that I phrased my question correctly. Say I'm traversing through a resultset by using the datareader in a while loop. While I'm in the while loop can I open another connection? Say I have a list of employees that I traverse through in the while loop and then for each employee, i need to find out their employee title from another table based on their employee id. So in the while loop, I need to run another query based on the field in the current resultset. Can I do this? If so, then how

Thanks

Parveen
Nov 20 '05 #3
Yes, you can do this. Just create a new connection object.
However, be careful of how different locking and isolation level setups in
the database affect your second connection.

-Rob Teixeira [MVP]

"Parveen" <an*******@discussions.microsoft.com> wrote in message
news:4B**********************************@microsof t.com...
I don't think that I phrased my question correctly. Say I'm traversing through a resultset by using the datareader in a while loop. While I'm in
the while loop can I open another connection? Say I have a list of
employees that I traverse through in the while loop and then for each
employee, i need to find out their employee title from another table based
on their employee id. So in the while loop, I need to run another query
based on the field in the current resultset. Can I do this? If so, then
how?
Thanks,

Parveen

Nov 20 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Harry | last post by:
Using Oracle 8i enterprise on win 2000 (sp3) Installed the standard configuration & whenever I make a connection it takes about 10 secs. It's running on a P1900 with 1gb Ram so no reason there...
0
by: Subhodini Fernandes | last post by:
We have a couple of Oracle (8.x and 9.x) install on Sun Solaris platforms. On most of the servers we have a very strange problem 1. When Oracle is started in the morning, memory usage is very...
4
by: Roger Redford | last post by:
Dear Experts, I'm attempting to marry a system to an Oracle 817 datbase. Oracle is my specialty, the back end mainly, so I don't know much about java or javascript. The system uses javascript...
2
by: Mark | last post by:
Hm, I have put a form in Startup... but, forgot to remove docmd.close from it's code. Result... oh it's remarkable. After opening, a database immediately closes!! How to stop it? How to break...
0
by: ʹÃûÑï | last post by:
ORA-03114: not connected to ORACLE && MS's Bug?? DataBase:Oracle 817 using OracleClient,net framework 1.1 I'm using ADO.Net in C# with Oracle 817. and following is my public data access...
2
by: Steve Foo | last post by:
I have been posting this question in google group, EE, and Oracle OTN forum and still no cannot find a suitable solution for it. I have contacted Singapore Microsoft support regarding the problem...
9
by: Keith E. Sauvant | last post by:
Hi, we got a strange problem connecting to an Oracle database onsite with our PHP application: During CSV import job handled by our application, PHP opens up to some hundred connections to the...
6
by: hegyvari | last post by:
Hi, I have a few apps written in PHP, running on Fedora Core. After porting these applications from PostgreSQL to Oracle a bug appeared: sometimes, not in a reproducable manner, the web page...
0
by: Temporary | last post by:
C# Web Service in IIS Stops Connecting to Oracle (via ADO.NET) Over Time I have a Web Service, written in C#, published on a Windows XT Web Server under IIS, which repeatedly connects to an...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.