Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 12.0.1 » SQL Anywhere 服务器 - 数据库管理 » 启动并连接到数据库 » 使用 SQL Anywhere 数据库服务器 » 启动和停止数据库

 

启动数据库

 ♦ 在不进行连接的情况下启动数据库服务器上的数据库 (Sybase Central)
  1. 选择数据库服务器,然后单击 [文件] » [启动数据库]。

  2. 在 [启动数据库] 窗口中,输入所需的值。

    该数据库作为未连接的数据库出现在数据库服务器下面。

 ♦ 在不进行连接的情况下启动服务器上的数据库 (SQL)

在 Interactive SQL 中,必须连接到数据库才能运行 START DATABASE 语句。

  • 执行 START DATABASE 语句。

    在名为 sample 的数据库服务器上,启动数据库文件 c:\temp\temp.db

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

    AUTOSTOP OFF 连接参数会阻止数据库在所有连接都断开时自动停止。

 另请参见