Re: ADO recordset doesn't see DB changes



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.


.



Relevant Pages

  • Re: VB-ADO-SQL Server : SQL Server performs logins after some queries
    ... It should not open new connection, ... > All recordsets in all procedure refer to this specific DB connection ... > Meanwhile I've found the origin of all my SQL Server errors that I faced: ... > not used to open one or more connection objects for different recordsets ...
    (microsoft.public.vb.database.ado)
  • Re: SELECTING TABLES & PATHS
    ... Your initial post concerned different database, ... You need to check the SQL required to produce your results. ... Right now I do have 3 different recordsets (one for each sql to each ... ADO/DAO, but each connection is only to one DB, so you cannot achieve ...
    (microsoft.public.excel.programming)
  • Re: VB6 ADO DB2 - Update Problem
    ... Jeweils ein Feld der beiden ... Was veranlasst Dich zu der Annahme, dass Daten eines Recordsets mit ... Man kann eine Connection auch ohne ein solches Ungetüm öffnen, ... Warum serverseitiger Cursor? ...
    (microsoft.public.de.vb.datenbank)
  • Re: ADODB
    ... In general, use datasets (the .NET equivalent of recordsets), and bind ... I make a connection to a SQL2005 database when my app loads using the ... LogonUsers = 0 ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Timeout
    ... Dim Rst as ADODB.Recordset ... rst.Open sql, cn, adOpenKeyset, adLockReadOnly <- hier kommt der timeout ... Eigenschaften Deines Recordsets schon vor dem .Open mit den richtigen Werten ... Set .Active Connection = Cnn ...
    (microsoft.public.de.vb.datenbank)