CREATE ZEROCOPY CONNECTOR

Creates a new Zero-Copy connector in the current or specified schema, or replaces an existing connector. A Zero-Copy connector is a schema-level object that holds the connection between your Snowflake account and a data partner: SAP® Business Data Cloud (SAP BDC), Salesforce Data Cloud, or Workday Data Cloud. After the connector is connected, you can mount the partner’s data as a read-only catalog-linked database.

A new connector is in the NEW state and isn’t connected to the partner. To connect it, see ALTER ZEROCOPY CONNECTOR.

See also:

ALTER ZEROCOPY CONNECTOR , DROP ZEROCOPY CONNECTOR , SHOW ZEROCOPY CONNECTORS , DESCRIBE ZEROCOPY CONNECTOR , CREATE DATABASE (zero-copy connector-linked)

Syntax

CREATE [ OR REPLACE ] ZEROCOPY CONNECTOR [ IF NOT EXISTS ] <name>
  PARTNER = { SAP_BDC | SALESFORCE | WORKDAY }
  [ COMMENT = '<string_literal>' ]

Required parameters

name

Specifies the identifier for the connector. The identifier must be unique for the schema in which you create the connector.

Use a fully qualified name (<db>.<schema>.<name>). Also use the fully qualified name when you create catalog-linked databases from the connector.

In addition, the identifier must start with an alphabetic character and cannot contain spaces or special characters unless the entire identifier string is enclosed in double quotes (for example, "My object"). Identifiers enclosed in double quotes are also case-sensitive.

For more information, see Identifier requirements.

PARTNER = { SAP_BDC | SALESFORCE | WORKDAY }

Specifies the data partner that the connector connects to. The value is case-insensitive.

Changing the partner of an existing connector isn’t supported.

Optional parameters

COMMENT = 'string_literal'

Specifies a comment for the connector.

Default: No value

Access control requirements

A role used to execute this operation must have the following privileges at a minimum:

PrivilegeObjectNotes
CREATE ZEROCOPY CONNECTORSchemaRequired to create a connector in the schema. By default, the owner role of a schema has this privilege.
USAGEDatabaseRequired to create objects in a schema of the database.
USAGESchemaRequired to create objects in the schema.

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.

Usage notes

  • For SAP BDC, an organization administrator must accept the SAP® BDC Connect for Snowflake terms for your organization before you can create a connector. A user with the ORGADMIN role accepts the terms once in Snowsight, under Admin » Terms.
  • By default, an account can have up to 200 Zero-Copy connectors. To increase the limit, contact your Snowflake account representative.
  • CREATE OR REPLACE drops the existing connector and creates a new one. The existing connector must be in the NEW, CONNECT_ERROR, DISCONNECTED, or DISCONNECT_ERROR state. To replace a connected connector, first drop its catalog-linked databases and run ALTER ZEROCOPY CONNECTOR … DISCONNECT.
  • Zero-Copy connectors don’t support UNDROP.

Examples

Create a connector for SAP BDC:

CREATE ZEROCOPY CONNECTOR IF NOT EXISTS my_db.my_schema.my_sap_connector
  PARTNER = SAP_BDC;

Create a connector for Salesforce Data Cloud, with a comment:

CREATE ZEROCOPY CONNECTOR my_db.my_schema.my_sfdc_connector
  PARTNER = SALESFORCE
  COMMENT = 'Salesforce Data Cloud connector for CRM data products';

Create a connector for Workday Data Cloud:

CREATE ZEROCOPY CONNECTOR my_db.my_schema.my_workday_connector
  PARTNER = WORKDAY;

Replace a connector that isn’t connected:

CREATE OR REPLACE ZEROCOPY CONNECTOR my_db.my_schema.my_workday_connector
  PARTNER = WORKDAY;