CREATE CONNECTION

statementsupportedReplication, failover & backupBusiness Critical+

docs.snowflake.com ↗

Object: CONNECTION

Creates a new connection in the account. This command is part of the client redirect feature. It requires Business Critical Edition (or higher). To inquire about upgrading, please contact Snowflake Support. You use client redirect in combination with the account replication feature for business continuity and disaster recovery.

Syntax

supportedpartialnot supportednot scored

Primary Connection

CREATE CONNECTION [ IF NOT EXISTS ] <name>
  [ COMMENT = '<string_literal>' ]

Secondary Connection

CREATE CONNECTION [ IF NOT EXISTS ] <name>
  AS REPLICA OF <organization_name>.<account_name>.<name>
  [ COMMENT = '<string_literal>' ]

Parameters

NameRequiredDescription
namerequiredString that specifies the identifier (i.e. name) for the connection. It must conform to the following: Must start with an alphabetic character and may only contain letters, decimal digits (0-9), and underscores (_). For a primary connection, the name must be unique across connection names and account names in the organization. For a secondary connection, the name must match the name of its primary connection.
AS REPLICA OF organization_name.account_name.namerequiredSpecifies the identifier for a primary connection from which to create a replica (i.e. a secondary connection).
  • organization_name — Specifies the identifier for the organization.
  • account_name — Specifies the identifier for the account.
  • name — Specifies the identifier for the primary connection.
COMMENT = 'string_literal'optionalSpecifies a comment for the connection. Default: No value

Usage notes

Access control requirements

Only account administrators (users with the ACCOUNTADMIN role) can execute this SQL command.

See also

Referenced by