Table: SYS . DUMMY

The DUMMY table is provided as a table that always has exactly one row. This can be useful for extracting information from the database, as in the following example that gets the current user ID and the current date from the database.

SELECT USER, today(*) FROM SYS.DUMMY
Column: dummy_col - in SYS.DUMMY - INTEGER NOT NULL
This column is not used. It is present because a table cannot be created with no columns.

Table: dbo . RowGenerator

An undocumented table containing the numbers 1 to 255.
Column: row_num - in dbo.RowGenerator - /* PK */ SMALLINT NOT NULL
The numbers 1 to 255 are pre-loaded into this column.

Table: SYS . SYSARTICLE

Each row of SYSARTICLE describes an article in a SQL Remote publication.
Column: publication_id - in SYS.SYSARTICLE - /* PK FK */ SMALLINT NOT NULL
The publication of which this article is a part.
Column: table_id - in SYS.SYSARTICLE - /* PK FK */ SMALLINT NOT NULL
Each article consists of columns and rows from a single table. This column contains the table ID for this table.
Column: where_expr - in SYS.SYSARTICLE - TEXT NULL
For articles that contain a subset of rows defined by a WHERE clause, this column contains the search condition.
Column: subscribe_by_expr - in SYS.SYSARTICLE - TEXT NULL
For articles that contain a subset of rows defined by a SUBSCRIBE BY expression, this column contains the expression.
Column: query - in SYS.SYSARTICLE - CHAR ( 1 ) NOT NULL
(undocumented) (Y/N) Indicates if the subscribe_by_expr contains a subquery.

Table: SYS . SYSARTICLECOL

Each row identifies a column in an article, identifying the column, the table it is in, and the publication it is part of.
Column: publication_id - in SYS.SYSARTICLECOL - /* PK FK */ SMALLINT NOT NULL
A unique identifier for the publication of which the column is a part.
Column: table_id - in SYS.SYSARTICLECOL - /* PK FK */ SMALLINT NOT NULL
The table to which the column belongs.
Column: column_id - in SYS.SYSARTICLECOL - /* PK FK */ SMALLINT NOT NULL
The column identifier, from the SYSCOLUMN system table.

Table: SYS . SYSCOLLATION

This table contains the collation sequences available to SQL Anywhere. There is no way to modify the contents of this t
Column: collation_id - in SYS.SYSCOLLATION - /* PK */ SMALLINT NOT NULL
A unique number identifying the collation sequence. The collation sequence with collation_id equal 2 is the sequence used in previous versions of SQL Anywhere, and is the default when a database is created with DBINIT.
Column: collation_label - in SYS.SYSCOLLATION - CHAR ( 10 ) NOT NULL
A string identifying each of the available collation sequences. The collation sequence to be used is selected when the database is created by specifying the collation label with the -z option.
Column: collation_name - in SYS.SYSCOLLATION - CHAR ( 128 ) NOT NULL
The name of the collation sequence.
Column: collation_order - in SYS.SYSCOLLATION - BINARY ( 1280 ) NOT NULL
An array of bytes defining how each of the 256 character codes are treated for comparison purposes. All string comparisons translate each character according to the collation order table before comparing the characters. For the different ASCII code pages, the only difference is how accented characters are sorted. In general, an accented character is sorted as if it were the same as the nonaccented character.

Table: SYS . SYSCOLPERM

The GRANT command can give UPDATE permission to individual columns in a table. Each column with UPDATE permission is recorded in one row of SYSCOLPERM.
Column: table_id - in SYS.SYSCOLPERM - /* PK FK */ SMALLINT NOT NULL
The table number for the table containing the column.
Column: grantee - in SYS.SYSCOLPERM - /* PK FK */ SMALLINT NOT NULL
The user number of the user ID given UPDATE permission on the column. If the grantee is the user number for the special PUBLIC user ID, the UPDATE permission is given to all user IDs.
Column: grantor - in SYS.SYSCOLPERM - /* PK FK */ SMALLINT NOT NULL
The user number of the user ID granting the permission.
Column: column_id - in SYS.SYSCOLPERM - /* PK FK */ SMALLINT NOT NULL
This column number, together with the table_id, identifies the column for which UPDATE permission has been granted.
Column: privilege_type - in SYS.SYSCOLPERM - /* PK */ SMALLINT NOT NULL
The number in this column indicates the kind of column permission (REFERENCES, SELECT or UPDATE).
Column: is_grantable - in SYS.SYSCOLPERM - CHAR ( 1 ) NOT NULL
(Y/N). Indicates if the permission on the column was granted by the grantor to the grantee WITH GRANT OPTION.

Table: SYS . SYSCOLUMN

Each column in every table or view is described by one row in SYSCOLUMN.
Column: table_id - in SYS.SYSCOLUMN - /* PK FK */ SMALLINT NOT NULL
The table number uniquely identifies the table or view to which this column belongs.
Column: column_id - in SYS.SYSCOLUMN - /* PK */ SMALLINT NOT NULL
Each table starts numbering columns at 1. The order of column numbers determines the order that columns are displayed in the command select * from table.
Column: pkey - in SYS.SYSCOLUMN - CHAR ( 1 ) NOT NULL
(Y/N) Indicates whether this column is part of the primary key for the table.
Column: domain_id - in SYS.SYSCOLUMN - /* FK */ SMALLINT NOT NULL
Identify the data type for the column by the data type number listed in the SYSDOMAIN table.
Column: nulls - in SYS.SYSCOLUMN - CHAR ( 1 ) NOT NULL
(Y/N) Indicate whether the NULL value is allowed in this column.
Column: width - in SYS.SYSCOLUMN - SMALLINT NOT NULL
This column contains the length of string columns, the precision of numeric columns, and the number of bytes of storage for all other data types.
Column: scale - in SYS.SYSCOLUMN - SMALLINT NOT NULL
The number of digits after the decimal point for numeric data type columns, and zero for all other data types.
Column: estimate - in SYS.SYSCOLUMN - INTEGER NOT NULL
A self-tuning parameter for the optimizer. SQL Anywhere will learn from previous queries by adjusting guesses that are made by the optimizer.
Column: column_name - in SYS.SYSCOLUMN - CHAR ( 128 ) NOT NULL
The name of the column.
Column: remarks - in SYS.SYSCOLUMN - TEXT NULL
A comment string.
Column: default - in SYS.SYSCOLUMN - TEXT NULL
The default value for the column. This value is only used when an INSERT statement does not specify a value for the column.
Column: check - in SYS.SYSCOLUMN - TEXT NULL
Any CHECK condition defined on the column.
Column: user_type - in SYS.SYSCOLUMN - /* FK */ SMALLINT NULL
If the column is defined on a user-defined data type, the data type is held here.
Column: format_str - in SYS.SYSCOLUMN - CHAR ( 128 ) NULL
Currently unused.

Table: SYS . SYSDOMAIN

Each of the predefined data types (sometimes called domains) in SQL Anywhere is assigned a unique number. The SYSDOMAIN table is provided for informational purposes to show the association between these numbers and the appropriate data type. This table is never changed by SQL Anywhere.
Column: domain_id - in SYS.SYSDOMAIN - /* PK */ SMALLINT NOT NULL
The unique number assigned to each data type. These numbers cannot be changed.
Column: domain_name - in SYS.SYSDOMAIN - CHAR ( 128 ) NOT NULL
A string containing the data type normally found in the CREATE TABLE command, such as char or integer.
Column: type_id - in SYS.SYSDOMAIN - SMALLINT NOT NULL
The ODBC data type. This corresponds to "data_type" in the Transact-SQL-compatibility DBO.SYSTYPES table.-
Column: precision - in SYS.SYSDOMAIN - SMALLINT NULL
The number of significant digits that can be stored using this data type. The column value is NULL for non-numeric data types.

Table: SYS . SYSEXTENT

Undocumented, unused by SQL Anywhere and Adaptive Server Anywhere.
Column: file_id - in SYS.SYSEXTENT - /* PK FK */ SMALLINT NOT NULL
Undocumented, unused.
Column: extent_id - in SYS.SYSEXTENT - /* PK */ SMALLINT NOT NULL
Undocumented, unused.
Column: first_page - in SYS.SYSEXTENT - INTEGER NOT NULL
Undocumented, unused.
Column: last_page - in SYS.SYSEXTENT - INTEGER NOT NULL
Undocumented, unused.
Column: file_name - in SYS.SYSEXTENT - TEXT NOT NULL
Undocumented, unused.

Table: SYS . SYSFILE

Every database consists of one or more operating system files. Each file is recorded in SYSFILE.
Column: file_id - in SYS.SYSFILE - /* PK */ SMALLINT NOT NULL
Each file in a database is assigned a unique number. This file identifier is the primary key for SYSFILE. All system tables are stored in file_id 0.
Column: file_name - in SYS.SYSFILE - TEXT NOT NULL
The database name is stored when a database is created. This name is for informational purposes only.
Column: dbspace_name - in SYS.SYSFILE - CHAR ( 128 ) NOT NULL
Every file has a dbspace name that is unique. It is used in the CREATE TABLE command.

Table: SYS . SYSFKCOL

Each row of SYSFKCOL describes the association between a foreign column in the foreign table of a relationship and the primary column in the primary table.
Column: foreign_table_id - in SYS.SYSFKCOL - /* PK FK */ SMALLINT NOT NULL
The table number of the foreign table.
Column: foreign_key_id - in SYS.SYSFKCOL - /* PK FK */ SMALLINT NOT NULL
The key number of the FOREIGN KEY for the foreign table. Together, foreign_table_id and foreign_key_id uniquely identify one row in SYSFOREIGNKEY, and the table number for the primary table can be obtained from that row.
Column: foreign_column_id - in SYS.SYSFKCOL - /* PK FK */ SMALLINT NOT NULL
This column number, together with the foreign_table_id, identify the foreign column description in SYSCOLUMN.
Column: primary_column_id - in SYS.SYSFKCOL - SMALLINT NOT NULL
This column number, together with the primary_table_id obtained from SYSFOREIGNKEY, identify the primary column description in SYSCOLUMN.

Table: SYS . SYSFOREIGNKEY

A foreign key is a relationship between two tables—the foreign table and the primary table. Every foreign key is defined by one row in SYSFOREIGNKEY and one or more rows in SYSFKCOL. SYSFOREIGNKEY contains general information about the foreign key while SYSFKCOL identifies the columns in the foreign key and associates each column in the foreign key with a column in the primary key of the primary table.
Column: foreign_table_id - in SYS.SYSFOREIGNKEY - /* PK FK U */ SMALLINT NOT NULL
The table number of the foreign table.
Column: foreign_key_id - in SYS.SYSFOREIGNKEY - /* PK */ SMALLINT NOT NULL
Each foreign key has a foreign key number that is unique with respect to:
Column: primary_table_id - in SYS.SYSFOREIGNKEY - /* FK */ SMALLINT NOT NULL
The table number of the primary table.
Column: root - in SYS.SYSFOREIGNKEY - INTEGER NOT NULL
Foreign keys are stored in the database as B-trees. The root identifies the location of the root of the B-tree in the database file.
Column: check_on_commit - in SYS.SYSFOREIGNKEY - CHAR ( 1 ) NOT NULL
(Y/N) Indicate whether INSERT and UPDATE commands should wait until the next COMMIT command to check if foreign keys are valid. A foreign key is valid if, for each row in the foreign table, the values in the columns of the foreign key either contain the NULL value or match the primary key values in some row of the primary table.
Column: nulls - in SYS.SYSFOREIGNKEY - CHAR ( 1 ) NOT NULL
(Y/N) Indicate whether the columns in the foreign key are allowed to contain the NULL value. Note that this setting is independent of the nulls setting in the columns contained in the foreign key.
Column: role - in SYS.SYSFOREIGNKEY - /* U */ CHAR ( 128 ) NOT NULL
The name of the relationship between the foreign table and the primary table. Unless otherwise specified, the role name will be the same as the name of the primary table. The foreign table cannot have two foreign keys with the same role name.
Column: remarks - in SYS.SYSFOREIGNKEY - TEXT NULL
A comment string.

Table: SYS . SYSGROUP

There is one row in SYSGROUP for every member of every group. This table describes a many-to-many relationship between groups and members. A group may have many members and a user may be a member of many groups.
Column: group_id - in SYS.SYSGROUP - /* PK FK */ SMALLINT NOT NULL
The user number of group.
Column: group_member - in SYS.SYSGROUP - /* PK FK */ SMALLINT NOT NULL
The user number of a member.

Table: SYS . SYSINDEX

Each index in the database is described by one row in SYSINDEX. Each column in the index is described by one row in SYSIXCOL.
Column: table_id - in SYS.SYSINDEX - /* PK FK U */ SMALLINT NOT NULL
The table number uniquely identifies the table to which this index applies.
Column: index_id - in SYS.SYSINDEX - /* PK */ SMALLINT NOT NULL
Each index for one particular table is assigned a unique index number.
Column: root - in SYS.SYSINDEX - INTEGER NOT NULL
Indexes are stored in the database as B-trees. The root identifies the location of the root of the B-tree in the database file.
Column: file_id - in SYS.SYSINDEX - SMALLINT NOT NULL
The index is completely contained in the file with this file_id (see SYSFILE). In the current implementation of SQL Anywhere, this file is always the same as the file containing the table.
Column: unique - in SYS.SYSINDEX - CHAR ( 1 ) NOT NULL
(Y/N) Indicate whether the index is a unique index ("Y"), a non-unique index ("N"), or a unique constraint ("U"). A unique index prevents two rows in the indexed table from having the same values in the index columns.
Column: creator - in SYS.SYSINDEX - /* FK */ SMALLINT NOT NULL
The user number of the creator of the index. In the current implementation of SQL Anywhere, this user is always the same as the creator of the table identified by table_id.
Column: index_name - in SYS.SYSINDEX - /* U */ CHAR ( 128 ) NOT NULL
The name of the index. A user ID cannot have two indexes with the same name.
Column: remarks - in SYS.SYSINDEX - TEXT NULL
A comment string.

Table: SYS . SYSINFO

This table indicates the database characteristics as defined when the database was created using DBINIT. It always contains only one row.
Column: page_size - in SYS.SYSINFO - SMALLINT NOT NULL
The page size specified to DBINIT. The default value is 1024.
Column: encryption - in SYS.SYSINFO - CHAR ( 1 ) NOT NULL
(Y/N) The value "Y" or "N" depending on whether the -e switch was used with DBINIT.
Column: blank_padding - in SYS.SYSINFO - CHAR ( 1 ) NOT NULL
(Y/N) The value "Y" or "N" depending on whether the database was created to use blank padding for string comparisons in the database ( -b switch was used with DBINIT).
Column: case_sensitivity - in SYS.SYSINFO - CHAR ( 1 ) NOT NULL
(Y/N) The value "Y" or "N" depending on whether the -c switch was used with DBINIT. Case sensitivity affects value comparisons, but not table and column name comparisons. For example, if case sensitivity is enabled, the system catalog names such as SYSCATALOG must be specified in uppercase since that is how the name was spelled when it was created.
Column: default_collation - in SYS.SYSINFO - CHAR ( 10 ) NULL
A string corresponding to the collation_label in SYSCOLLATE corresponding to the collation sequence specified with DBINIT. The default value corresponds to the multilingual collation sequence (code page 850), which was the default prior to Watcom SQL 3.2. The collation sequence is used for all string comparisons, including searches for character strings as well as column and table name comparison.
Column: database_version - in SYS.SYSINFO - SMALLINT NOT NULL
A small integer value indicating the database format. As newer versions of SQL Anywhere become available, new features may require that the format of the database file change. The version number allows SQL Anywhere software to determine if this database was created with a newer version of the software and thus cannot be understood by the software in use.

Table: SYS . SYSIXCOL

Every index has one row in SYSIXCOL for each column in the index.
Column: table_id - in SYS.SYSIXCOL - /* PK FK */ SMALLINT NOT NULL
Identifies the table to which the index applies.
Column: index_id - in SYS.SYSIXCOL - /* PK FK */ SMALLINT NOT NULL
Identifies in which index this column is used. Together, table_id and index_id identify one index described in SYSINDEX.
Column: sequence - in SYS.SYSIXCOL - /* PK */ SMALLINT NOT NULL
Each column in an index is assigned a unique number starting at 0. The order of these numbers determines the relative significance of the columns in the index. The most important column has sequence number 0.
Column: column_id - in SYS.SYSIXCOL - /* FK */ SMALLINT NOT NULL
The column number identifies which column is indexed. Together, table_id and column_id identify one column in SYSCOLUMN.
Column: order - in SYS.SYSIXCOL - CHAR ( 1 ) NOT NULL
(A/D) Indicates whether this column in the index is kept in ascending or descending order.

Table: SYS . SYSLOGIN

This table contains all the User Profile names that can be used to connect to the database using an integrated logon. As a security measure, only users with DBA authority can view the contents of this table.
Column: integrated_login_id - in SYS.SYSLOGIN - /* PK */ CHAR ( 128 ) NOT NULL
Is a string value containing the User Profile name used to map to a user ID in the database. When a user successfully logs on using this User Profile name, and the database is enabled to accept integrated logons, the user can connect to the database without providing a user ID or password.
Column: login_uid - in SYS.SYSLOGIN - /* FK */ SMALLINT NOT NULL
s a foreign key to the system table SYSUSERPERM.
Column: remarks - in SYS.SYSLOGIN - TEXT NULL
Contains a comment string

Table: SYS . SYSOPTION

Options settings are stored in the SYSOPTION table by the SET command. Each user can have their own setting for each option. In addition, settings for the PUBLIC user ID define the default settings to be used for user IDs that do not have their own setting.
Column: user_id - in SYS.SYSOPTION - /* PK FK */ SMALLINT NOT NULL
The user number to whom this option setting applies.
Column: option - in SYS.SYSOPTION - /* PK */ CHAR ( 128 ) NOT NULL
The name of the option.
Column: setting - in SYS.SYSOPTION - TEXT NOT NULL
The current setting for the named option.

Table: SYS . SYSPROCEDURE

Each procedure in the database is described by one row in SYSPROCEDURE.
Column: proc_id - in SYS.SYSPROCEDURE - /* PK */ SMALLINT NOT NULL
Each procedure is assigned a unique number (the procedure number) that is the primary key for SYSPROCEDURE.
Column: creator - in SYS.SYSPROCEDURE - /* FK U */ SMALLINT NOT NULL
This user number identifies the owner of the procedure. The name of the user can be found by looking in SYSUSERPERM.
Column: proc_name - in SYS.SYSPROCEDURE - /* U */ CHAR ( 128 ) NOT NULL
The name of the procedure. One creator cannot have two procedures with the same name.
Column: proc_defn - in SYS.SYSPROCEDURE - TEXT NULL
The command used to create the procedure.
Column: remarks - in SYS.SYSPROCEDURE - TEXT NULL
A comment string.
Column: replicate - in SYS.SYSPROCEDURE - CHAR ( 1 ) NOT NULL
(Y/N) Holds a Y if the procedure is a primary data source in a Replication Server installation, or an N if not.

Table: SYS . SYSPROCPARM

Each parameter to a procedure in the database is described by one row in SYSPROCEDURE.
Column: proc_id - in SYS.SYSPROCPARM - /* PK FK */ SMALLINT NOT NULL
The procedure number uniquely identifies the procedure to which this parameter belongs.
Column: parm_id - in SYS.SYSPROCPARM - /* PK */ SMALLINT NOT NULL
Each procedure starts numbering parameters at 1. The order of parameter numbers corresponds to the order in which they were defined.
Column: parm_type - in SYS.SYSPROCPARM - SMALLINT NOT NULL
The type of parameter will be one of the following:
Column: parm_mode_in - in SYS.SYSPROCPARM - CHAR ( 1 ) NOT NULL
(Y/N) Indicate whether this parameter supplies a value to the procedure (IN or INOUT parameters).
Column: parm_mode_out - in SYS.SYSPROCPARM - CHAR ( 1 ) NOT NULL
(Y/N) Indicate whether this parameter returns a value from the procedure (OUT or INOUT parameters).
Column: domain_id - in SYS.SYSPROCPARM - /* FK */ SMALLINT NOT NULL
Identify the data type for the parameter by the data type number listed in the SYSDOMAIN table.
Column: width - in SYS.SYSPROCPARM - SMALLINT NOT NULL
This column contains the length of string parameters, the precision of numeric parameters, and the number of bytes of storage for all other data types.
Column: scale - in SYS.SYSPROCPARM - SMALLINT NOT NULL
The number of digits after the decimal point for numeric data type parameters, and zero for all other data types.
Column: parm_name - in SYS.SYSPROCPARM - CHAR ( 128 ) NOT NULL
The name of the parameter.
Column: remarks - in SYS.SYSPROCPARM - TEXT NULL
A comment string.
Column: default - in SYS.SYSPROCPARM - TEXT NULL
The default value for the parameter, held as a string.

Table: SYS . SYSPROCPERM

Only users who have been granted permission can call a procedure. Each row of the SYSPROCPERM table corresponds to one user granted permission to call one procedure.
Column: proc_id - in SYS.SYSPROCPERM - /* PK FK */ SMALLINT NOT NULL
The procedure number uniquely identifies the procedure for which permission has been granted.
Column: grantee - in SYS.SYSPROCPERM - /* PK FK */ SMALLINT NOT NULL
The user number of the user ID receiving the permission.

Table: SYS . SYSPUBLICATION

Each row describes a SQL Remote publication.
Column: publication_id - in SYS.SYSPUBLICATION - /* PK */ SMALLINT NOT NULL
A unique identifying number for the publication.
Column: creator - in SYS.SYSPUBLICATION - /* FK U */ SMALLINT NOT NULL
The owner of the publication.
Column: publication_name - in SYS.SYSPUBLICATION - /* U */ CHAR ( 128 ) NOT NULL
The name of the publication, which must be a valid identifier.
Column: remarks - in SYS.SYSPUBLICATION - TEXT NULL
Descriptive comments.

Table: SYS . SYSREMOTETYPE

Each row describes one of the SQL Remote message types, including the publisher address.
Column: type_id - in SYS.SYSREMOTETYPE - /* PK */ SMALLINT NOT NULL
An identification number for the message type.
Column: type_name - in SYS.SYSREMOTETYPE - /* U */ CHAR ( 128 ) NOT NULL
The message type. There is a separate row for each of the following:
Column: publisher_address - in SYS.SYSREMOTETYPE - TEXT NOT NULL
The publisher's address for the message type type_name.
Column: remarks - in SYS.SYSREMOTETYPE - TEXT NULL
A comment string.

Table: SYS . SYSREMOTEUSER

Each row describes a userid with REMOTE permissions (a subscriber), together with the status of SQL Remote messages sent to and from that user.
Column: user_id - in SYS.SYSREMOTEUSER - /* PK FK */ SMALLINT NOT NULL
The user ID of the user with REMOTE permissions.
Column: consolidate - in SYS.SYSREMOTEUSER - CHAR ( 1 ) NOT NULL
(R/C) The column contains either an R to indicate a user granted REMOTE permissions, or a C to indicate a user granted CONSOLIDATE permissions.
Column: type_id - in SYS.SYSREMOTEUSER - /* FK U */ SMALLINT NOT NULL
Identifies which of the of the message systems supported by SQL Remote is to be used to send messages to this user.
Column: address - in SYS.SYSREMOTEUSER - /* U */ TEXT NOT NULL
The address to which SQL Remote messages are to be sent. The address must be appropriate for the address_type.
Column: frequency - in SYS.SYSREMOTEUSER - /* X */ CHAR ( 1 ) NOT NULL
How frequently SQL Remote messages are to be sent.
Column: send_time - in SYS.SYSREMOTEUSER - /* X */ TIME NULL
The next time messages are to be sent to this user.
Column: log_send - in SYS.SYSREMOTEUSER - NUMERIC ( 20 ) NOT NULL
Messages are sent only to subscribers for whom log_send is greater than log_sent.
Column: time_sent - in SYS.SYSREMOTEUSER - DATETIME NULL
The time the most recent message was sent to this subscriber.
Column: log_sent - in SYS.SYSREMOTEUSER - NUMERIC ( 20 ) NOT NULL
The log offset for the most recently sent operation.
Column: confirm_sent - in SYS.SYSREMOTEUSER - NUMERIC ( 20 ) NOT NULL
The log offset for the most recently confirmed operation from this subscriber.
Column: send_count - in SYS.SYSREMOTEUSER - INTEGER NOT NULL
How many SQL Remote messages have been sent.
Column: resend_count - in SYS.SYSREMOTEUSER - INTEGER NOT NULL
Counter to ensure messages are applied only once at the subscriber database.
Column: time_received - in SYS.SYSREMOTEUSER - DATETIME NULL
The time the most recent message was received from this subscriber.
Column: log_received - in SYS.SYSREMOTEUSER - NUMERIC ( 20 ) NOT NULL
The log offset in the subscriber's database for the operation most recently received at the current database.
Column: confirm_received - in SYS.SYSREMOTEUSER - NUMERIC ( 20 ) NULL
The log offset in the subscriber's database for the most recent operation for which a confirmation message has been sent.
Column: receive_count - in SYS.SYSREMOTEUSER - INTEGER NOT NULL
How many messages have been received.
Column: rereceive_count - in SYS.SYSREMOTEUSER - INTEGER NOT NULL
Counter to ensure messages are applied only once at the current database.

Table: SYS . SYSSQLSERVERTYPE

This table contains information relating to compatibility with Adaptive Server Enterprise.
Column: ss_user_type - in SYS.SYSSQLSERVERTYPE - /* PK */ SMALLINT NOT NULL
A smallint field describing the Adaptive Server Enterprise user type
Column: ss_domain_id - in SYS.SYSSQLSERVERTYPE - SMALLINT NOT NULL
A smallint field describing the Adaptive Server Enterprise domain id.
Column: ss_type_name - in SYS.SYSSQLSERVERTYPE - VARCHAR ( 30 ) NOT NULL
Contains the Adaptive Server Enterprise type name.
Column: primary_sa_domain_id - in SYS.SYSSQLSERVERTYPE - SMALLINT NOT NULL
A smallint field containing the Adaptive Server Anywhere primary domain id.
Column: primary_sa_user_type - in SYS.SYSSQLSERVERTYPE - SMALLINT NULL
A smallint field containing the Adaptive Server Anywhere primary user type.

Table: SYS . SYSSUBSCRIPTION

Each row describes a subscription from one user ID (which must have REMOTE permissions) to one publication.
Column: publication_id - in SYS.SYSSUBSCRIPTION - /* PK FK */ SMALLINT NOT NULL
The identifier for the publication to which the user ID is subscribed.
Column: user_id - in SYS.SYSSUBSCRIPTION - /* PK FK */ SMALLINT NOT NULL
The user ID that is subscribed to the publication.
Column: subscribe_by - in SYS.SYSSUBSCRIPTION - /* PK */ CHAR ( 128 ) NOT NULL
For publications with a SUBSCRIBE BY expression, this column holds the matching value for this subscription.
Column: created - in SYS.SYSSUBSCRIPTION - NUMERIC ( 20 ) NOT NULL
The offset in the transaction log at which the subscription was created.
Column: started - in SYS.SYSSUBSCRIPTION - NUMERIC ( 20 ) NULL
The offset in the transaction log at which the subscription was started.

Table: SYS . SYSTABLE

Each row of SYSTABLE describes one table or view in the database.
Column: table_id - in SYS.SYSTABLE - /* PK */ SMALLINT NOT NULL
Each table or view is assigned a unique number (the table number) that is the primary key for SYSTABLE.
Column: file_id - in SYS.SYSTABLE - /* FK */ SMALLINT NOT NULL
The file number indicates which database file contains the table. The file_id is a FOREIGN KEY for SYSFILE.
Column: count - in SYS.SYSTABLE - INTEGER NOT NULL
The number of rows in the table is updated during each successful CHECKPOINT. This number is used by SQL Anywhere when optimizing database access. The count is always 0 for a view
Column: first_page - in SYS.SYSTABLE - INTEGER NOT NULL
Each SQL Anywhere database is divided into a number of fixed size pages. This value identifies the first page containing information for this table, and is used internally to find the start of this table. The first_page is always 0 for a view.
Column: last_page - in SYS.SYSTABLE - INTEGER NOT NULL
The last page containing information for this table. The last_page is always 0 for a view.
Column: primary_root - in SYS.SYSTABLE - INTEGER NOT NULL
Primary keys are stored in the database as B-trees. The primary_root locates the root of the B-tree for the primary key for the table. It will be 0 for a view and for a table with no primary key.
Column: creator - in SYS.SYSTABLE - /* FK U */ SMALLINT NOT NULL
This user number identifies the owner of the table or view. The name of the user can be found by looking in SYSUSERPERM.
Column: table_name - in SYS.SYSTABLE - /* U */ CHAR ( 128 ) NOT NULL
The name of the table or view. One creator cannot have two tables or views with the same name.
Column: table_type - in SYS.SYSTABLE - CHAR ( 10 ) NOT NULL
This column will be "BASE" for base tables and "VIEW" for views. It will be "GBL TEMP" for global temporary tables and "LCL TEMP" for local temporary tables.
Column: view_def - in SYS.SYSTABLE - TEXT NULL
For a view, this column contains the create view command used to create the view. For a table, this column will contain any CHECK constraints for the table.
Column: remarks - in SYS.SYSTABLE - TEXT NULL
A comment string.
Column: replicate - in SYS.SYSTABLE - CHAR ( 1 ) NOT NULL
(Y/N) Holds a Y if the table is a primary data source in a Replication Server installation, or an N if not.

Table: SYS . SYSTABLEPERM

Permissions given by the GRANT command are stored in SYSTABLEPERM. Each row in this table corresponds to one table, one user ID granting the permission (grantor) and one user ID granted the permission (grantee).

There are several types of permission that can be granted. Each permission can have one of the following three values.

Permissions - The grantee might have been given permission for the same table by another grantor. If so, this information would be recorded in a different row of SYSTABLEPERM.
Column: stable_id - in SYS.SYSTABLEPERM - /* PK FK */ SMALLINT NOT NULL
The table number of the table or view to which the permissions apply.
Column: grantee - in SYS.SYSTABLEPERM - /* PK FK */ SMALLINT NOT NULL
The user number of the user ID receiving the permission.
Column: grantor - in SYS.SYSTABLEPERM - /* PK FK */ SMALLINT NOT NULL
The user number of the user ID granting the permission.
Column: ttable_id - in SYS.SYSTABLEPERM - /* FK */ SMALLINT NOT NULL
In the current version of SQL Anywhere, this table number is always the same as stable_id.
Column: selectauth - in SYS.SYSTABLEPERM - CHAR ( 1 ) NOT NULL
(Y/N/G) Indicate whether SELECT permission has been granted.
Column: insertauth - in SYS.SYSTABLEPERM - CHAR ( 1 ) NOT NULL
(Y/N/G) Indicate whether INSERT permission has been granted.
Column: deleteauth - in SYS.SYSTABLEPERM - CHAR ( 1 ) NOT NULL
(Y/N/G) Indicate whether DELETE permission has been granted.
Column: updateauth - in SYS.SYSTABLEPERM - CHAR ( 1 ) NOT NULL
(Y/N/G) Indicate whether UPDATE permission has been granted for all columns in the table. (Only UPDATE permission can be given on individual columns. All other permissions are for all columns in a table.)
Column: updatecols - in SYS.SYSTABLEPERM - CHAR ( 1 ) NOT NULL
(Y/N) Indicates whether UPDATE permission has only been granted for some of the columns in the table. If updatecols has the value Y, there will be one or more rows in SYSCOLPERM granting update permission for the columns in this table.
Column: alterauth - in SYS.SYSTABLEPERM - CHAR ( 1 ) NOT NULL
(Y/N/G) Indicate whether ALTER permission has been granted.
Column: referenceauth - in SYS.SYSTABLEPERM - CHAR ( 1 ) NOT NULL
(Y/N/G) Indicate whether REFERENCE permission has been granted.

Table: SYS . SYSTRIGGER

Each trigger in the database is described by one row in SYSTRIGGER. The table also contains triggers automatically created by the database for foreign key definitions which have a referential triggered action (such as ON DELETE CASCADE).
Column: trigger_id - in SYS.SYSTRIGGER - /* PK */ SMALLINT NOT NULL
Each trigger is assigned a unique number (the trigger number) that is the primary key for SYSTRIGGER.
Column: table_id - in SYS.SYSTRIGGER - /* FK U */ SMALLINT NOT NULL
The table number uniquely identifies the table to which this trigger belongs.
Column: event - in SYS.SYSTRIGGER - /* U */ CHAR ( 1 ) NOT NULL
The event or events that cause the trigger to fire. This single character value corresponds to the trigger event that was specified when the trigger was created.
Column: trigger_time - in SYS.SYSTRIGGER - /* U */ CHAR ( 1 ) NOT NULL
The time at which the trigger will fire. This single character value corresponds to the trigger time that was specified when the trigger was created.
Column: trigger_order - in SYS.SYSTRIGGER - /* U */ SMALLINT NULL
he order in which the trigger will fire. This determines the order that triggers are fired when there are triggers of the same type (insert, update, or delete) that fire at the same time (before or after).
Column: foreign_table_id - in SYS.SYSTRIGGER - /* FK U */ SMALLINT NULL
The foreign table number identifies the table containing a foreign key definition which has a referential triggered action (such as ON DELETE CASCADE).
Column: foreign_key_id - in SYS.SYSTRIGGER - /* FK U */ SMALLINT NULL
The foreign key number identifies the foreign key for the table referenced by foreign_table_id.
Column: referential_action - in SYS.SYSTRIGGER - CHAR ( 1 ) NULL
The action defined by a foreign key. This single character value corresponds to the action that was specified when the foreign key was created.
Column: trigger_name - in SYS.SYSTRIGGER - /* U */ CHAR ( 128 ) NULL
The name of the trigger. One table cannot have two triggers with the same name.
Column: trigger_defn - in SYS.SYSTRIGGER - TEXT NOT NULL
The command used to create the trigger.
Column: remarks - in SYS.SYSTRIGGER - TEXT NULL
A comment string.

Table: SYS . SYSTYPEMAP

The SYSTYPEMAP system table contains the compatibility mapping values for the SYSSQLSERVERTYPE system table.
Column: ss_user_type - in SYS.SYSTYPEMAP - SMALLINT NOT NULL
Contains the Adaptive Server Enterprise user type.
Column: sa_domain_id - in SYS.SYSTYPEMAP - /* FK */ SMALLINT NOT NULL
Contains the Adaptive Server Anywhere 6.0 domain_id.
Column: sa_user_type - in SYS.SYSTYPEMAP - SMALLINT NULL
Contains the Adaptive Server Anywhere 6.0 user type.
Column: nullable - in SYS.SYSTYPEMAP - CHAR ( 1 ) NULL
This field describes whether or not the type can or cannot be null.

Table: SYS . SYSUSERMESSAGES

Each row holds a user-defined message for an error condition.
Column: error - in SYS.SYSUSERMESSAGES - /* U */ INTEGER NOT NULL
A unique identifying number for the error condition.
Column: uid - in SYS.SYSUSERMESSAGES - SMALLINT NOT NULL
The user ID defining the message.
Column: description - in SYS.SYSUSERMESSAGES - VARCHAR ( 255 ) NOT NULL
The message corresponding to the error condition.
Column: langid - in SYS.SYSUSERMESSAGES - /* U */ SMALLINT NOT NULL
Reserved.

Table: SYS . SYSUSERPERM

Each row of SYSUSERPERM describes one user ID.

DBA permissions required - SYSUSERPERM contains passwords, and so DBA permissions are required to SELECT from the table.

When a database is initialized, the following user IDs are created:

There is no way to connect to the SYS or PUBLIC user IDs.
Column: user_id - in SYS.SYSUSERPERM - /* PK */ SMALLINT NOT NULL
Each new user ID is assigned a unique number (the user number) that is the primary key for SYSUSERPERM.
Column: user_name - in SYS.SYSUSERPERM - /* U */ CHAR ( 128 ) NOT NULL
A string containing the name for the user ID. Each userid must have a unique name.
Column: password - in SYS.SYSUSERPERM - BINARY ( 36 ) NULL
The password for the user ID. The password contains the NULL value for the special user IDs SYS and PUBLIC, preventing anyone from connecting to these user IDs.
Column: resourceauth - in SYS.SYSUSERPERM - CHAR ( 1 ) NOT NULL
(Y/N) Indicate whether the user has RESOURCE authority. Resource authority is required to create tables.
Column: dbaauth - in SYS.SYSUSERPERM - CHAR ( 1 ) NOT NULL
(Y/N) Indicate whether the user has DBA (database administrator) authority. DBA authority is very powerful, and should be restricted to as few user IDs as possible for security purposes.
Column: scheduleauth - in SYS.SYSUSERPERM - CHAR ( 1 ) NOT NULL
(Y/N) Indicate whether the user has SCHEDULE authority. This is currently not used by SQL Anywhere.
Column: publishauth - in SYS.SYSUSERPERM - CHAR ( 1 ) NOT NULL
(Y/N) Indicate whether the user has the SQL Remote publisher authority.
Column: remotedbaauth - in SYS.SYSUSERPERM - CHAR ( 1 ) NOT NULL
(Y/N) Indicate whether the user has the SQL Remote remote DBA authority.
Column: user_group - in SYS.SYSUSERPERM - CHAR ( 1 ) NOT NULL
(Y/N) Indicate whether the user is a group.
Column: remarks - in SYS.SYSUSERPERM - TEXT NULL
A comment string.

Table: SYS . SYSUSERTYPE

Each row holds a description of a user-defined data type.
Column: type_id - in SYS.SYSUSERTYPE - /* PK */ SMALLINT NOT NULL
A unique identifying number for the user-defined data type.
Column: creator - in SYS.SYSUSERTYPE - /* FK */ SMALLINT NOT NULL
The owner of the data type.
Column: domain_id - in SYS.SYSUSERTYPE - /* FK */ SMALLINT NOT NULL
Identifies the data type for the column by the data type number listed in the SYSDOMAIN table.
Column: nulls - in SYS.SYSUSERTYPE - CHAR ( 1 ) NOT NULL
(Y/N) A Y indicates that the user-defined data type does allow nulls. A N indicates that the data type does not allow nulls.
Column: width - in SYS.SYSUSERTYPE - SMALLINT NOT NULL
This column contains the length of string columns, the precision of numeric columns, and the number of bytes of storage for all other data types.
Column: scale - in SYS.SYSUSERTYPE - SMALLINT NOT NULL
The number of digits after the decimal point for numeric data type columns, and zero for all other data types.
Column: type_name - in SYS.SYSUSERTYPE - /* U */ CHAR ( 128 ) NOT NULL
The name for the data type, which must be a valid identifier.
Column: default - in SYS.SYSUSERTYPE - TEXT NULL
The default value for the data type.
Column: check - in SYS.SYSUSERTYPE - TEXT NULL
The CHECK condition for the data type.
Column: format_str - in SYS.SYSUSERTYPE - CHAR ( 128 ) NULL
Currently unused.