FireDAC Components for Google Campaign Manager

Build 23.0.8839

Prepared Statements

Executing Prepared Statements with FireDAC Classes

By default, TFDQuery prepares the query to avoid recompiling the same query over and over.

FDQuery1.SQL.Text := 'SELECT * FROM CampaignPerformance WHERE Device=:Device' 
FDQuery1.ParamByName('Device').AsString := 'Mobile devices with full browsers';
FDQuery1.Open;

Notes

  • If you need to execute a command only once, set ResourceOptions.DirectExecute to true.
  • The connection must be active and open while a statement is prepared.

Copyright (c) 2024 CData Software, Inc. - All rights reserved.
Build 23.0.8839