drop database

Description

Removes one or more databases from Adaptive Server.

Syntax

drop database database_name [, database_name] ...

Parameters

database_name

is the name of a database to remove. Use sp_helpdb to get a list of databases.

Examples

Example 1

Removes the publishing database and all its contents:

drop database publishing

Usage


Restrictions

Standards

SQL92 – Compliance level: Transact-SQL extension.

Permissions

Only the Database Owner can execute drop database, except for the sybsecurity database, which can be dropped only by the System Security Officer.

See also

Commands alter database, create database, dbcc, use

Utilities sp_changedbowner, sp_helpdb, sp_renamedb, sp_spaceused