The following transact-sql code will help you to find all defined rules in a Sybase ASE database.
select sysobjects.name as "rule name", object_name(syscolumns.id) as "table name", syscolumns.name as "column name" from sysobjects, syscolumns where object_name(syscolumns.domain)=sysobjects.name and sysobjects.type = 'R' go
The output displays the table and column to which the rules are bound.



















