Categories:

System functions (System Information)

SYSTEM$GET_ZEROCOPY_CONNECTOR_LINKED_DATABASE_CONFIG

Returns the Zero-Copy connector configuration of a catalog-linked database that was created from a Zero-Copy 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>')

Arguments

database_name

The 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.

FieldDescription
zerocopy_connectorFully qualified name of the Zero-Copy connector the database is mounted from.
zerocopy_partner_typePartner type of that connector, such as SALESFORCE, SAP_BDC, or WORKDAY.
legacy_salesforce_schema_aliasWhether each mounted share is also exposed under its Data Cloud V1 schema name. Returned only for a Salesforce connector.
salesforce_user_friendly_nameWhether each share’s schema also exposes the short-named views. Returned only for a Salesforce connector.

The two Salesforce fields are returned only for Salesforce databases.

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.

Examples

Get the Zero-Copy connector configuration for a catalog-linked database named my_sfdc_db:

SELECT SYSTEM$GET_ZEROCOPY_CONNECTOR_LINKED_DATABASE_CONFIG('my_sfdc_db');

An example output for a Salesforce connector:

{
  "zerocopy_connector": "MY_DB.MY_SCHEMA.MY_SFDC_CONNECTOR",
  "zerocopy_partner_type": "SALESFORCE",
  "legacy_salesforce_schema_alias": false,
  "salesforce_user_friendly_name": true
}

An example output for a SAP® BDC connector:

{
  "zerocopy_connector": "MY_DB.MY_SCHEMA.MY_SAP_CONNECTOR",
  "zerocopy_partner_type": "SAP_BDC"
}