GET_OBJECT_REFERENCES

functionsupportedDatabases & schemas

docs.snowflake.com ↗

Table functions

Returns a list of objects that a specified object references. Input is currently limited to the name of a view. The following table identifies which types of database objects are currently returned in the output:

Syntax

GET_OBJECT_REFERENCES(
  DATABASE_NAME => '<string>'
  , SCHEMA_NAME => '<string>'
  , OBJECT_NAME => '<string>' )

Parameters

NameRequiredDescription
DATABASE_NAME => 'string'requiredName of the database in which the schema and object reside.
SCHEMA_NAME => 'string'requiredName of the schema in which the object resides.
OBJECT_NAME => 'string'requiredName of the object. Currently limited to the name of a view (secure or not secure).

Returns

The function returns the following columns:

Usage notes