renameDatabase

Last updated: January 27, 2026

Renames an existing database in Snowflake. This operation changes the database identifier while preserving all schemas, tables, and other objects.

Note: Automatic rollback renames the database back to original name.

Known limitation: This change type does not support database inspection features (snapshot, diff, diff-changelog, and generate-changelog commands).

Available attributes

Attribute

Type

Description

Required

oldDatabaseName

String

Current name of the database to rename

Yes

newDatabaseName

String

New name for the database

Yes

ifExists

Boolean

Only execute if the database exists

No

loading

loading

loading

loading