Re: ADO recordset doesn't see DB changes
- From: Neil B <NeilB@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 27 Jun 2007 10:56:08 -0700
Bob,
Just wanted to let you know that by executing a Resync() of recordset 2,
after recordset 1 has completed it's update, fixed the problem.
Thanks for your help
Neil
"Bob Barrows [MVP]" wrote:
Neil B wrote:.
Interesting information regarding the way the Jet Engine works.
I read the intro to the articles and they indicated that the problem
you think is the culprit arises if you have 2 connection paths to the
database. The way my app is set up there is only 1 connection path to
the DB (that is I only open the database once) which both recordsets
use. I gathered from what I read that this problem required 2
connections.
I'm not sure, but I think the provider is unable to support more than
one cursor at a time per connection. I suspect what is happening behind
the scenes when you open the second recordset is that, instead of
returning an error, it is opening a second implicit connection to
provide the second cursor, thus leading to the delayed-write issue.
Also, when I ran the app in debug mode I stopped after recordset2 did
it's changes and stepped thru the recordset1 read code a record at a
time (I was not in a hurry) and the changes were not reflected. I
would think the database would have been updated by then no matter
how lazy it was. There was nothing else running on the system at the
time.
Am I interpretting this right?
I'm not sure, but it couldn't hurt to try the remedy suggested by the
second article, could it?
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
- Prev by Date: Re: Table adapter ???
- Next by Date: Re: Table adapter ???
- Previous by thread: Re: Table adapter ???
- Next by thread: Does anyone know any commercial C++/CLI GUI library with source code?
- Index(es):
Relevant Pages
|
|