---
title: SQL warehouse admin settings
description: Configure workspace level permissions and settings for SQL warehouses.
canonical_url: https://docs.databricks.com/aws/en/admin/sql/
---

# SQL warehouse admin settings

This article explains the SQL warehouse settings and access controls available to workspace admins.

Databricks recommends retaining the default settings for all workspace-level configurations for SQL warehouses. These settings assume that workspace admins are responsible for creating and configuring all SQL warehouses and that you use Unity Catalog for data governance.

Workspace administrators can configure the following settings for a Databricks workspace:

* Revoke all access to SQL warehouses.
* Grant the ability to create SQL warehouses.
* Configure default parameters that control the SQL warehouse compute environment.
* Configure data access policies for SQL warehouses.
* Set a default warehouse.

> [!NOTE]
>
> By default, all users have access to Databricks SQL. To onboard users to Databricks SQL, perform the following actions:
>
> 1. Deploy a SQL warehouse. See [Create a SQL warehouse](https://docs.databricks.com/aws/en/compute/sql-warehouse/create.md).
> 2. Grant users access to the SQL warehouse. See [Manage a SQL warehouse](https://docs.databricks.com/aws/en/compute/sql-warehouse/create.md#manage).
> 3. Grant access to data using Unity Catalog. See [Data access configurations](https://docs.databricks.com/aws/en/admin/sql/data-access-configuration.md).
>
> By default, new workspaces have serverless SQL warehouses enabled in supported regions. See [Set up serverless SQL warehouses](https://docs.databricks.com/aws/en/admin/sql/serverless.md).

## Revoke access to SQL warehouses

You can revoke access to SQL warehouses for a user, service principal, or group by unassigning the `Databricks SQL access` entitlement. See [Manage entitlements](https://docs.databricks.com/aws/en/security/auth/entitlements.md).

## Grant SQL warehouse creation privileges

You can grant SQL warehouse creation privileges to a user, service principal, or group by assigning the `Allow unrestricted cluster creation` entitlement. See [Manage entitlements](https://docs.databricks.com/aws/en/security/auth/entitlements.md).

> [!NOTE]
>
> The `Allow unrestricted cluster creation` entitlement grants permission to create both classic compute resources (all-purpose and job clusters) and SQL warehouses. There is no separate entitlement for SQL warehouse creation.

## <a id="params" />Configure SQL parameters

> [!NOTE]
>
> This setting applies to all SQL warehouses in the workspace. It does not apply to serverless compute for notebooks and jobs.

To configure all warehouses with SQL parameters:

1. Click your username in the top bar of the workspace and select **Settings** from the drop-down menu.

2. Click **Compute** under the **Settings** heading on the left side of the screen.

3. Click **Manage** next to **SQL warehouses and serverless compute**.

4. In the **SQL Configuration Parameters** textbox, specify one key-value pair per line. Separate the name of the parameter from its value using a space. For example, to enable `ANSI_MODE`:

   ![Screenshot that shows ANSI\_MODE set to true for all SQL warehouses](https://docs.databricks.com/aws/en/images/sql/global-sql-config-parameters.png)

5. Click **Save**.

> [!IMPORTANT]
>
> When you change a SQL configuration parameter, all running SQL warehouses are automatically restarted.

For a general overview of the available SQL configuration parameters, see [Configuration parameters](https://docs.databricks.com/aws/en/sql/language-manual/sql-ref-parameters.md).

To configure all SQL warehouses using the REST API, see [SQL Warehouses API](https://docs.databricks.com/api/workspace/warehouses).

To set a statement timeout on a single SQL warehouse rather than all warehouses in the workspace, see [Statement timeout](https://docs.databricks.com/aws/en/compute/sql-warehouse/warehouse-behavior.md#statement-timeout).

## Configure data access policies for SQL warehouses

Databricks recommends managing data access policies using Unity Catalog.

Some data sources might require additional privileges. See [Data access configurations](https://docs.databricks.com/aws/en/admin/sql/data-access-configuration.md).

> [!NOTE]
>
> When you configure data access policies other than Unity Catalog, legacy table ACLs also apply. See [Enable Hive metastore table access control on a cluster (legacy)](https://docs.databricks.com/aws/en/data-governance/unity-catalog/access-control/table-acls/table-acl.md).

## <a id="default-warehouse" />Set a default SQL warehouse for the workspace

Setting a default warehouse helps align SQL workloads with appropriately sized compute resources. The default SQL warehouse in a workspace is automatically selected in most SQL authoring surfaces, including the SQL editor, AI/BI dashboards, Genie, Alerts, and Catalog Explorer.

Individual users can override this setting by selecting a different warehouse before running a query. They can also define their own user-level default warehouse to apply across their sessions.

To set a default warehouse for your workspace:

1. Click your username in the top bar of the workspace and select **Settings** from the drop-down menu.
2. Under **Settings**, click **Compute**.
3. Use the drop-down menu next to **Default warehouse** to select a new default. To keep the current behavior, leave the setting as **Last selected**.

Workspace admins can use the [SQL Warehouses API](https://docs.databricks.com/api/workspace/warehouses) to view and modify default warehouse settings for any user. See [List default warehouse overrides](https://docs.databricks.com/api/workspace/warehouses/listdefaultwarehouseoverrides).

These settings can also be managed using Terraform. See [databricks\_warehouses\_default\_warehouse\_override Data Source](https://registry.terraform.io/providers/databricks/databricks/latest/docs/data-sources/warehouses_default_warehouse_override).

## <a id="transfer-ownership" />Transfer ownership of a SQL warehouse

The user or service principal you transfer ownership of a SQL warehouse to must have the `Allow unrestricted cluster creation` entitlement.

1. As a workspace admin, log in to your Databricks workspace.
2. Click **SQL Warehouses** in the sidebar.
3. In a warehouse row, click ![Kebab menu icon.](https://docs.databricks.com/aws/en/images/product-icons/OverflowIcon.svg) the kebab menu at the far right and select **Permissions**. The SQL warehouse permissions display.
4. Click the gear icon at the top right and click **Assign new owner**.
5. Select the user or service principal to assign ownership to. Groups cannot be assigned ownership of a SQL warehouse.
6. Click **Confirm**.
