Navigation:  DAO Object Classes > DaoDatabase Class >

DaoDatabase:Execute() Method

Previous pageReturn to chapter overviewNext page

Purpose

Execute an SQL statement

 

Parameters

cQueryA string that is an SQL statement.
lOptions(Optional) A constant or combination of constants that determines the data integrity characteristics of the query

 

Returns

NIL

'

Remarks

You can use the following constants for IOptions

 

ConstantDescription

 

dbDenyWriteDenies write permission to other users (Microsoft Jet workspaces only).
DbInconsistent(Default) Executes inconsistent updates (Microsoft Jet workspaces only).
DbConsistentExecutes consistent updates (Microsoft Jet workspaces only).
DbSQLPassThroughExecutes an SQL pass-through query. Setting this option passes the SQL statement to an ODBC database for processing (Microsoft Jet workspaces only).
DbFailOnErrorRolls back updates if an error occurs (Microsoft Jet workspaces only).
DbSeeChangesGenerates a run-time error if another user is changing data you are editing (Microsoft Jet workspaces only).
DbRunAsyncExecutes the query asynchronously (ODBCDirect Connection and QueryDef objects only).
DbExecDirectExecutes the statement without first calling SQLPrepare ODBC API function (ODBCDirect Connection and QueryDef objects only).

 

Class

DaoDatabase

 

Example

Database sample