Re: There is already an open DataReader associated with this Connection which must be closed first
- From: "William \(Bill\) Vaughn" <billvaRemoveThis@xxxxxxxxxx>
- Date: Mon, 27 Jun 2005 09:27:36 -0700
First, you'll get more interest in this ADO.NET question on the ADO.NET
list. Use microsoft.public.dotnet.framework.adonet instead.
Next, we see this problem when using the DataReader in addition to Fill to
populate a DataSet. We can also see it if the Fill has not completed for
some reason--as when it cannot populate rows as they are locked. You say
you're using the OleDb classes. What database are you accessing? Are you
trying to access the same database from more than one thread/form at a time?
--
____________________________________
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.
__________________________________
"Viswanathan S" <visu@xxxxxxxxxxxx> wrote in message
news:%23c%23sXlweFHA.2124@xxxxxxxxxxxxxxxxxxxxxxx
> Hi All,
>
> I often get the same error when filling data adapter. There is already an
> open DataReader associated with this Connection which must be closed first
>
> myda.Fill(newds, "Employee")
>
> But the same type fill command is working in other forms without error.
>
> When filling data adapter it internally opens the executereader but it is
> not closing.
>
> How the OledbDataAdapter with fill works? When will it executes the
> reader.
> Why there is a difference in filling with datasets?
>
> Thanks in Advance
> ______________________________
>
> S. Viswanathan
>
>
.
- References:
- Prev by Date: There is already an open DataReader associated with this Connection which must be closed first
- Next by Date: Dataset and Instantiate all Tables
- Previous by thread: There is already an open DataReader associated with this Connection which must be closed first
- Next by thread: Dataset and Instantiate all Tables
- Index(es):
Relevant Pages
|
|