You update the optimizer statistics of the tables for which the system determined it was necessary and made an entry in the system table SYSUPDSTATWANTED.
You have the server authorization AccessSQL.
You have opened a database session (see: db_connect).
sql_updatestat_per_systemtable
Concepts of the Database System, SQL Optimizer