Member Junction
    Preparing search index...

    One FROM item a parsed statement reads: a table or view, or a table function.

    interface StatementRelation {
        FunctionName: string;
        IsCTEReference: boolean;
        SchemaName: string;
        TableName: string;
    }
    Index

    Properties

    FunctionName: string

    The table function's name; empty when the item is not a function call.

    IsCTEReference: boolean

    True when the item names a CTE that is in scope where it is read: an unqualified name that matches, by the dialect's identifier rules, a CTE declared by its own SELECT or an enclosing one. A schema, dbo included, always makes the item a real table or view.

    SchemaName: string

    The schema of the table or function as written, without quotes; empty when unqualified. A three-part name keeps its database (database.schema), so it never matches a view in this database.

    TableName: string

    The table or view name without quotes; empty when the item is not a table or view.