Used to provide a SQL statement that a query component executes when its Open method is called.
property SQL: TStrings;
Use the SQL property to provide a SQL statement that a query component executes when its Open method is called. At the design time the SQL property can be edited by invoking the String List editor in Object Inspector.
When SQL is changed, TCustomDADataSet calls Close and UnPrepare.