System tables

See Reference Manual: Tables for details.

sysalternates

All databases – contains one row for each Adaptive Server user mapped (or aliased) to a user of the current database.

sysattributes

All databases – system attributes define properties of objects such as databases, tables, indexes, users, logins, and procedures.

sysauditoptions

sybsecurity database – contains one row for each server-wide audit option and indicates the current setting for that option.

sysaudits_01 – sysaudits_08

sybsecurity database – contain the audit trail.

syscharsets

master database only – contains one row for each character set and sort order defined for use by Adaptive Server.

syscolumns

All databases – contains one row for every column in every table and view, and a row for each parameter in a procedure.

syscomments

All databases – contains entries for each view, rule, default, trigger, table constraint, and procedure.

sysconfigures

master database only – contains one row for each configuration parameter that can be set by the user.

sysconstraints

All databases – has one row for each referential constraint and check constraint associated with a table or column.

syscoordinations

sybsystemdb database only – contains information about remote Adaptive Servers participating in distributed transactions (remote participants) and their coordination states.

syscurconfigs

master database only – syscurconfigs is built dynamically when queried. It contains an entry for each of the configuration parameters, as does sysconfigures, but with the current values rather than the default values.

sysdatabases

master database only – contains one row for each database in Adaptive Server.

sysdepends

All databases – contains one row for each procedure, view, or table that is referenced by a procedure, view, or trigger.

sysdevices

master database only – contains one row for each tape dump device, disk dump device, disk for databases, and disk partition for databases.

sysengines

master database only – contains one row for each Adaptive Server engine currently online.

sysgams

All databases – stores the global allocation map (GAM) for the database. The GAM stores a bitmap for all allocation units of a database, with one bit per allocation unit. You cannot select from or view sysgams.

sysindexes

All databases – contains one row for each clustered index, one row for each nonclustered index, one row for each table that has no clustered index, and one row for each table that contains text or image columns.

sysjars

All databases – contains one row for each Java archive (JAR) file that is retained in the database. Uses row-level locking.

syskeys

All databases – contains one row for each primary, foreign, or common key.

syslanguages

master database only – contains one row for each language known to Adaptive Server. us_english is not in syslanguages, but it is always available to Adaptive Server.

syslisteners

master database only – contains a row for each network protocol available for connecting with the current Adaptive Server. Adaptive Server builds syslisteners dynamically when a user or client application queries the table.

syslocks

master database only – contains information about active locks. It is built dynamically when queried by a user. No updates to syslocks are allowed.

sysloginroles

master database only – contains a row for each instance of a server login possessing a system role.

syslogins

master database only – contains one row for each valid Adaptive Server user account.

syslogs

All databases – contains the transaction log. It is used by Adaptive Server for recovery and roll forward. It is not useful to users.

syslogshold

master database only – contains information about each database’s oldest active transaction (if any) and the Replication Server truncation point (if any) for the transaction log, but it is not a normal table. Rather, it is built dynamically when queried by a user. No updates to syslogshold are allowed.

sysmessages

master database only – contains one row for each system error or warning that can be returned by Adaptive Server.

sysmonitors

master database only – contains one row for each monitor counter.

sysobjects

All databases – contains one row for each table, view, stored procedure, extended stored procedure, log, rule, default, trigger, check constraint, referential constraint, and (in tempdb only) temporary object.

syspartitions

All databases – contains one row for each partition (page chain) of a partitioned table.

sysprocedures

All databases – contains entries for each view, default, rule, trigger, procedure, declarative default, and check constraint.

sysprocesses

master database only – contains information about Adaptive Server processes, but it is not a normal table. It is built dynamically when queried by a user.

sysprotects

All databases – contains information on permissions that have been granted to, or revoked from, users, groups, and roles.

sysqueryplans

All databases – contains two or more rows for each abstract query plan. Uses datarow locking.

sysreferences

All databases – contains one row for each referential integrity constraint declared on a table or column.

sysremotelogins

master database only – contains one row for each remote user that is allowed to execute remote procedure calls on this Adaptive Server.

sysresourcelimits

master database only – contains a row for each resource limit defined by Adaptive Server.

sysroles

All databases – maps server role IDs to local role IDs.

syssecmechs

master database only – contains information about the security services supported by each security mechanism that is available to Adaptive Server.

syssegments

All databases – contains one row for each segment (named collection of disk pieces).

sysservers

master database only – contains one row for each remote Adaptive Server, Backup Server™, or Open Server™ on which this Adaptive Server can execute remote procedure calls.

syssessions

master database only – is only used when Adaptive Server is configured for Sybase’s Failover in a high availability system.

syssrvroles

master database only – contains a row for each system or user-defined role.

sysstatistics

All databases – contains one or more rows for each indexed column on a user table.

systabstats

All databases – contains one row for each clustered index, one row for each nonclustered index, and one row for each table that has no clustered index.

systhresholds

All databases – contains one row for each threshold defined for the database.

systimeranges

master database only – stores named time ranges, which are used by Adaptive Server to control when a resource limit is active.

systransactions

master database only – contains information about Adaptive Server transactions, but it is not a normal table.

systypes

All databases – contains one row for each system-supplied and user-defined datatype.

sysusages

master database only – contains one row for each disk allocation piece assigned to a database.

sysusermessages

All databases – contains one row for each user-defined message that can be returned by Adaptive Server.

sysusers

All databases – contains one row for each user allowed in the database, and one row for each group or role.

sysxtypes

All databases – contains one row for each extended, Java-SQL datatype. Uses row-level locking.

syblicenseslog

master database only – contains one row for each update of the maximum number of licenses used in Adaptive Server per 24-hour period.