Entering content frame

Procedure documentation auto_update_statistics Locate the document in the library structure

Use

You can update optimizer statistics automatically. You can activate or deactivate this function in the Database Manager. The default setting is for the function to be deactivated.

You also use this DBM command to display the status of this function.

If the functions is activated, the system updates optimizer statistics (controlled by events), based on the system entries in the SYSUPDSTATWANTED system table.

Note

Like other DBM commands, this one requires its own event task. For this reason, make sure when you execute this DBM command that the _MAXEVENTTASKS database parameter is large enough.

Prerequisites

·         You have the server authorization AccessSQL.

·         You have opened a database session (see: db_connect).

Syntax

auto_update_statistics <mode>

<mode> :: = ON | OFF | SHOW

<mode>

Function for automatically updating the optimizer statistics. Possible values are:

ON: Enable function

OFF: Disable function

SHOW: Display function

Reply

OK

[ON | OFF | UNKNOWN]

Values for the Reply Fields

Value

Description

ON | OFF | UNKNOWN

Output when using the SHOW mode, possible values are:

ON: the automatic optimizer statistics update function is activated.

OFF: the automatic optimizer statistics update function is deactivated.

UNKNOWN: the system cannot determine the status of the automatic optimizer statistics update function.

 

In the event of errors, see Reply Format

 

 

Leaving content frame