How OpenMetadata catalogs SQL Server and Azure SQL
OpenMetadata connects to SQL Server and Azure SQL through its built-in SQL Server database connector, which is the supported method for this platform. The connector extracts table and column metadata, view definitions for view lineage, and query history for usage. It runs inside infrastructure you control, so the connection credentials, the ingestion workflow and the metadata it collects stay within your own environment. A data team that needs SQL Server tables, views and usage in one catalog gets that from this single connector, provided the permissions below are in place.
The connector's scope is bounded, and the bounds should shape your plan before anyone creates a service connection. It does not cover owners, tags or SSIS packages. Ownership therefore has to be assigned inside OpenMetadata by stewards, and SSIS packages, which often hold a large share of the transformation logic in SQL Server estates, will need a separate inventory or a custom integration. Confirm these limits against the connector documentation for the version you deploy, because connector coverage changes between releases. The SQL Server connector documentation is the place to check the current list of supported objects.
Start by listing which databases, schemas and views are in scope, and which database user the ingestion will use. The most common gap is view lineage: without VIEW DEFINITION or VIEW ANY DEFINITION, views are ingested with no SQL and no view lineage, and the catalog looks complete while showing no dependencies. Usage also depends on configuration. The connector reads query history from Query Store when it is enabled and falls back to plan-cache DMVs per database, so ask your DBA which databases have Query Store on before promising usage data to consumers.
What you need before connecting SQL Server
Before the SQL Server connector runs, three things need to be in place: an OpenMetadata deployment the ingestion can reach, SQL Server or Azure SQL instances in scope, and a login scoped to reading metadata. Each card below is a decision or check that affects the connector's scope, security review and first run.
OpenMetadata deployment baseline
Decide where OpenMetadata runs before choosing connector settings. On bare metal, the documented prerequisites are Java 21, MySQL 8.0.42 or later or PostgreSQL 15 or later for the metadata database, and Elasticsearch 9.x or OpenSearch 3.x for search. Kubernetes and Docker are also documented, so confirm which deployment your platform team will operate and who patches it.
Bare metal docsSizing for the server and dependencies
The documented minimum for the OpenMetadata server is 2 vCPUs, 4 GB RAM and 20 GB storage, and the database and search services each need at least 2 vCPUs, 2 GB RAM and 30 GB storage. These are floors, not production sizing. Ask your team to size for the number of SQL Server databases and the ingestion schedule, then test a full ingestion run before the first production schedule.
SQL Server and Azure SQL scope
List every instance, database and schema the catalog should cover, and note whether each is on-premises SQL Server, a SQL Server on a virtual machine, or Azure SQL. Confirm which SQL Server versions and Azure SQL deployment types the connector supports in the current documentation, because support can change between OpenMetadata releases. Record the owners of each database so ingestion results have a named contact.
SQL Server connector docsRead-only ingestion login
Create a dedicated SQL login for ingestion instead of reusing an administrator or application account. It needs read access to metadata and, for view lineage, the VIEW DEFINITION or VIEW ANY DEFINITION permission. Keep it read-only and confirm with your DBA which permissions the connector reads for usage, so the grant set matches your security review. Store the password in your secrets manager, not in the ingestion configuration file.
Network path from the ingestion host
The ingestion process must reach each SQL Server listener on its configured port, and Azure SQL instances may need firewall rules or private endpoint routing. Test connectivity from the actual host that runs ingestion, not from a workstation, and check any proxy, DNS or egress rules between the two. Ask the network team to document the path so changes to firewalls do not silently break scheduled runs.
TLS certificate handling
Decide whether the connection is encrypted and how the server certificate is trusted. If your SQL Server uses a certificate issued by an internal certificate authority, the ingestion host needs that CA in its trust store, or the connection will fail with a verification error. Azure SQL and internal instances may have different trust chains, so test each one separately and record which certificate bundle each connection uses.
Configuring the SQL Server connector in order
This sequence takes a SQL Server or Azure SQL estate from a locked-down read account to a catalog with verified metadata, view definitions, usage history and profiling. Each step ends with a check so the next step only starts once the previous one holds.
Create a dedicated read-only login
Your database administrator creates a dedicated SQL login or Microsoft Entra identity used only by OpenMetadata, with no write permissions and no membership in administrative roles. Keep the credential in your secrets store so it is not pasted into connector configuration by hand. Done means the login can connect to each in-scope database and nothing else. Confirm the exact authentication method your SQL Server or Azure SQL version supports with the connector documentation before you create the identity.
Grant view definition permissions
Grant VIEW DEFINITION on the databases in scope, or VIEW ANY DEFINITION at server level if your policy allows it. Without this permission, views are ingested without their SQL and no view lineage is produced, so the gap is silent until someone inspects a view. Check the result by querying a view you know exists from the connector test and confirming that its definition is visible in the test output.
Confirm network path and firewall rules
Network and security teams confirm that the machine running the ingestion, whether a Kubernetes pod, a VM or an Airflow worker in your infrastructure, can reach the SQL Server port or the Azure SQL endpoint. For Azure SQL, confirm the firewall or private endpoint rules include that runner's address range. Done means a connection test from the runner succeeds with the dedicated login, not from an administrator workstation.
Create the database service in OpenMetadata
In OpenMetadata, an administrator creates a database service of type SQL Server, enters the host, port, database scope and the dedicated credential, then runs the connection test. The connection test lists which checks passed, including metadata access. Done means the service saves and the test reports no failed steps, and you note which checks, if any, returned warnings for follow-up.
Set include and exclude filters
Define schema and table filters per database so temporary, staging and personal schemas stay out of the catalog from the first run. Exclusion rules are easier to set before ingestion than to clean up afterward, because removed objects still carry ownership and documentation history. Done means the filter preview lists the schemas you intended and none of the system or scratch schemas you excluded.
Enable Query Store where usage matters
Where usage analytics and popularity signals are needed, a database administrator enables Query Store on the in-scope databases and confirms the retention and capture settings with your performance team. The connector reads Query Store when it is enabled and falls back to plan-cache views per database otherwise, so the two sources can give different coverage. Done means you can state which source each database uses, recorded in your runbook.
Run a metadata-only ingestion and compare
Run metadata ingestion first, without profiling or lineage, and compare table counts per schema with a query against the source catalog views. Also confirm that a sample of views shows its SQL in OpenMetadata. Differences usually trace to filters, permissions or databases the login cannot see, so resolve those before continuing. Done means the counts match for each in-scope schema.
Add lineage and profiling runs
Once metadata matches the source, schedule the lineage run and then the profiler, starting with a small set of tables so that sampling cost and load on the source are understood before the full estate runs. Check one view's lineage edge against its SQL and one profiled table's row count against the source. Note that SSIS packages and ownership or tag metadata are outside this connector, so plan those separately.
Why VIEW DEFINITION decides whether view lineage exists
Without VIEW DEFINITION or VIEW ANY DEFINITION, the SQL Server connector ingests views without their SQL and produces no view lineage. The view objects still appear in the catalog, so the catalog looks complete. Nothing in the run fails, and the missing lineage only shows up later, when someone asks what feeds a reporting view and the answer is blank. Because the gap is silent, the permission has to be checked deliberately before the first full ingestion, not discovered afterward.
Grant the permission at the narrowest scope that works. The connector documentation describes VIEW DEFINITION and VIEW ANY DEFINITION as the options, and the team should confirm which scope each one applies at in the current SQL Server and Azure SQL documentation before writing the grant. In practice, this usually means granting the metadata permission to the ingestion login inside each database whose views you need, instead of a server-wide grant that also exposes other databases. Record the chosen scope and the principal in your change ticket so the grant can be reviewed later.
Verify the setup on a single sample view before running the full ingestion. Pick a view with a known source table, run the connector against one schema, and check that the view entry in OpenMetadata carries its SQL definition and that the upstream table appears as lineage. If the SQL is empty or the lineage is missing, the permission is not reaching the view, and a full run would repeat the gap across every database. Keep the sample check as a standing step whenever the ingestion user, the database or the connector configuration changes.
Query Store or plan cache: choosing the usage source
When Query Store is enabled on a database, the OpenMetadata SQL Server connector reads query history from it. Query Store keeps a persisted record of query text, execution statistics and plan changes inside the database itself, so history is not lost when the plan cache is cleared or the instance restarts. That makes it the more stable source for usage signals, provided the store is capturing and retaining what you expect.
- Persisted history: Query Store data survives plan cache eviction and, within its retention window, instance restarts.
- Retention limits: Old data is removed once the configured retention or size limits are reached, so usage only reflects that window.
- Capture mode: Some capture modes record fewer queries, which can hide infrequent but important workloads from usage results.
- Per-database scope: Each database has its own store, so check every database you catalog, not only the default one.
- Version behavior: Confirm the current Query Store defaults and capture behavior for your SQL Server version before relying on them.
Before the first run, check the Query Store settings on each database and compare the retention window with the usage period your data owners expect to see.
Where Query Store is not enabled, the connector falls back to plan-cache dynamic management views, read per database. The plan cache holds execution information only for plans still in memory, so it reflects recent activity rather than a durable history. Usage results from this source are a snapshot of what the instance has kept, and they will be thinner after memory pressure, index rebuilds or a restart.
- Memory-bound history: Plans are evicted under memory pressure, so less frequently run queries may be absent.
- Restart reset: A restart clears the plan cache, so usage counts start again from zero.
- Per-database fallback: The fallback is applied per database, so a mixed environment can produce usage from different sources for different databases.
- Permissions: The connector user needs the view server state and view database state rights that the DMVs require, which you should verify on each instance.
- Schedule: Run ingestion close to your usage review cycle, because the plan cache offers no long-term record to rely on.
Treat usage from this source as a recent-activity indicator and record the source used for each database so reviewers understand the limits.
Some teams cannot change database settings, for example on shared production instances, vendor-managed servers or systems under change freeze. In that case you cannot enable Query Store, so the plan-cache fallback is the only usage source available. The practical question becomes whether the history it yields is enough for your governance goal, such as finding unused tables or identifying owners of frequently queried views.
- Request, do not assume: Ask the database owner whether Query Store can be enabled in a later change window, and record the answer.
- Scope the expectation: Document that usage on these instances is partial, so no one treats a missing query as proof that a table is unused.
- Compare with other signals: Use application logs, job schedules or data owner input to fill gaps the plan cache cannot show.
- Separate the environments: Keep locked instances in their own service entry so their usage results are easy to identify.
- Ask about settings changes: Any change to database options should go through the owner's change process, not be made by the catalog team alone.
Before you commit to a usage-based decision on a locked instance, confirm with the database owner which history source is actually available there.
Most estates mix all three situations, so the choice is made per database rather than once for the whole server. A practical approach is to inventory each database, record whether Query Store is on, and then set expectations for the usage data that follows. Because the connector can fall back per database, the same ingestion run can produce usage from both sources, and the catalog should show which one applied.
- Inventory first: List each database with its Query Store status, retention setting and owner.
- Prioritize enablement: Start with databases that feed critical lineage or usage decisions, where persisted history matters most.
- Label usage sources: Record the source in the catalog documentation so consumers can judge the signal.
- Plan the review: Schedule periodic checks because Query Store settings can change after a patch, migration or owner decision.
- Test with one database: Validate usage output on a single database before extending the pattern across the estate.
Before sign-off, confirm the current Query Store behavior for your SQL Server version using the connector documentation linked on this page.
How SQL Server objects map to OpenMetadata assets
This table shows how each SQL Server object becomes an OpenMetadata asset, and which metadata the connector does not carry across. Read it before scoping the connector, because the view definition permission and the query history source decide whether view lineage and usage appear at all. The main takeaway is that owners, tags and SSIS packages need to be curated or sourced elsewhere.
| SQL Server object | OpenMetadata asset | Notes for the team |
|---|---|---|
| Server or instance | Database service | One service per connection to a SQL Server or Azure SQL endpoint. Confirm the host and authentication settings with the database team. |
| Database | Database | Each database on the instance is ingested under the service. Confirm which databases are in scope before the first run. |
| Schema | Database schema | Schemas map one to one. Filters are applied by schema name in the connector configuration. |
| Table | Table | Columns, data types and keys are read from catalog metadata. Profiling is a separate step and needs its own read permissions. |
| View | View | The view is ingested as an asset. Without VIEW DEFINITION or VIEW ANY DEFINITION, its SQL is missing. |
| View definition | View SQL feeding view lineage | Requires VIEW DEFINITION or VIEW ANY DEFINITION. Without it, the view has no SQL and no view lineage. |
| Column | Column | Column names and types map directly. Column-level results depend on the view SQL being readable. |
| Query history | Usage entries | Read from Query Store when enabled, with a fallback to plan-cache DMVs per database. Confirm which source each database uses. |
| Table ownership | Not mapped | The connector does not read owners. Assign owners in OpenMetadata or through an agreed import. |
| Tags from SQL Server | Not mapped | The connector does not carry SQL Server tags across. Classifications must be applied in OpenMetadata. |
| SSIS packages | Not mapped | SSIS packages are outside the connector's scope. Plan a separate pipeline source if package lineage is required. |
How metadata, usage and lineage move from SQL Server into OpenMetadata
The flow starts on an ingestion host inside the client network, where the OpenMetadata connector runs. The connector reads catalog views and view definitions from SQL Server or Azure SQL, then reads query history from Query Store when it is enabled, falling back to plan-cache DMVs per database. It writes the results to the OpenMetadata server, which stores metadata in its database service and indexes it in its search service. Check that the connector login holds the VIEW DEFINITION permission, since without it views are ingested with no SQL and no view lineage, and that the trust boundary matches your network rules.
Metadata, view SQL and usage flow from SQL Server through the ingestion host into OpenMetadata.
Securing the SQL Server login and ingestion host
The ingestion account, the host that runs it, and the people who can change the connection all decide how much SQL Server metadata an attacker or a careless editor could reach. The cards below cover the login, the secrets path, the network, the transport and the OpenMetadata admin model, which should be settled before the catalog is exposed to the wider company.
Dedicated read-only ingestion login
Create a separate SQL Server login used only by OpenMetadata, never a shared administrator or application account. Grant only the metadata and definition permissions the connector needs, such as VIEW DEFINITION for view lineage, and keep data read permissions out of the metadata role unless you plan to profile. Confirm the exact grants in the SQL Server connector documentation for your version, because the set changes with the features you enable. Review the login each time the connector configuration changes.
SQL Server connector docsPassword kept in the secrets mechanism
Store the SQL Server password in the secrets manager your ingestion runtime supports, and reference it from the connection, rather than writing it into workflow YAML, Helm values or source control. Check who can read the secret store, how the value is rotated, and whether the ingestion logs print connection strings. Rotation should be planned as a change that updates the secret and then runs a test connection, so a password change does not silently break scheduled ingestion.
Network path limited to the instance
Allow the ingestion host to reach the SQL Server listener port and nothing else on the database network. Restrict the source to the ingestion host or its subnet, and confirm the path for Azure SQL separately through its firewall rules or private endpoint. Record which hosts can connect so a reviewer can compare the firewall rule with the approved ingestion design.
Encrypted connections to SQL Server
Require encrypted connections between the ingestion host and SQL Server, and decide how the server certificate is validated before the first production run. Certificate trust is a common source of failed connections, so test it deliberately rather than turning validation off to make a connection work. Record the setting and the certificate source so the configuration can be reviewed alongside the database's own encryption policy.
Hardened ingestion host
Run the ingestion workers on a host or container that is patched, has a limited set of outbound destinations, and is managed under the same change control as other production tooling. Confirm the OpenMetadata ingestion image version and its Python dependencies are tracked, because ingestion runs as code with access to credentials. Keep logs from the host and the runtime so a failed or unexpected run can be investigated.
Admin access and connection editing
Limit the OpenMetadata role that can create or edit database services to a small administrator group, since a changed host or login changes what the platform reads. OpenMetadata does not support using SSO and basic authentication together, so settle the admin access model, including the identity provider and break-glass procedure, before the catalog is opened to users. Review the admin list on a schedule.
OpenMetadata security docsCommon SQL Server connector failures and fixes
This table maps the symptoms teams most often see after connecting OpenMetadata to SQL Server or Azure SQL to their likely cause and the fix. Read each row by matching the symptom you see in the catalog to the cause, then confirm the fix in a test ingestion before rerunning the full schedule. Most gaps trace back to permissions or settings on the SQL Server side rather than to OpenMetadata itself.
| Symptom | Likely cause | Fix |
|---|---|---|
| Views ingested with no SQL and no view lineage | The ingestion login lacks VIEW DEFINITION or VIEW ANY DEFINITION, so the connector cannot read view text | Grant VIEW DEFINITION (or VIEW ANY DEFINITION) to the ingestion login, then rerun metadata ingestion and check that view SQL and lineage appear |
| Usage tab is empty for query history | Query Store is disabled on the database, or the login cannot read plan-cache DMVs for databases where Query Store is off | Enable Query Store on the databases you need, or grant the login access to the plan-cache DMVs for each database, then rerun the usage workflow |
| Some databases or schemas are missing | Include or exclude filters in the service configuration, or the login cannot see the database because of its scope | Review the database and schema filter patterns in the service, and confirm the login has a user mapped in each target database |
| Connection fails or TLS handshake errors | Wrong host, port or instance name, a driver or encryption setting that does not match the server certificate, or the server blocks the ingestion host | Confirm host, port and instance with the DBA, match the encryption and certificate settings to the server, and test connectivity from the OpenMetadata ingestion host |
| Owners and tags are empty | The SQL Server connector does not cover owners, tags or SSIS packages, so these fields are never populated from SQL Server | Assign owners and tags in OpenMetadata manually or through its APIs, and document that these fields are a catalog task rather than a connector result |
Questions buyers ask about SQL Server integration
Can our own team connect OpenMetadata to SQL Server without a partner?
Yes, a capable team can connect OpenMetadata to SQL Server and Azure SQL on its own, since the connector is documented and OpenMetadata is Apache License 2.0 software. The work that usually takes the most care is not the connection itself but the permissions, the choice of query history source, and the first ingestion runs across every database in scope. Your team needs someone who can run OpenMetadata in production, someone who understands your SQL Server estate, and time to test and document the setup. A partner is most useful when the estate is large, when deployment, security review and handover must happen on a fixed timeline, or when the internal team lacks SQL Server or OpenMetadata operations experience. DeployOpen works inside your infrastructure and delivers a written scope before work starts.
What drives the effort of a SQL Server catalog project?
The main drivers are the number of databases and instances, the number of views (each view needs its definition read for view lineage), the state of Query Store in each database, the scope of any SSIS work, and whether the estate is Azure SQL or on-premises. Each added database multiplies permission setup, ingestion scheduling and validation. Views increase the amount of lineage to check. Query Store that is disabled or inconsistent across databases means falling back to plan-cache data for usage, which needs its own review. Azure SQL and on-premises servers differ in network paths, authentication and how permissions are granted, so each environment needs its own check. Ask for a written inventory of these factors before accepting any quote.
Why does view lineage depend on the VIEW DEFINITION permission?
The OpenMetadata SQL Server connector needs to read the SQL text of each view to derive lineage between views and the tables they read. The VIEW DEFINITION permission, or VIEW ANY DEFINITION at server scope, allows that read. Without it, the connector still ingests the views as objects, but it has no SQL to parse, so the view lineage is missing. This is a common gap because the metadata user can appear to work while lineage quietly stays empty. Confirm the grant in each database in scope, then check a sample of views after the first ingestion run to verify that lineage edges appear.
Should we use Query Store or plan cache for SQL Server usage data?
Use Query Store where it is enabled, because the connector reads query history from it when present. The connector falls back to plan-cache dynamic management views per database when Query Store is not available, so the source can differ between databases on the same server. Plan-cache data reflects what is currently cached and is less stable over time, so usage figures from it can be incomplete. Enabling Query Store is a change to production databases, so it belongs in a planned change window agreed with your DBA team. Document which source each database uses so that usage figures are read correctly.
What access and approvals does the work need from our side?
You will need to provide a dedicated SQL Server login for OpenMetadata with read-only metadata permissions and the VIEW DEFINITION grant, a network path from the OpenMetadata ingestion runtime to each SQL Server or Azure SQL endpoint, and a named DBA contact who can review grants and Query Store changes. Network approval is often the longest step, especially for on-premises servers behind firewalls or in segmented zones. Plan change windows for any change to production databases, such as enabling Query Store. Your security team should also review how the credential is stored and rotated. Confirm each of these with your DBA and network teams before the scope is fixed.
Can SSIS packages or owners be added to the SQL Server connection?
No. The SQL Server connector does not cover SSIS packages, and it does not cover owners or tags. Any SSIS catalog, package lineage or ownership assignment must be handled separately, for example through manual entry in OpenMetadata, the API, or a custom ingestion approach that your team designs and tests. Each of these options carries a maintenance cost, since the metadata must be kept current as packages change. Decide early which SSIS packages matter for lineage and ownership, and agree in writing whether that work is in scope. Confirm the current connector behavior in the OpenMetadata documentation before planning.
How is a quote formed from a written scope?
A quote follows from a written scope that lists the instances and databases in scope, the Azure SQL and on-premises split, the Query Store status in each database, the number of views and any SSIS or ownership work, the hosting of OpenMetadata, and the acceptance tests. DeployOpen does not publish a price list, so the quote reflects the effort in that scope. Ask the quote to separate one-time work (deployment, connector setup, permission design, validation and handover) from recurring work (upgrades, connector changes and retainer support). Confirm which items depend on your teams, such as DBA reviews and network approvals, so that delays on your side do not appear as overruns.
How long does a SQL Server integration take?
The duration depends on the scoped estate, including how many databases and instances are connected, how many views need lineage, the state of Query Store, network approvals and the change windows you can use. No single duration applies to every estate, so this page does not give one. Ask for a timeline built from the written scope and check that it lists your dependencies, such as DBA review, network approval and change windows, as separate steps with owners.
What the SQL Server connector does not catalog
The SQL Server connector does not cover SSIS packages, owners or tags, so none of these will appear in OpenMetadata after a standard ingestion run. For a team whose data movement runs through SSIS, that means the pipeline layer of the catalog stays empty unless you plan another way to record it. Decide before the first run who will own that work, whether it is a manual entry process in the catalog, a script that calls the OpenMetadata APIs, or a separate inventory maintained by the integration team. Without that decision, lineage will stop at the database boundary and the gap will be found later by a data consumer asking where a table is loaded from.
Ownership and tags need the same planning. Because the connector does not bring them in from SQL Server, the team should agree on a source of truth for table owners, such as a data owner register or a field in the application inventory, and load it into OpenMetadata on a schedule. Classification tags for sensitive columns should follow the same pattern, so that a PII label set in one place is not overwritten or forgotten during later ingestion runs. Name a person responsible for each load and for resolving mismatches between the register and the catalog.
Before you commit to a design, confirm current coverage in the OpenMetadata SQL Server connector documentation, because connector scope changes between releases. Check the exact exclusions for your OpenMetadata version, then test the planned manual or API process against a non-production database and an SSIS package export. Record the result in the project plan so the scope agreed with stakeholders matches what the platform will actually show.
How DeployOpen scopes and delivers the SQL Server integration
DeployOpen plans, implements, documents and supports self-hosted open-source platforms inside your own infrastructure, including OpenMetadata. For a SQL Server integration, we agree the connector scope, the database permissions and the lineage expectations in writing before any configuration begins, so your data and security teams can review what the integration reads.
How we scope
- Inventory the SQL Server and Azure SQL instances, databases and schemas that the OpenMetadata connector will catalog
- Agree which metadata, view lineage and usage outputs are in scope, and document what the connector does not cover, such as SSIS packages
- Confirm with your DBA team whether VIEW DEFINITION or VIEW ANY DEFINITION can be granted, and how Query Store is configured per database
- Define the written scope, deliverables and timeline together before work starts, since most engagements are fixed-scope
How we build
- Deploy OpenMetadata in the infrastructure you choose, with its database and search services sized against the published prerequisites
- Create a read-only connector identity with the agreed grants and test extraction against a non-production database first
- Confirm that views return SQL and view lineage, and that usage is read from Query Store or the plan-cache fallback as expected
- Test ingestion failures, permission errors and scheduling behavior, and record each result against the agreed scope
How we hand over
- Deliver written configuration notes covering the connector settings, the grants granted, and the reasons for each one
- Document the known gaps for SQL Server metadata, including owners, tags and SSIS packages, so reviewers do not assume coverage
- Walk your data platform and security teams through the ingestion schedule, logs and the process for rotating the connector credential
- Provide the scope record and test results so your compliance team can review the integration against its own requirements
How we support
- Support is available as a retainer for ongoing upgrades, patching and continuous testing of the OpenMetadata deployment
- Plan OpenMetadata version upgrades with release notes reviewed before each change, including breaking changes listed for 2.0
- Retest the SQL Server connector after permission changes, database additions or changes to the connector configuration
- Ask any provider to confirm the support terms, response expectations and service boundaries in the written scope before signing

