Einzelnen Beitrag anzeigen

mkinzler
(Moderator)

Registriert seit: 9. Dez 2005
Ort: Heilbronn
39.851 Beiträge
 
Delphi 11 Alexandria
 
#6

AW: FireDAC - SQL mit gesetzten Parameter abfragen?

  Alt 9. Feb 2015, 20:26
Das wäre dann Abtraktion, wie man sie nicht machen sollte, wenn es ein DBMS gibt, welches keine Parameter kann, dann simuliere diese für alle DBMS.

Laut der Hilfe zu FireDAC sollte es aber richtig funktionieren

Zitat von http://docs.embarcadero.com/products/rad_studio/firedac/Executing_Command.html:
Using parameters

The parameterized query usage is one of the best practices at SQL database application development. Main benefits are:

you may compose single SQL command and use it few times with different parameter values. DBMS will build command execution plan only once. That reduces the DBMS engine load.
when you will execute the command next time, only parameter values will be transferred to the DBMS engine. That reduces network load.
you will not care about correct SQL constant formats, for example - how to properly write a date constant in Microsoft Access SQL.
Markus Kinzler

Geändert von mkinzler ( 9. Feb 2015 um 20:34 Uhr)
  Mit Zitat antworten Zitat