Categories:

System functions (System Information)

SYSTEM$GET_ZEROCOPY_CONNECTOR_CONFIG

Returns the connection details of a Zero-Copy connector that you provide to the partner when you set up the connection. The output is in JSON format.

Syntax

SYSTEM$GET_ZEROCOPY_CONNECTOR_CONFIG('<connector_name>')

Arguments

connector_name

The 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 object. The fields depend on the partner of the connector.

FieldPartnerDescription
partner_software_instance_identifierSAP® BDCThe identifier that you enter as the External System Instance Identifier when you provision SAP® BDC Connect for Snowflake in SAP for Me.
enrollment_codeSalesforceThe Enrollment ID that you give to your Salesforce administrator so that they can create the Data Share Target in Salesforce Data Cloud.
snowflake_oauth_issuerSalesforceThe token issuer that Salesforce trusts when Snowflake authenticates to Salesforce Data Cloud.
snowflake_oauth_subjectSalesforceThe token subject that Salesforce trusts when Snowflake authenticates to Salesforce Data Cloud.

Usage notes

  • For a Salesforce connector, you can call the function before the connector is connected. You need the enrollment code to connect it.
  • The function isn’t supported for Workday connectors, which have no connection details.

Access control requirements

A role used to execute this operation must have the OPERATE privilege 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.

Examples

Get the instance identifier of a SAP® BDC connector:

SELECT SYSTEM$GET_ZEROCOPY_CONNECTOR_CONFIG('my_db.my_schema.my_sap_connector');
{
  "partner_software_instance_identifier": "https://myorg-myaccount.snowflakecomputing.com"
}

Get the enrollment code of a Salesforce connector:

SELECT SYSTEM$GET_ZEROCOPY_CONNECTOR_CONFIG('my_db.my_schema.my_sfdc_connector');
{
  "enrollment_code": "a1b2c3d4-5678-4e9f-8a0b-1c2d3e4f5a6b",
  "snowflake_oauth_issuer": "https://oidc.example.snowflakecomputing.com",
  "snowflake_oauth_subject": "my_sfdc_connector_subject"
}