---
title: Unity Catalog connections
description: Learn about Unity Catalog connections, the securable objects that store endpoint and credential information for accessing external systems from Databricks.
canonical_url: https://docs.databricks.com/aws/en/connect/uc-connections
---

# Unity Catalog connections

A *connection* is a securable object in Unity Catalog that stores the endpoint and credentials needed to access an external system. A connection includes:

* The endpoint or URL of the external system
* Authentication credentials
* Configuration parameters
* Owner and metadata

Connections are not the same as [storage credentials](https://docs.databricks.com/aws/en/connect/unity-catalog/cloud-storage/index.md) (for cloud object storage) or [service credentials](https://docs.databricks.com/aws/en/connect/unity-catalog/cloud-services/index.md) (for non-storage cloud services). For more information, see [What is Unity Catalog?](https://docs.databricks.com/aws/en/data-governance/unity-catalog/index.md) and [Connection](https://docs.databricks.com/aws/en/data-governance/unity-catalog/securable-objects.md#connection).

## <a id="connection-types" /> Connection types

Databricks supports several connection types, each designed for a different integration pattern. The type you create determines how the connection is consumed and what governance it provides.

### Managed ingestion connections

Managed ingestion connections power Lakeflow Connect pipelines for fully-managed, serverless ingestion from external sources into Delta tables.

See [Connect to managed ingestion sources](https://docs.databricks.com/aws/en/connect/managed-ingestion.md) and [Lakeflow Connect connector concepts](https://docs.databricks.com/aws/en/ingestion/lakeflow-connect/index.md).

### Query federation connections

Query federation connections enable read-only queries against external databases without moving data. They use foreign catalogs that mirror the external database structure. Queries are pushed down to the external database using JDBC.

See [What is query federation?](https://docs.databricks.com/aws/en/query-federation/database-federation.md).

### Catalog federation connections

Catalog federation connections connect external catalogs (a Hive Metastore, AWS Glue, or Snowflake Horizon Catalog) to Databricks. Unity Catalog crawls the external catalog metadata and auto-populates a foreign catalog, so you can query data directly in the source file storage.

See [What is catalog federation?](https://docs.databricks.com/aws/en/query-federation/catalog-federation.md).

### JDBC connections

JDBC connections provide read and write access to external databases using JDBC driver JARs with the Spark Data Source API or the Remote Query SQL API.

See [JDBC connection](https://docs.databricks.com/aws/en/connect/jdbc-connection.md).

### HTTP connections

HTTP connections enable communication with external HTTP services through a Databricks-managed proxy. They power external REST APIs, integrate with Unity Catalog Model Context Protocol (MCP) Services for agent tools, and connect external service policies to third-party guardrail vendors.

See [Connect to external HTTP services](https://docs.databricks.com/aws/en/query-federation/http.md), [External MCP servers](https://docs.databricks.com/aws/en/ai-gateway/register-mcp-service.md), and [Enforce an external guardrail](https://docs.databricks.com/aws/en/data-governance/unity-catalog/service-policies/external-policies.md).

## <a id="choose-a-connection-type" /> Choose a connection type

The following table compares connection types to help you choose the right one for your use case.

| Type                                                                                            | Use case                                                                | Read             | Write | Governance level |
| ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------- | ---------------- | ----- | ---------------- |
| [Managed ingestion](https://docs.databricks.com/aws/en/connect/managed-ingestion.md)            | Ingest data from SaaS apps or databases into Delta tables               | Ingests to Delta | N/A   | Connection-level |
| [Query federation](https://docs.databricks.com/aws/en/query-federation/database-federation.md)  | Query an external database in place without copying data                | Yes              | No    | Table-level      |
| [Catalog federation](https://docs.databricks.com/aws/en/query-federation/catalog-federation.md) | Connect external catalogs to query data directly in source file storage | Yes              | No    | Table-level      |
| [JDBC](https://docs.databricks.com/aws/en/connect/jdbc-connection.md)                           | Read and write to an external database with a specific JDBC driver      | Yes              | Yes   | Connection-level |
| [HTTP](https://docs.databricks.com/aws/en/query-federation/http.md)                             | Connect to external HTTP APIs, MCP servers, or agent tools              | N/A              | N/A   | Connection-level |

## <a id="create-a-connection" /> Create a connection

You can create connections using SQL, the Catalog Explorer UI (**Catalog** > **Create** > **Create a connection**), or the REST API and Databricks CLI.

The SQL `CREATE CONNECTION` statement supports the following TYPE values: `DATABRICKS`, `HTTP`, `MYSQL`, `POSTGRESQL`, `REDSHIFT`, `SNOWFLAKE`, `SQLDW`, `SQLSERVER`. SaaS ingestion types (such as Salesforce, HubSpot, and Jira) can only be created using the UI or APIs.

See [CREATE CONNECTION](https://docs.databricks.com/aws/en/sql/language-manual/sql-ref-syntax-ddl-create-connection.md) in the SQL reference.

## <a id="connections-and-network-policies" /> Connections and network policies

Security for outbound connectivity operates in the following layers:

* **Unity Catalog connections** govern credentials and connection configuration (URL, host, port, options). They provide a secure, governed way to store and share authentication details and connection settings for external systems without embedding secrets in code.
* **Network policies** govern network access. They control both outbound connectivity from Databricks compute to external endpoints and inbound connectivity from external sources to your workspace. Unity Catalog connections do not enforce network restrictions. To manage allowed traffic in either direction, configure network rules.
