SHOW SHARED CONTENT IN APPLICATION PACKAGE

statementsupportedNative apps, listings & sharing

docs.snowflake.com ↗

Shows all of the objects for which you have access privileges that have been shared from a Declarative Share application package. Support for Snowflake Declarative Shares is available to all accounts.

Syntax

supportedpartialnot supportednot scored

SHOW SHARED CONTENT IN APPLICATION PACKAGE <pkg_name> FOR VERSION <version_name>

Parameters

NameRequiredDescription
pkg_nameSpecifies the package (pkg_name) containing the shared objects.
FOR VERSION version_nameSpecifies the version (version_name) of the package containing the shared objects.

Usage notes

Output

The output of the command includes the following columns, which describe the properties and metadata of the object: Column | Description version_name | The automatically generated version name for the shared object. If the object is part of the live version, the value is LIVE. database_name | The name of the database containing the shared object. schema_name | The name of the schema containing the shared object. entity_name | The name of the shared object. entity_type | The type of the shared object, for example, TABLE, VIEW, or NOTEBOOK.

Access control requirements

This command requires a role with the relevant privilege on the entities returned. For example, if the application package contains a shared table, the role must have the USAGE privilege on the database and schema containing the table, and the SELECT privilege on the table.