Re: multiple DataReaders
- From: "JohnK" <JohnK@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 20 Apr 2005 12:38:04 -0700
because I have a couple scenarios:
1- I'm in a recursive function that opens a connection , issues a Reader
within a loop... also with in the loop it calls itself... like walking a
tree, but subsequence queries depend on the prior query results... I have
many branches, each branch causes more depth checking...
2-2nd is more like:
create connection
issue reader1
while Read()
get data out of record
.....
issue another Reader2 <different query string, different table>< this is
where it does not like me doing this>
while read()
...........
wend
Wend
"William (Bill) Vaughn" wrote:
> Sure, it's possible--just open more connections. Until ADO 2.0 and MARS you
> won't be able to run more than one operation on a Connection at any one
> time.
> The real question is, why do you need multiple DataReaders in the first
> place?
>
> --
> ____________________________________
> William (Bill) Vaughn
> Author, Mentor, Consultant
> Microsoft MVP
> www.betav.com/blog/billva
> www.betav.com
> Please reply only to the newsgroup so that others can benefit.
> This posting is provided "AS IS" with no warranties, and confers no rights.
> __________________________________
>
> "JohnK" <JohnK@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
> news:D9AE477D-80AB-4A12-A418-FF6D0A7F8C77@xxxxxxxxxxxxxxxx
> >I have a need to have multiple DataReaders active at the same time.
> > Also at times, I would like to have a recursive function with a DataReader
> > in...which basically means having multiple DataReaders active .....
> >
> > Is there a way to do this?
> >
> > John
>
>
>
.
- Follow-Ups:
- Re: multiple DataReaders
- From: William \(Bill\) Vaughn
- Re: multiple DataReaders
- References:
- multiple DataReaders
- From: JohnK
- Re: multiple DataReaders
- From: William \(Bill\) Vaughn
- multiple DataReaders
- Prev by Date: Re: multiple DataReaders
- Next by Date: junction tables: how to insert data
- Previous by thread: Re: multiple DataReaders
- Next by thread: Re: multiple DataReaders
- Index(es):
Relevant Pages
|
|