AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Zurück Delphi-PRAXiS Programmierung allgemein Datenbanken Delphi FIBPLus, DataSet Insert klappt nicht
Thema durchsuchen
Ansicht
Themen-Optionen

FIBPLus, DataSet Insert klappt nicht

Ein Thema von hoika · begonnen am 11. Aug 2009 · letzter Beitrag vom 11. Aug 2009
Antwort Antwort
alex517

Registriert seit: 23. Nov 2004
Ort: Bernau b. Berlin
273 Beiträge
 
Delphi XE5 Enterprise
 
#1

Re: FIBPLus, DataSet Insert klappt nicht

  Alt 11. Aug 2009, 08:34
im "Normalfall" FibDataSet aufs Formular oder DatenModul ziehen -
rechte Maustaste - "SQL Generator" - und dort alles weitere.

Wenn du die DataSets dynamisch erzeugen willst, dann steht
folgendes in der FibPlus-Hilfe:
Zitat:
TpFIBDataSet.GenerateSQLs

Generates SQLs for inserting, updating, deleting and refreshing records.

procedure GenerateSQLs;

Description

Call the GenerateSQLs procedure to fill the InsertSQL, UpdateSQL, DeleteSQL and RefreshSQL properties. The condition for WHERE construction is made in the following way: at first, the AutoUpdateOptions .KeyFields value is checked. If it is not empty the fields from AutoUpdateOptions.KeyFields are inserted into WHERE condition. Otherwise the existence of a primary key in a table is checked. If it is found the WHERE condition is build by primary key fields. If nothing above-mentioned has happened, all fields are inserted in WHERE condition.

The dataset must be open before calling the GenerateSQLs procedure.
Die üblichen Methoden des DataSets (ds.Open, ds.Append, ds.Edit, ds.Delete ds.Refresh) verwenden dann die entsprechenden SQL-Statements.
Dabei laufen ds.Open und ds.Refresh im Context der Property ds.Transaction, während
ds.Append, ds.Edit und ds.Delete die ds.UpdateTransaction verwenden.

alex
Alexander
  Mit Zitat antworten Zitat
Antwort Antwort


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 20:56 Uhr.
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz