KCM guide cover showing regional report readers and distinct access to service case rows and contact fields.
DATABRICKS / REPORTING MIGRATION

SQL Server to Databricks: Preserve Reporting Access

Prove who can see each row and field before reporting moves.

A migrated report can match the SQL Server totals and still show a manager the wrong region’s cases. Before release, trace the identity used by the report, preserve the approved row and contact-field rules, and test the result with ordinary readers. The guide works through one Azure Databricks and Power BI path, with exact case IDs and a change in regional entitlement.

Read the full article ↓

Prove who can see each row and field before reporting moves.

Two regional managers open the same migrated report. Each receives two service cases, and both totals match the source. Yet one manager is seeing the other region’s cases. A count comparison has missed the access failure.

Reporting access needs its own migration design. Decide which identity reaches the data platform, which rows that identity may read, and which fields remain restricted. Then test the published report with ordinary readers.

For a bounded first release, this article uses an existing SQL Server reporting warehouse, a Unity Catalog managed Delta table in Azure Databricks, a serverless SQL warehouse, and a Power BI DirectQuery report with Microsoft Entra viewer single sign-on enabled. The target applies a table-level row filter and a contact-field mask. Readers act as their own user identities, without assumed Databricks roles. Source ingestion and the operational application stay outside this access-design example.

This is one supported path to evaluate. Its value depends on preserving the report’s approved access rules and meeting the organization’s reporting performance needs.

Find where the source rule actually lives

A SQL Server role list tells only part of the story. Inspect the report, its connection settings, database objects and access rules together.

SQL Server row-level security uses predicate functions and security policies. Some applications connect through one shared database account and set SESSION_CONTEXT to distinguish their users. Microsoft documents this as an application-controlled pattern. A report viewer’s name and the account querying SQL Server can therefore be different. Microsoft: SQL Server row-level security.

The source may instead rely on a filtered view, a reporting procedure, or Power BI semantic-model security. Establish the actual enforcement point before recreating it. Copying tables does not specify the target policy, and a SQL Server session-context convention should not be assumed to appear in Databricks.

Record one approved rule in business terms: an East planner can read East cases but cannot read site contacts. Then identify every object and connection that makes that statement true today. If the source behavior differs from the approved rule, resolve that difference explicitly rather than treating either one as an automatic migration specification.

Keep row access separate from field access

Consider a field-service organization with four open cases: E101 and E102 belong to East; W201 and W202 belong to West. Dispatchers need contact details to coordinate visits. Planners need workload information but do not need those details.

Reader Expected case IDs Contact field
East dispatcher E101, E102 Visible
East planner E101, E102 Restricted
West dispatcher W201, W202 Visible
National planner All four Restricted
Reader with no assigned region None No rows returned

The national planner’s broader geographic access does not justify contact access. Those are separate permissions.

The no-region reader is deliberately granted permission to query the test table, but has no region or national entitlement. The expected result is zero rows. A separate identity with no table permission should receive an access error. Testing both distinguishes a working row filter from a connection that never reached the data.

Counts alone are weak evidence here. East and West each have two cases. Compare the exact case IDs, the visible contact values and the fields used in drill-through or export.

Choose the target control deliberately

Unity Catalog table-level row filters limit visible rows; column masks replace selected field values at query time. For this one reporting table, the two controls express the region and contact decisions separately. Azure Databricks: row filters and column masks.

A dynamic view is another design choice when a report needs a curated join or reshaped output. It holds the logic in a view, so the underlying tables need their own access boundary. Databricks recommends withholding direct access to those underlying objects from the view’s consumers. Dynamic views.

For consistent rules across many tables, evaluate attribute-based access control, or ABAC, rather than multiplying individual assignments. The governance difference matters: table owners can alter table-level filters and masks. Central policies have different management boundaries. Control comparison.

For the bounded design here, ordinary readers receive neither policy-management authority nor access to unprotected landing copies. Review inherited grants as well as grants on the reporting table. Ownership and administration must be reviewed as management powers; do not infer their data visibility from the ordinary-reader test.

Make the report carry the intended identity

DirectQuery alone does not establish viewer identity. Without SSO, Power BI can use stored connection credentials for every viewer. Import mode stores data in the semantic model and serves that copy, so database filtering at refresh time is not a per-viewer security design for the imported data. Microsoft: Power BI connection modes and security.

For this Azure Databricks path, Microsoft documents enabling viewer SSO on the published Power BI semantic model’s data-source credentials. The configuration passes the report viewer’s Microsoft Entra identity for DirectQuery access. Verify the setting in the service and test each representative reader there. A successful Power BI Desktop session proves only that session. Azure Databricks and Power BI service SSO.

Keep role assumption out of this first design. Current Databricks guidance states that assuming a role changes the active identity used by identity and group-membership functions. Introducing it later requires another entitlement review and test. Databricks active identity behavior.

Test the result, then change the entitlement

Run the same approved fixture through the source and target paths. For each reader, retain the expected and observed case IDs, contact-field outcome, report version, policy revision and query evidence. Query history can help confirm the executing and authorizing identities; the system table is not an immediate event stream, so allow for its documented delivery delay. Query history reference.

Next, move the East planner to West. Remove the old entitlement, apply the new one, allow the identity change to propagate, and requery the published report. The expected case IDs become W201 and W202; the contacts remain restricted. Also check the report surfaces that users actually consume, including any retained exports or cached displays. Previously delivered copies require their own handling.

Hold the release if a reader receives an unauthorized case or contact, if the executing identity cannot be explained, or if an alternate access path exposes broader data. Also hold if an authorized reader cannot do the agreed work. An access-preserving migration must support both restriction and use.

The companion eGuide provides the four-case fixture, target policy sketch, identity checks and an access acceptance worksheet. Bring one report, its source access rules and its connection configuration to KCM’s Databricks consulting team.

Product documentation checked October 27, 2026. The design must be implemented and tested in the intended environment.