Drop Database Statement - Sybase Adaptive Server Anywhere Reference

Table of Contents

Advertisement

DROP DATABASE statement

Function
Syntax
Permissions
Side effects
See also
Description
Standards and
compatibility
Examples
Use this statement to delete all database files associated with a database.
DROP DATABASE database-name
Required permissions are set using the database server
option. The default setting is to require DBA authority.
The database must not be in use in order to be dropped.
Not supported on Windows CE.
In addition to deleting the database files from disk, any associated
transaction log file or transaction log mirror file is deleted.
"CREATE DATABASE statement" on page 427
The DROP DATABASE statement physically deletes all associated database
files from disk. If the database file does not exist, or is not in a suitable
condition for the database to be started, an error is generated.
SQL/92
Vendor extension.
Not supported by Adaptive Server Enterprise.
Sybase
Drop the database
temp.db
DROP DATABASE 'c:\temp\temp.db'
Chapter 9 SQL Statements
-gu
, in the
directory..
C:\temp
command-line
507

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the Adaptive Server Anywhere and is the answer not in the manual?

Questions and answers

Table of Contents