Sychronisationsprobleme mit ADO

From: Claus Anderwald (ClausAnderwald_at_discussions.microsoft.com)
Date: 10/19/04


Date: Tue, 19 Oct 2004 00:01:01 -0700

Ich verwende in meinem VB6 Projekt eine zentrale Connection zu einem
Datenbankserver, um SQL Statements zum Einfügen, Updaten und Löschen von
Datensätzen auszuführen
Desweiteren werden ADO Controls verwendet, an die Wiederrum andere Cotrols
gebunden werden, um auf Tabellen zuzugreifen.
Wenn ich jetzt einen Datensatz über die zentrale Connection manipuliere,
dauert es teilweise paar Sekunden, bis der Datensatz wirklich mainpuliert
wurde. Erst dann kann ich das entsprechende ADO Control aktualisieren und
bekomme die Änderung auch angezeigt.
Das Problem habe ich mir sagen lassen sei wohl, dass mehrere ADO Controls
und die Connections nicht synchron sind, und daher diese Akualisierungszeiten
entstehen.

Um die ADO Controls synchron zu halten gibt es die Möglichkeit, sich ein
zentrales ADO Control zu erstellen und die ActiveConnection aller anderes ADO
Controls auf den Recordset des Zentralen Controls zu setzen. Funktioniert
auch soweit, nur gibt es da eine bessere Lösung? Das Problem mit der
zentralen Connection bleibt auch bei diesem Lösungsansatz weiterhin bestehen.

Kennt jemand eine Lösung des Problems?
Vielen Dank für Unterstützung.

-- 
Mit freundlichen Grüßen
Claus Anderwald


Relevant Pages

  • Re: Data Environment Connection Fails Silently
    ... > a dialog containing ADO databound controls. ... > - We're setting the connection string for the DataEnvironment connection ... Don't install XP specific SPs ...
    (microsoft.public.vb.database.ado)
  • Re: VB & SQL
    ... Search Google for sample code using ADO. ... I haven't any handy to copy, but basically you create a new Connection ... *) create a new recordset and set the ActiveConnection to the connection ... Doing it via controls always seems to lead to problems later. ...
    (microsoft.public.vb.general.discussion)
  • Re: C++ support for ADO
    ... TESTHR(pConn.CreateInstance(__uuidof(Connection))); ... In answer to your question I'm interested in ADO not the ADO.net. ... data classes for working with ADO/OLE DB. ... You can also use the OLE SDK. ...
    (microsoft.public.data.ado)
  • Re: More ASP.Net Newbie Questions
    ... The Command is then what you're doing with this connection, ... In regards to your final point, making grids and controls in general do ... > Connection and Recordset objects into, like, 37 different things. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: ODBC/OLE DB Connection Pool
    ... > connection be kept open for the application as this will serialize all ... threads ONCE they are returned to the pool. ... > Tips for ADO Users ... > The ADO Connection object implicitly uses IDataInitialize. ...
    (microsoft.public.data.ado)