Skip Headers

Oracle® Objects for OLE Developer's Guide
10g Release 1 (10.1)

Part Number B10118-01
Go to Documentation Home
Home
Go to Book List
Book List
Go to Table of Contents
Contents
Go to Master Index
Master Index
Go to Feedback page
Feedback

Asynchronous Processing

In OO4O Automation, you can execute commands using asynchronous processing. This enables you to execute SQL statements and PL/SQL blocks in non-blocking mode. Non-blocking mode is an option of the CreateSQL method.

Non-Blocking Mode

In non-blocking mode, control is returned to the application immediately even if the execution is not complete. This allows the application to execute other tasks which are not dependent on the results of the last execution.

To enable non-blocking mode, pass in ORASQL_NONBLK option to CreateSQL while creating the OraSqlStmt object. If this mode is not specified, the OraSqlStmt executes in blocking mode (default behavior).

'Create the statement in NON-BLOCKING mode

OraSQL = Oradb.CreateSQL("delete from emp",ORASQL_NONBLK)

An OraSqlStmt object created in non-blocking mode executes in non-blocking mode for the lifetime of the object.

· Checking the Status of a Non-Blocking Operation

· Canceling a Non-Blocking Operation

· Executing Multiple Queries in Asynchronous Mode

· Limitations on Non-Blocking