Einzelnen Beitrag anzeigen

Benutzerbild von chaosben
chaosben

Registriert seit: 27. Apr 2005
Ort: Görlitz
1.358 Beiträge
 
Delphi XE2 Professional
 
#2

Re: FIBPlus Komponenten Frage

  Alt 8. Mär 2006, 09:52
Hi ho!

Nehmen wir an, du hast eine funktionsfähige DB-Connection und eine Transaction die mit deinem FibQuery und der DB-Verknüpft ist. Dann ist die grobe Schrittfolge wie folgt:
Delphi-Quellcode:
DBConnection.Open;
Transaction.StartTransaction;
Query.Sql.Text:='Bli bla ...';
Query.ExecQuery;
while not Query.Eof do
begin

  Query.Next;
end;
Query.Close;
Transaction.Commit; //oder Rollback;
DBConnectionclose;
Ganz grob.
Benjamin Schwarze
If I have seen further it is by standing on the shoulders of Giants. (Isaac Newton)
  Mit Zitat antworten Zitat