VirtualDAC

TCustomDADataSet.SQLRefresh Property

Used to specify a SQL statement that will be used to refresh current record by calling the RefreshRecord procedure.

Class

TCustomDADataSet

Syntax

property SQLRefresh: TStrings;

Remarks

Use the SQLRefresh property to specify a SQL statement that will be used to refresh current record by calling the RefreshRecord procedure.

Different behavior is observed when the SQLRefresh property is assigned with a single WHERE clause that holds frequently altered search condition. In this case the WHERE clause from SQLRefresh is combined with the same clause of the SELECT statement in a SQL property and this final query is then sent to the database server.

To create a SQLRefresh statement at design-time, use the query statements editor.

Example

SELECT Shipname FROM Orders
   WHERE
      OrderID = :OrderID 

See Also

© 1997-2024 Devart. All Rights Reserved. Request Support DAC Forum Provide Feedback