SYSTEM$ZEROCOPY_CONNECTOR_LIST_SHARES

functionnot supportedCore SQL functions

docs.snowflake.com ↗

System functions

Lists the data products that a Zero-Copy connector exposes, and shows which of them are already mounted as catalog-linked databases. The output is in JSON format. Use the name of a returned data product as the SHARE_NAME value when you create a catalog-linked database from the connector with CREATE DATABASE … LINKED_ZEROCOPY_CONNECTOR.

Syntax

SYSTEM$ZEROCOPY_CONNECTOR_LIST_SHARES('<connector_name>')

Parameters

NameRequiredDescription
connector_namerequiredThe name of the Zero-Copy connector. Specify it as a string literal enclosed in single quotes. You can use a fully qualified name (<db>.<schema>.<connector>) or a partially qualified name.

Returns

Returns a string that contains a JSON array, sorted by name. Each element describes one data product.

Usage notes

Access control requirements

A role used to execute this operation must have at least one privilege (USAGE, OPERATE, MODIFY, MONITOR, or OWNERSHIP) on the Zero-Copy connector. For instructions on creating a custom role with a specified set of privileges, see Creating custom roles. For general information about roles and privilege grants for performing SQL actions on securable objects, see Overview of Access Control.