ALTER DATABASE Statement

Upgrades a database created with a previous version of the software, adds or removes jConnect™ for JDBC™ support, or defines management of system procedure execution. Run this statement with DBISQL Interactive SQL.

Syntax

ALTER DATABASE UPGRADE
   [ PROCEDURE ON ]     
   [ JCONNECT { ON | OFF } ]
   [ RESTART { ON | OFF } ]
   [ SYSTEM PROCEDURE AS DEFINER {ON | OFF} ]

Parameters

Examples

Usage

The ALTER DATABASE statement upgrades databases created with earlier versions of the software. This applies to maintenance releases as well as major releases.

When you upgrade a database, SAP Sybase IQ makes these changes:
  • Upgrades the system tables to the current version.

  • Adds any new database options.

  • Enables new features in the current version.

You can also use ALTER DATABASE UPGRADE simply to add jConnect features, if the database was created with the current version of the software.

Note:
  • See the Installation and Configuration Guide for backup recommendations before you upgrade.
  • Be sure to start the server in a way that restricts user connections before you run ALTER DATABASE UPGRADE. For instructions and other upgrade caveats, see the Migration guide for your platform.
  • Use the iqunload utility to upgrade databases created in versions earlier than 15.0. See the Migration guide for your platform.

After using ALTER DATABASE UPGRADE, shut down the database.

Side effects:
  • Automatic commit

Standards

  • SQL—Vendor extension to ISO/ANSI SQL grammar.

  • Sybase—Not supported by Adaptive Server Enterprise.

Permissions

Requires the ALTER DATABASE system privilege.

Related reference
CREATE DATABASE Statement