INFORMATION.SCHEMA.VIEWCOLUMNUSAGE
Class INFORMATION.SCHEMA.VIEWCOLUMNUSAGE Extends %Library.Persistent [ ClassType = persistent, Final, Owner = {_PUBLIC}, SqlRowIdPrivate, SqlTableName = VIEW_COLUMN_USAGE, StorageStrategy = SQLStorage, System = 4 ]
Returns one row for each table column that is used in a view where the view and view column can be accessed by the current user in the current namespace.
Parameters
READONLY
Parameter READONLY = 1;
Properties
SchemaExact
Property SchemaExact As %String(MAXLEN = 128) [ Internal, Private, Required, SqlColumnNumber = 10 ];
ViewExact
Property ViewExact As %String(MAXLEN = 128) [ Internal, Private, Required, SqlColumnNumber = 11 ];
ViewColumnName
Property ViewColumnName As %String(MAXLEN = 128) [ Internal, Private, Required, SqlColumnNumber = 12 ];
SystemView
Property SystemView As %Integer [ Calculated, Internal, Private, Required, SqlColumnNumber = 14, SqlComputeCode = { set {*}=$s($e({VIEW_SCHEMA})="%"||({VIEW_SCHEMA}="INFORMATION_SCHEMA"):1,1:0) }, SqlComputed ];
Is the view a system view (1 or 0)
VIEWCATALOG
Property VIEWCATALOG As %String(MAXLEN = 128) [ Calculated, SqlColumnNumber = 2, SqlComputeCode = { set {*}=""}, SqlComputed, SqlFieldName = VIEW_CATALOG ];
View qualifier - always NULL in InterSystems IRIS
VIEWSCHEMA
Property VIEWSCHEMA As %String(COLLATION = "Upper", MAXLEN = 128) [ Required, SqlColumnNumber = 3, SqlFieldName = VIEW_SCHEMA ];
Name of schema that contains the view.
VIEWNAME
Property VIEWNAME As %String(COLLATION = "Upper", MAXLEN = 128) [ Required, SqlColumnNumber = 4, SqlFieldName = VIEW_NAME ];
Name of the view.
TABLECATALOG
Property TABLECATALOG As %String(MAXLEN = 128) [ Calculated, SqlColumnNumber = 5, SqlComputeCode = { set {*}=""}, SqlComputed, SqlFieldName = TABLE_CATALOG ];
Table qualifier - always NULL in InterSystems IRIS
TABLESCHEMA
Property TABLESCHEMA As %String(COLLATION = "Upper", MAXLEN = 128) [ Required, SqlColumnNumber = 6, SqlFieldName = TABLE_SCHEMA ];
Name of schema that contains the table.
TABLENAME
Property TABLENAME As %String(COLLATION = "Upper", MAXLEN = 128) [ Required, SqlColumnNumber = 7, SqlFieldName = TABLE_NAME ];
Name of the table.
COLUMNNAME
Property COLUMNNAME As %String(COLLATION = "Upper", MAXLEN = 128) [ Required, SqlColumnNumber = 8, SqlFieldName = COLUMN_NAME ];
Name of the column.