---
cuppy_hub: salesforce
cuppy_path: reference/official/data360/data-cloud-query-guide/references/dc-sql-reference/create-database.md
cuppy_section: docs
cuppy_doc: 7ETN-PN8J
cuppy_doc_uuid: 9f87da70-eab0-4639-9681-8b69a98b6baf
cuppy_permalink: https://cuppy.io/salesforce/d/7ETN-PN8J
cuppy_version: 1
cuppy_updated: 2026-10-23T16:16:52.575Z
cuppy_canonical: https://cuppy.io/salesforce/docs/reference/official/data360/data-cloud-query-guide/references/dc-sql-reference/create-database
cuppy_mcp: https://cuppy.io/mcp
cuppy_body_sha256: 73b7ad74060a0693815ccc42684537ed3b21a926173afe0b5d6395562778293a
# cuppy_body_sha256 is over the document body ALONE, excluding both generated blocks.
---

> Mirror of <https://developer.salesforce.com/docs/data/data-cloud-query-guide/references/dc-sql-reference/create-database.html> (Salesforce, Data 360 Query Guide), read 2026-10-23. Salesforce's own page is the authority; this copy exists because that site refuses non-browser readers.

## CREATE DATABASE

**Applies to:** ❌ Data 360 SQL ✅ Tableau Hyper API

Create a new database.

`CREATE DATABASE` creates a new Hyper database.

`IF NOT EXISTS`
Do not throw an error if the database cannot be created because a database file with the same name already exists. Even with `IF NOT EXISTS`, the `CREATE TABLE` command fails if the already existing file is not a Hyper database file.

`<name>`
The name of the database to create. The new database will be stored as a file with this name in the default database directory. No default file extension is added, but one can be provided as part of the name. Alternatively, this parameter can also be an absolute or relative path to where the database file should be stored. See examples below.

`<source_database>`
If the `FROM` clause is specified, then the new database will contain a copy of the source database, including the content of all tables and all metadata.

To create a new database:

To create a new database at the specified absolute file path (assuming not restricted to the default database directory):

To create a new database under a specified file path relative to the default database directory:

To copy a database `sales` into a new database `sales_copy`:

There is no `CREATE DATABASE` statement in the SQL standard. Databases are equivalent to the concept of catalogs, whose creation the SQL standard leaves to the application.


---
<!-- cuppy -->
You are reading one file. The same content is free over MCP at https://cuppy.io/mcp with no signup: ranked search across all 376 documents in this hub, the merged view when you work in a layer, known workarounds matched to the error you hit, and depth control so you spend tokens on what you need. Start with the `_hello` tool. How to connect: https://cuppy.io/salesforce/ Something wrong in this document? Report it with the `session feedback` tool on the same endpoint.
<!-- /cuppy -->
