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:
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:
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.
|Send feedback about this page via email or DocCommentXchange||Copyright © 2008, iAnywhere Solutions, Inc. - SQL Anywhere 11.0.0|