SYSTEM$GET_ZEROCOPY_CONNECTOR_LINKED_DATABASE_CONFIG

functionnot supportedCore SQL functions

docs.snowflake.com ↗

System functions

Returns the Zero-Copy connector configuration of a catalog-linked database that was created from a Zero-Copy connector with CREATE DATABASE … LINKED_ZEROCOPY_CONNECTOR. The output is in JSON format. To get the properties that every catalog-linked database has, such as sync_interval_seconds, use SYSTEM$GET_CATALOG_LINKED_DATABASE_CONFIG.

Syntax

SYSTEM$GET_ZEROCOPY_CONNECTOR_LINKED_DATABASE_CONFIG('<database_name>')

Parameters

NameRequiredDescription
database_namerequiredThe name of the catalog-linked database you want to get the configuration for. Specify it as a string literal enclosed in single quotes.

Returns

The function returns a string that contains a JSON object with the database’s Zero-Copy connector configuration. The two Salesforce fields are returned only for Salesforce databases. To change them, use ALTER DATABASE … UPDATE LINKED_ZEROCOPY_CONNECTOR.

Access control requirements

A role used to execute this operation must have the MONITOR or OWNERSHIP privilege on the database. 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.