https://docs.snowflake.com/en/sql-reference/sql/alter-database.
"ALTER DATABASE [ IF EXISTS ] <name> RENAME TO <new_db_name>"
"ALTER DATABASE [ IF EXISTS ] <name> SWAP WITH <target_db_name>"
The question does not mention anything about the source database and shared (target) database. If shared database is "d1.r1" and there is about changing its name, only, it seems that the answer is D (like in the first syntax from above).
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
37ceea2
2 months, 2 weeks ago