VALIDATE Statement

Validates the current database, or a single table, materialized view, or index in the IQ catalog (system) store.

Warning!  Validating a table or an entire database should be performed while no connections are making changes to the database; otherwise, errors may be reported indicating some form of database corruption even though no corruption actually exists.

Quick Links:

Go to Parameters

Go to Standards

Go to Permissions

Syntax

Syntax 1 – Validating a database

VALIDATE { CHECKSUM | DATABASE }

Syntax 2 – Validating tables and materialized views

VALIDATE {
   TABLE [ owner.]table-name
   | MATERIALIZED VIEW [ owner.]materialized-view-name }
   [ WITH EXPRESS CHECK ]

Syntax 3 – Validating indexes

VALIDATE {
   INDEX index-name 
   | [ INDEX ] FOREIGN KEY role-name 
   | [ INDEX ] PRIMARY KEY  }
   ON [ owner.]object-name

object-name
   table-name | materialized-view-name

Syntax 4 – Validating text indexes

VALIDATE TEXT INDEX index-name 
   ON [ owner.]table-name

Parameters

(back to top)

Standards

(back to top)

ANSI SQL–Compliance level: Transact-SQL extension.

Permissions

(back to top)

Requires one of: