DROP CONNECTION
statementsupportedReplication, failover & backupBusiness Critical+Removes a connection from 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
DROP CONNECTION [ IF EXISTS ] <name>
Parameters
| Name | Required | Description |
|---|---|---|
name | Specifies the identifier for the connection to drop. |
Usage notes
- Only account administrators (users with the ACCOUNTADMIN role) can execute this SQL command.
- A primary connection can’t be dropped if it has one or more secondary connections. To drop the primary connection, first promote a secondary connection to serve as the primary connection, and then drop the former primary connection. Alternatively, drop all of the secondary connections, and then drop the primary connection.
- When the IF EXISTS clause is specified and the target object doesn’t exist, the command completes successfully without returning an error.