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.

Quick Links:

Go to Parameters

Go to Examples

Go to Usage

Go to Standards

Go to Permissions

Syntax

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

Parameters

(back to top)

Examples

(back to top)

Usage

(back to top)

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

(back to top)

  • SQL—Vendor extension to ISO/ANSI SQL grammar.
  • SAP Sybase Database product—Not supported by Adaptive Server.

Permissions

(back to top)

Requires the ALTER DATABASE system privilege.

Related reference
CREATE DATABASE Statement