How to find Invalid views on SAP Sybase IQ database
This section shows list of invalid view in IQ (SQL: “select U.user_name , T.table_name as object_name from
sysobject O, systab T, sysuser U where T.object_id=O.object_id and
U.user_id=T.creator and O.status=2 ”).
select U.user_name + '.' + T.table_name from sysobject O, systab T, sysuser U where T.object_id = O.object_id and U.user_id = T.creator and O.status = 2 /* Invalid */ and O.object_type = 2 /* views */
status
|
TINYINT
|
The status of the object. Values include:
|
object_type
|
TINYINT
|
Type of object. Values include:
|
Comments
Post a Comment