Sybase Technical Library - Product Manuals Home
[Search Forms] [Previous Section with Hits] [Next Section with Hits] [Clear Search] Expand Search

disk unmirror [Table of Contents] drop
default

Reference Manual: Commands

[-] Chapter 1 Commands
[-] drop database

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

ANSI SQL - 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

Procedures

sp_changedbowner, sp_helpdb, sp_renamedb, sp_spaceused


disk unmirror [Table of Contents] drop
default