MimerExecuteStatement

Executes a statement directly without parameters. (wchar_t version.)

This routine is mainly intended for data definition statements (e.g. CREATE TABLE), but can also be used for regular INSERT, UPDATE and DELETE statements with no input or output parameters.

Parameters

int32_t MimerExecuteStatement (

            MimerSession sessionhandle,

            const wchar_t *sqlstatement)

sessionhandle

in

A handle returned by MimerBeginSession[C|8], identifying the session.

sqlstatement

in

An SQL statement.

Returns

A negative value indicating an error, or zero if successful.

Return value

Description

MIMER_SUCCESS

Success.

MIMER_ILLEGAL_CHARACTER

The statement string contained an illegal character.

MIMER_HANDLE_INVALID

The sessionhandle parameter was not recognized as a handle.

MIMER_OUTOFMEMORY

If not enough memory could be allocated.

MIMER_STRING_TRUNCATION

The statement string was too long.

Other value < 0

Any of the server error codes listed in Return Codes.

Notes

This routine interacts with the database server.

Micro API compatible.

wchar_t version of the routine. See Character String Formats for more information about character formats and the different routine versions.