PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : Akkualisierung und Dynamic


Jörg Hartmann
21.06.2000, 09:07
Hallo,

ich habe ein Problem mit ADO im Netz. Ich kann CursorLocation nicht auf Dynamic stellen obwohl ich clUseServer (ADOTable1 und Connection eingestellt habe). Insofern sind Änderung von Daten im Netz nicht sofort für andere sichtbar. Meine Frage ist wie bekomme ich den Cursor auf Dynamic und wie kann ich eine schnelle Aktualisierung realisieren? Kennt jemand Bücher über ADO?

vielen Dank im vorraus

jörg

Andreas Kosch
22.06.2000, 06:36
Hallo,

auch wenn <b>clUseServer</b> ausgewählt wurde, bedeutet das nicht, das ADO diesen Modus auch verwendet. Welcher Wert kann <b>nach</b> dem Öffnen der Datenmenge ausgelesen werden?

Außerdem ist in der ADO-Dokumentation zu dem <b>Dynamic Cursor</b> der folgende Hinweis zu finden:

<i>Q. Why shouldn't I use the dynamic cursors? They seem to provide the most functionality, and I like functionality.

A. You pay for the functionality you get.

With forward-only cursors, you're asking the database system to provide minimal functionality. If you want to scroll back and forth through your data, you need to store it on your own or in the ADO Cursor Engine. The more functionality you ask your database server to provide in the cursor, the more work it needs to perform. Remember that every time ADO asks for more data to fill its cache, the query processor reexamines the tables referenced by the query, determines which records satisfy the query criteria, and then generates the requested records in the cursor. Sure, a dynamic cursor provides more functionality, but there's a heavy price to pay for that functionality.
</i>

Ein zum empfehlendes ADO-Buch ist <b>ADO-Programmierung</b> von David Sceppa (Microsoft Press; 319 Seiten; 79,- DM). Da geht es zwar nur um Visual Basic, aber die verwendeten Beispiele können 1:1 mit Delphi umgesetzt werden