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

SQL Anywhere 12.0.1 » Context-Sensitive Help » SQL Anywhere plug-in help » SQL Anywhere properties windows


View Properties window: General tab

This tab has the following components:

  • Name   Shows the name of the view.

  • Type   Shows the type of object.

  • Owner   Shows the database user who owns the object.

  • Status   Shows the status of the object. The following values are supported:

    • Valid   The view is valid and is guaranteed to be consistent with its definition. The database server can make use of this view without any additional work. See Statuses for regular views.

    • Invalid   The view is invalid. A view can become invalid after a schema change to a referenced object where the change results in an unsuccessful attempt to enable the view. Views can also become invalid if a table or view that they reference is dropped.

      Each time an invalid view is referenced, for example by a query, the database server tries to recompile the view. If the compilation succeeds, the query proceeds. The view's status remains invalid until it is explicitly enabled. If the compilation fails, an error is returned. See Statuses for regular views.

    • Disabled   The view has been explicitly disabled by the user. Disabled views are not available for use by the database server for answering queries. Any query that attempts to use a disabled view returns an error. See Statuses for regular views.

    • Recompile and Enable Now   Click to recompile and enable the view, making it available for use by the database server.

      Before you enable a view, you must re-enable any other views that it references (if they are disabled). See Disabling or enabling a regular view (Sybase Central).

    • Disable Now   Click to disable the view. The database server keeps the definition of the view in the database, but makes the view unusable.

      Disabling a view can affect queries that explicitly reference it, and other views that reference it, directly or indirectly. See Disabling or enabling a regular view (Sybase Central).

  • Comment   Provides a place for you to type a description of the view. For example, you could use this area to describe the view's purpose in the system. Later, if you use the Database Documentation Wizard to document your SQL Anywhere database, you can include these comments in the output.

 See also