PACK DATABASE

From Lianjapedia
Jump to: navigation, search

Purpose

Packs each table in the active database or packs the catalog and rebuilds the catalog index tags for a specified database

Syntax

PACK DATABASE [<database name>]

See Also

ADATABASES(), ALTER INDEX, ALTER TABLE, CLOSE DATABASES, CLOSE TABLES, COMPILE DATABASE, COPY DATABASE, CREATE DATABASE, CREATE TABLE, CREATE INDEX, CREATE VIEW, DBUSED(), DISPLAY DATABASE, DISPLAY INDEXES, DISPLAY SCHEMAS, DISPLAY TABLES, DROP DATABASE, DROP INDEX, DROP TABLE,GETENV(), INDEX, LIST DATABASE, LIST INDEXES, LIST SCHEMAS, LIST TABLES, OPEN DATABASE, PACK, REBUILD DATABASE, SET AUTOCATALOG, SET EXCLUSIVE, USE

Description

The PACK DATABASE command packs all the tables in the active database. Packing a table removes all records previously marked for deletion from the table.

Databases are opened using the OPEN DATABASE command.

If the <database name> is specified, the PACK DATABASE command will operate on the specified database's catalog file: the catalog file will be packed and its index tags rebuilt using INDEX ON.

Example

open database southwind
pack database
close databases
pack database southwind