SHOW SHARED CONTENT IN APPLICATION PACKAGE¶
Shows all of the objects for which you have access privileges that have been shared from a Declarative Share application package.
Syntax¶
Parameters¶
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.
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.
Usage notes¶
- User-defined functions (UDFs) and stored procedures are copied into the installed application and aren’t listed by this command. An empty result doesn’t mean that the manifest contains no logic objects.
- For an automated inventory check, download the manifest
for the version you’re inspecting and parse the
functions,procedures, and role declarations. These declarations describe the intended shared content, not whether a consumer can run it.
Examples¶
The following example shows how to use the SHOW SHARED CONTENT IN APPLICATION PACKAGE command to list all of the objects in a specific version of a Declarative Share application package.