ALTER CONNECTION
Syntax
Note that not all connection options are mutable.
Connection options
Cloud storage
Metastores
Streaming systems
Databases
Rename connection
You can rename a connection with immediate effect using the following syntax:
Example
In the following example, the mssql_prod connection is renamed to mssql_prod_emea to clarify which server this connects to:
To view the details for a connection before or after you rename it, you can query the system.information_schema.connections table.
The following query performs a wildcard search to find all connections with a name prefix of mssql_.
This enables you to check the connection details to ensure you rename the correct object, or to find all connections you want to rename.
Last updated