Dropping a materialized view

You can drop a materialized view from the database. Perform this task when you no longer need the materialized view, or when you have made a schema change to an underlying referenced object such that the materialized view definition is no longer valid.

Prerequisites

You must have DBA authority, or be the owner of the view.

Before you can drop a materialized view, you must drop or disable all dependent views. To determine whether there are views dependent on a materialized view, use the sa_dependent_views system procedure.

Context and remarks

Many.

 Drop a materialized view using Sybase Central
  1. Use the SQL Anywhere 12 plug-in to connect to the database.

  2. In the left pane, double-click Views.

  3. Right-click the materialized view and click Delete.

  4. Click Yes.

Results

The materialized view is dropped from the database.

Next

If you had regular views that were dependent on the materialized view, you will not be able to enable them. You must change their definition or drop them.

 See also