TMedQuery.ExecSQL TMedQuery

procedure ExecSQL;

Description

Use ExecSQL to execute SQL statement assigned to the SQL property. Only non-query statements can be executed this way. To execute queries (selects) use Open method or Active property.

Examine RowsAffected property to check how many records/rows were processed by the executed statement.