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

SQL Anywhere 11.0.0 » UltraLite - Database Management and Reference » Introducing UltraLite » Introducing UltraLite » UltraLite databases


UltraLite database schema

The logical framework of the database is known as a schema. In UltraLite, the schema is maintained as a catalog of system tables that hold the metadata for the UltraLite database. Metadata stored in the system tables includes:

Schema changes with DDL statements

You can change the schema of a database with the appropriate Data Definition Language (DDL) statements. If you require more than just a few changes, you can use the ALTER DATABASE SCHEMA FROM FILE statement to modify the schema definition using a SQL script.

You should note that any schema change can take a considerable amount of time. For example, changing the type of a column means that all rows in the associated table must be updated. Therefore, DDL statements only successfully execute when there are not any:

  • Uncommitted transactions.
  • Other active uses of the schema (for example, synchronization, prepared but unreleased statements, or executing database operations).

If either of these conditions is true, the DDL statement fails. When the DDL statement is executing, any other attempt to use the database is blocked until the DDL statements completes the schema change.

See also