Set up your workspace to use Databricks SQL
This getting started tutorial provides guidance for workspace admins who want to set up Databricks SQL for their workspace users. Databricks SQL lets you run all your SQL and BI applications at scale with better price and performance. It includes a unified governance model, open formats and APIs, and tools of your choice.
Requirements
To complete these tasks, you must be a workspace admin and your Databricks workspace must be on the Premium plan.
Step 1: Enable data access and configure parameters
Note
If your workspace is enabled for Unity Catalog, you don’t need to enable data access. Unity Catalog supports SQL Warehouses by default.
If your workspace is not enabled for Unity Catalog, you will need to either select or create an instance profile that the SQL warehouses uses to access storage. For instructions, see Enable data access configuration.
You can set workspace-level configuration parameters to apply to all SQL warehouses in your workspace. These parameters affect the behavior of Databricks SQL outside of the specified SQL syntax. These parameters control things like ANSI SQL enforcement, Photon usage, and SQL statement timeouts. See SQL configuration parameters.
Step 2: Grant access to Databricks SQL
If a user doesn’t have access to Databricks SQL, a workspace admin must grant them the entitlement. By default, all new users have access to Databricks SQL.
Step 3: Create a SQL warehouse
A SQL warehouse is a simplified compute resource that lets you run SQL commands on data objects within Databricks SQL.
To create a SQL warehouse:
Click SQL Warehouses in the sidebar then Create SQL Warehouse.
Enter a Name for the warehouse.
Accept the default warehouse settings or edit them.
Click Create.
The permissions modal appears, where you can give users or groups access to the warehouse.
To learn more about creating and managing SQL warehouses, see Configure SQL warehouses.