Del via


Create a SQL warehouse

Workspace admins and sufficiently privileged users can configure and manage SQL warehouses. This article outlines how to create, edit, and monitor existing SQL warehouses.

You can also create SQL warehouses using the SQL warehouse API, or Terraform.

Databricks recommends using serverless SQL warehouses when available.

Note

Most users cannot create SQL warehouses, but can restart any SQL warehouse they can connect to. See Connect to a SQL warehouse.

Requirements

SQL warehouses have the following requirements:

  • For classic or pro SQL warehouses, your Azure account must have adequate vCPU quota. The default vCPU quota is usually adequate to create a serverless SQL warehouse but might not be enough to scale the SQL warehouse or to create additional warehouses. See Required Azure vCPU quota for classic and pro SQL warehouses. You can request additional vCPU quota. Your Azure account may have limitations on how much vCPU quota you can request. Contact your Azure account team for more information.

Create a SQL warehouse

To create a SQL warehouse using the web UI:

  1. Click SQL Warehouses in the sidebar.
  2. Click Create SQL Warehouse.
  3. Enter a Name for the warehouse.
  4. (Optional) Configure warehouse settings. See Configure SQL warehouse settings.
  5. (Optional) Configure advanced options. See Advanced options.
  6. Click Create.
  7. (Optional) Configure access to the SQL warehouse. See Manage a SQL warehouse.

Your created warehouse starts automatically.

Default SQL warehouse config

Configure SQL warehouse settings

You can modify the following settings while creating or editing a SQL warehouse:

Advanced options

Configure the following advanced options by expanding the Advanced options area when you create a new SQL warehouse or edit an existing SQL warehouse. You can also configure these options using the SQL Warehouse API.

  • Tags: Tags allow you to monitor the cost of cloud resources used by users and groups in your organization. You specify tags as key-value pairs.

  • Unity Catalog: If Unity Catalog is enabled for the workspace, it is the default for all new warehouses in the workspace. If Unity Catalog is not enabled for your workspace, you do not see this option. See What is Unity Catalog?.

  • Channel: Use the Preview channel to test new functionality, including your queries and dashboards, before it becomes the Databricks SQL standard.

    The release notes list what’s in the latest preview version.

Important

Databricks recommends against using a preview version for production workloads. Because only workspace admins can view a warehouse’s properties, including its channel, consider indicating that a Databricks SQL warehouse uses a preview version in that warehouse’s name to prevent users from using it for production workloads.

Manage a SQL warehouse

Workspace admins and uses with CAN MANAGE privileges on a SQL warehouse can complete the following tasks on an existing SQL warehouse:

Note

Contact your Databricks representative to restore a deleted warehouses within 14 days.