Collection Contents Previous Next PDF

ASA SQL Reference

SQL Statements

CREATE COMPRESSED DATABASE statement (deprecated)


Description 

Use this statement to create a compressed database from an existing database file, or to expand a compressed database.

Deprecated statement 
The use of compressed databases is deprecated.
Syntax 

CREATE [ COMPRESSED | EXPANDED ] DATABASE new-db-file-name
FROM old-db-file-name [ KEY key ]

Usage 

Creates a compressed database file from an uncompressed database file, or an uncompressed database file from a compressed one.

Any relative path is resolved relative to the current working directory of the server.

You cannot use this statement on files other than the main database file.

Caution    Compressing an encrypted database removes encryption from the database.
Permissions 
Side effects 

An operating system file is created.

See also 
Standards and compatibility 
Example 

The following statement creates a compressed database file named compress.db in the C:\ directory from a database file named full.db in the current working directory of the server.

CREATE COMPRESSED DATABASE 'C:\\compress.db'
FROM 'full.db'

The following statement creates an uncompressed database file named full.db in the C:\ directory from a compressed database file named compress.db in the current working directory of the server.

CREATE EXPANDED DATABASE 'C:\\full.db'
FROM 'compress.db'

Collection Contents Previous Next PDF