alterDatabaseProperties
Last updated: January 27, 2026
Alters properties on an existing database in Snowflake. Supports setting and unsetting configuration options including data retention, collation, logging levels, and storage policies.
Note: This change type does not support automatic rollback or database inspection features (snapshot, diff, diff-changelog, and generate-changelog commands).
Available attributes
Attribute | Type | Description | Required |
|---|---|---|---|
| String | Name of the database to alter | Yes |
| Boolean | Only alter if the database exists using | No |
SET properties
Attribute | Type | Description |
|---|---|---|
| Integer | Days to retain data for Time Travel (0-90) |
| Integer | Maximum days Time Travel retention can be extended |
| String | Comment describing the database |
| String | Default collation for objects (e.g., |
| String | Default compute pool for CPU notebooks |
| String | Default compute pool for GPU notebooks |
| String | Logging level: |
| String | Metric collection level: |
| String | Trace level: |
| String | Catalog synchronization settings |
| String | Base location prefix for database |
| String | Classification profile for the database |
| String | External volume for the database |
| String | Catalog identifier for the database |
| String | Event table for the database |
| String | Default warehouse for Streamlit notebooks |
| Boolean | Replace invalid UTF-8 characters |
| Boolean | Enable automatic data compaction |
| Boolean |
|
| String | Storage format policy: |
| String | Object visibility setting: |
UNSET properties
Attribute | Type | Description |
|---|---|---|
| Boolean | Unset data retention time |
| Boolean | Unset max data extension time |
| Boolean | Unset comment |
| Boolean | Unset default DDL collation |
| Boolean | Unset external volume |
| Boolean | Unset catalog |
| Boolean | Unset event table |
| Boolean | Unset replace invalid characters |
| Boolean | Unset log level |
| Boolean | Unset metric level |
| Boolean | Unset trace level |
| Boolean | Unset storage serialization policy |
| Boolean | Unset object visibility |
| Boolean | Unset catalog sync |
| Boolean | Unset replicable with failover groups |
| Boolean | Unset base location prefix |
| Boolean | Unset default Streamlit notebook warehouse |
| Boolean | Unset default notebook compute pool CPU |
| Boolean | Unset default notebook compute pool GPU |
| Boolean | Unset classification profile |
| Boolean | Unset enable data compaction |