CREATE DATABASE

circle-info

Important Notice: Migration of Documentation Website

Please be advised that our documentation website is currently undergoing a migration to a new platform. To ensure you have access to the most up-to-date information, we kindly request that you visit our new documentation website located at:

Official Snowflake Snowconvert Documentationarrow-up-right

For any immediate assistance or if you encounter any issues, please contact our support team at [email protected]envelope.

Thank you for your understanding.

Grammar Syntax

CREATE DATABASE database_name 
[ { [ WITH ]
    [ OWNER [=] db_owner ]
    [ CONNECTION LIMIT { limit | UNLIMITED } ]
    [ COLLATE { CASE_SENSITIVE | CASE_INSENSITIVE } ]
    [ ISOLATION LEVEL { SERIALIZABLE | SNAPSHOT } ]
  }
  | { [ WITH PERMISSIONS ] FROM DATASHARE datashare_name ] OF [ ACCOUNT account_id ] NAMESPACE namespace_guid }
  | { FROM { { ARN '<arn>' } { WITH DATA CATALOG SCHEMA '<schema>' | WITH NO DATA CATALOG SCHEMA } }
             | { INTEGRATION '<integration_id>'} }
  | { IAM_ROLE  {default | 'SESSION' | 'arn:aws:iam::<account-id>:role/<role-name>' } }

For more information please refer to Redshift CREATE DATABASE documentationarrow-up-right.

Sample Source Patterns

Basic samples

Input Code:

Output Code:

Collate Clause

Input Code:

Output Code:

Connection Limit Clause

Input Code:

Output Code:

circle-exclamation

From ARN Clause

Input Code:

Output Code:

circle-exclamation

From Datashare Clause

Input Code

Output Code

circle-info

The transformation for Datashare is planned to be delivered in the future.

Owner Clause

Input Code

Output Code

circle-exclamation

Isolation Level Clause

Input Code

Output Code

circle-info

The transformation for Isolation Level is planned to be delivered in the future.

Last updated