Stop a database

You can stop a database by:

  • Disconnecting from a database started by a connection string. Unless you explicitly set the AutoStop (ASTOP) connection parameter to NO, this happens automatically.

    See AutoStop (ASTOP) connection parameter.

  • Using the STOP DATABASE statement from Interactive SQL or embedded SQL.

    See STOP DATABASE statement.

For more details about stopping a database, see Using SQL Anywhere database servers.

 Stop a database on a database server after disconnecting (Sybase Central)

You cannot stop a database you are currently connected to. You must first disconnect from the database, and then stop it. You must be connected to another database on the same database server to stop a database.

  1. Make sure you are connected to at least one other database on the same database server. If there is no other database running on the database server, you can connect to the utility database.

  2. Select the database you want to stop and click File » Stop Database.

    When disconnecting from the database, the database may disappear from the left pane. This occurs if your connection was the only remaining connection, and if AutoStop was specified when the database was started. AutoStop causes the database to be stopped automatically when the last connection disconnects.

 Stop a database on a server after disconnecting (SQL)

You cannot stop a database you are currently connected to. You must first disconnect from the database, and then stop it. You must be connected to another database on the same database server to stop a database.

  1. If you aren't connected to any database on the server, then connect to a database such as the utility database.

  2. Execute a STOP DATABASE statement.

 See also
 Example