AnyDAC
ContentsIndexHome
PreviousUpNext
TADCustomConnection.ExecSQL Method (String)

Executes a SQL command without parameters.

Group
Links
Parameters 
Description 
const ASQL: String 
A SQL command to execute. 

The number of affected rows.

The ExecSQL method executes a SQL command without parameters. All returned cursors will be discarded.

function ExecSQL(const ASQL: String): LongInt; overload;
ADConnection1.ExecSQL('truncate table tab1');
What do you think about this topic? Send feedback!