Start a database

With both Sybase Central and Interactive SQL, you can start a database without connecting to it.

 To start a database on a database server without connecting (Sybase Central)
  1. Select the database server and then choose File » Start Database.

  2. In the Start Database window, enter the required values.

    The database appears under the database server as a disconnected database.

 To start a database on a server without connecting (SQL)
  • Execute a START DATABASE statement.

See START DATABASE statement.

Start the database file c:\temp\temp.db on the database server named sample.

START DATABASE 'c:\\temp\\temp.db'
AS tempdb ON 'sample'
AUTOSTOP OFF;

You must be connected to a database to start another database.

The AUTOSTOP OFF connection parameter prevents the database from being stopped automatically when all connections have been disconnected. It is used here to illustrate a point later on in the discussion.

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