[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] |
Execute a piece of SQL code directly, using a Transaction if specified
Source position: sqldb.pp line 276
public procedure TSQLConnection.ExecuteDirect( |
SQL: string |
); virtual; overload; |
SQL: string; |
ATransaction: TSQLTransaction |
); virtual; overload; |
SQL |
|
SQL statement to be executed |
SQL |
|
SQL statement to be executed |
ATransaction |
|
Transaction to be used. The default transaction will be used if none is passed |
ExecuteDirect executes an SQL statement directly. If ATransaction is Nil then the default transaction is used, otherwise the specified transaction is used.
ExecuteDirect does not offer support for parameters, so only statements that do not need parsing and parameters substitution can be handled. If parameter substitution is required, use a TSQLQuery component and its ExecSQL method.
If no transaction is assigned, and no transaction is passed, an exception will be raised.
|
Class to handle SQL commands (with or without result set) |
|
|
Execute a SQL statement that does not return a result set |