Difference between revisions of "PACK DATABASE"
Barrymavin (Talk | contribs) (→See Also) |
Yvonne.milne (Talk | contribs) |
||
Line 6: | Line 6: | ||
==See Also== | ==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]], [[REINDEX DATABASE]], [[SET AUTOCATALOG]], [[SET EXCLUSIVE]], [[SQL USE|USE]] | + | [[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]], [[ISEXCLUSIVE()]], [[LIST DATABASE]], [[LIST INDEXES]], [[LIST SCHEMAS]], [[LIST TABLES]], [[OPEN DATABASE]], [[PACK]], [[REBUILD DATABASE]], [[REINDEX DATABASE]], [[SET AUTOCATALOG]], [[SET EXCLUSIVE]], [[SQL USE|USE]] |
==Description== | ==Description== | ||
Line 14: | Line 14: | ||
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. | 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. | ||
+ | |||
+ | If the database is open, it must be open in exclusive mode. | ||
==Example== | ==Example== |
Latest revision as of 11:08, 15 February 2023
Contents
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, ISEXCLUSIVE(), LIST DATABASE, LIST INDEXES, LIST SCHEMAS, LIST TABLES, OPEN DATABASE, PACK, REBUILD DATABASE, REINDEX 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.
If the database is open, it must be open in exclusive mode.
Example
open database southwind pack database close databases pack database southwind