Query system tables in the same manner as any other tables. For example, the following statement returns the names of all 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.
These system procedures provide information from the system tables:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
sp_helplog |
For complete information about the system procedures, see the Reference Manual: Procedures.