You can query system tables just like any other tables. For example, the following statement returns the names of all the triggers in the database:
select name from sysobjects where type = "TR"
In addition, Adaptive Server supplies stored procedures (called system procedures), many of which provide shortcuts for querying the system tables.
Here are the system procedures that provide information from the system tables:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
For complete information about the system procedures, see the Reference Manual.