DROP DATABASE Statement

Drops a database and its associated dbspace segment files.

Quick Links:

Go to Parameters

Go to Examples

Go to Usage

Go to Standards

Go to Permissions

Syntax

DROP DATABASE db-filenameKEY key-spec ] 

Parameters

(back to top)

Examples

(back to top)

Usage

(back to top)

DROP DATABASE drops all the database segment files associated with the IQ store and temporary store before it drops the catalog store files.

You must stop a database before you can drop it. If the connection parameter AUTOSTOP=no is used, you may need to issue a STOP DATABASE statement.

You cannot execute a DROP DATABASE statement to drop an IQ database that has a DatabaseStart event defined for it.

Standards

(back to top)

  • SQL—Vendor extension to ISO/ANSI SQL grammar.
  • SAP Sybase Database product—Not supported by Adaptive Server.

Permissions

(back to top)

The permissions required to execute this statement are set using the -gu server command line option, as follows:
  • NONENo user can issue this statement.
  • DBARequires the SERVER OPERATOR system privilege.
  • UTILITY_DBOnly those users who can connect to the utility_db database can issue this statement.
Related reference
CREATE DATABASE Statement
STOP DATABASE Statement [Interactive SQL]