Use this statement to stop a database on the current database server.
STOP DATABASE database-name [ ON database-server-name ] [ UNCONDITIONALLY ]
ON clause This clause is supported in Interactive SQL only. If database-server-name is not specified in Interactive SQL, all running servers are searched for a database of the specified name.
When not using this statement in Interactive SQL, the database is stopped only if it is started on the current database server.
The STOP DATABASE statement stops a specified database on the current database server.
The required permissions are specified by the database server -gk option. This option defaults to all on the personal database server, and DBA on the network server.
You cannot use STOP DATABASE on the database to which you are currently connected.
SQL/2003 Vendor extension.
Stop the database named sample on the current server.
STOP DATABASE sample;
|Discuss this page in DocCommentXchange.
Send feedback about this page using email.
|Copyright © 2009, iAnywhere Solutions, Inc. - SQL Anywhere 11.0.1|