2023-04-17 16:45:47 +02:00
---
title: AzureSQL
2023-05-04 12:37:18 -07:00
slug: /connectors/database/azuresql
2023-04-17 16:45:47 +02:00
---
# AzureSQL
{% multiTablesWrapper %}
| Feature | Status |
| :----------------- | :--------------------------- |
| Stage | PROD |
| Metadata | {% icon iconName="check" /%} |
| Query Usage | {% icon iconName="cross" /%} |
| Data Profiler | {% icon iconName="check" /%} |
| Data Quality | {% icon iconName="check" /%} |
| Lineage | Partially via Views |
| DBT | {% icon iconName="check" /%} |
| Supported Versions | -- |
| Feature | Status |
| :----------- | :--------------------------- |
| Lineage | Partially via Views |
| Table-level | {% icon iconName="check" /%} |
| Column-level | {% icon iconName="check" /%} |
{% /multiTablesWrapper %}
In this section, we provide guides and references to use the AzureSQL connector.
Configure and schedule AzureSQL metadata and profiler workflows from the OpenMetadata UI:
- [AzureSQL ](#azuresql )
- [Requirements ](#requirements )
- [Metadata Ingestion ](#metadata-ingestion )
- [Service Name ](#service-name )
- [Connection Options ](#connection-options )
- [Metadata Ingestion Options ](#metadata-ingestion-options )
- [Troubleshooting ](#troubleshooting )
- [Workflow Deployment Error ](#workflow-deployment-error )
- [Related ](#related )
2023-07-06 15:11:13 +02:00
{% partial file="/v1.1.0/connectors/ingestion-modes-tiles.md" variables={yamlPath: "/connectors/database/azuresql/yaml"} /%}
2023-04-17 16:45:47 +02:00
## Requirements
2023-04-21 18:23:45 +05:30
Make sure if you have whitelisted ingestion container IP on Azure SQL firewall rules. Checkout [this ](https://learn.microsoft.com/en-us/azure/azure-sql/database/firewall-configure?view=azuresql#use-the-azure-portal-to-manage-server-level-ip-firewall-rules ) document on how to whitelist your IP using azure portal.
2023-04-23 00:01:32 +05:30
AzureSQL database user must grant `SELECT` privilege to fetch the metadata of tables and views.
```sql
-- Create a new user
-- More details https://learn.microsoft.com/en-us/sql/t-sql/statements/create-user-transact-sql?view=sql-server-ver16
CREATE USER Mary WITH PASSWORD = '********';
-- Grant SELECT on table
GRANT SELECT TO Mary;
```
2023-04-17 16:45:47 +02:00
## Metadata Ingestion
2023-07-06 15:11:13 +02:00
{% partial
file="/v1.1.0/connectors/metadata-ingestion-ui.md"
variables={
connector: "Azure SQL",
selectServicePath: "/images/v1.1.0/connectors/azuresql/select-service.png",
addNewServicePath: "/images/v1.1.0/connectors/azuresql/add-new-service.png",
serviceConnectionPath: "/images/v1.1.0/connectors/azuresql/service-connection.png",
}
/%}
2023-04-17 16:45:47 +02:00
2023-07-06 15:11:13 +02:00
{% stepsContainer %}
2023-04-17 16:45:47 +02:00
{% extraContent parentTagName="stepsContainer" %}
#### Connection Options
- **Username**: Specify the User to connect to AzureSQL. It should have enough privileges to read all the metadata.
- **Password**: Password to connect to AzureSQL.
- **Host and Port**: Enter the fully qualified hostname and port number for your AzureSQL deployment in the Host and Port field.
2023-04-23 00:01:32 +05:30
- **Database**: The database of the data source is an optional parameter, if you would like to restrict the metadata reading to a single database. If left blank, OpenMetadata ingestion attempts to scan all the databases.
- **Driver**: Connecting to AzureSQL requires ODBC driver to be installed. Specify ODBC driver name in the field.
2023-04-21 18:23:45 +05:30
You can download the ODBC driver from [here ](https://learn.microsoft.com/en-us/sql/connect/odbc/download-odbc-driver-for-sql-server?view=sql-server-ver16 ). In case of docker or kubernetes deployment this driver comes out of the box with version `ODBC Driver 18 for SQL Server` .
2023-06-28 20:31:50 +05:30
2023-07-06 15:11:13 +02:00
{% partial file="/v1.1.0/connectors/database/advanced-configuration.md" /%}
2023-04-17 16:45:47 +02:00
{% /extraContent %}
2023-07-06 15:11:13 +02:00
{% partial file="/v1.1.0/connectors/test-connection.md" /%}
2023-04-17 16:45:47 +02:00
2023-07-06 15:11:13 +02:00
{% partial file="/v1.1.0/connectors/database/configure-ingestion.md" /%}
2023-04-17 16:45:47 +02:00
2023-07-06 15:11:13 +02:00
{% partial file="/v1.1.0/connectors/ingestion-schedule-and-deploy.md" /%}
2023-04-17 16:45:47 +02:00
{% /stepsContainer %}
2023-07-06 15:11:13 +02:00
{% partial file="/v1.1.0/connectors/troubleshooting.md" /%}
2023-04-17 16:45:47 +02:00
2023-07-06 15:11:13 +02:00
{% partial file="/v1.1.0/connectors/database/related.md" /%}