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.
Syntax¶
Required parameters¶
nameSpecifies 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.
SAP_BDC: SAP® Business Data Cloud. See Set Up SAP® BDC Connect for Snowflake Zerocopy Connector.SALESFORCE: Salesforce Data Cloud. See Set up the Salesforce Data Cloud Zerocopy Connector.WORKDAY: Workday Data Cloud. See Set up the Workday Data Cloud Zerocopy Connector.
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:
| Privilege | Object | Notes |
|---|---|---|
| CREATE ZEROCOPY CONNECTOR | Schema | Required to create a connector in the schema. By default, the owner role of a schema has this privilege. |
| USAGE | Database | Required to create objects in a schema of the database. |
| USAGE | Schema | Required 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 REPLACEdrops the existing connector and creates a new one. The existing connector must be in theNEW,CONNECT_ERROR,DISCONNECTED, orDISCONNECT_ERRORstate. 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 a connector for Salesforce Data Cloud, with a comment:
Create a connector for Workday Data Cloud:
Replace a connector that isn’t connected: