dbFinishCommand()

Database function for releasing a command object.

Synopsis

int dbFinishCommand(dbCommand command);

Parameters

Parameter Meaning
command Command reference provided by dbStartCommand()

Return Value

The return value is an error code; 0 indicates the operation has been performed successfully. For other values dbGetError() can be used to obtain detailed error information.

Errors

An error is returned if an invalid command reference is passed.

Description

Every command started successfully with dbStartCommand() must be closed again with dbFinishCommand(). Command references released by dbFinishCommand() are subsequently invalid and must no longer be passed to other ADO functions (apart from dbStartCommand().

Example

see dbBeginTransaction()

Assignment

ADO and Qt, Database functions

Availability

CTRL