Reitse
Most Valuable Professional
1 year agoStatus:
Completed
Fabric SQL Database dynamic data masking doesn't work
I've been doing some testing with Dynamic Data Masking to try and find out if/how it works.
To do that, I'm running a script that works perfectly fine in SQL Server and Azure SQL Server.
But it fails to mask the data in Fabric SQL Database. I got some confirmation yesterday at SQL Konferenz that this really looks like a bug and therefore I'm sharing the full code with you to reproduce and hopefully find a solution.
DROP TABLE IF EXISTS dbo.MaskingTable;
CREATE TABLE dbo.MaskingTable (
ID int IDENTITY(1,1),
FirstName varchar(20) MASKED with (FUNCTION = 'Partial(3,"AbC",1)') NOT NULL,
LastName varchar(30) MASKED with (FUNCTION = 'default()') NOT NULL,
Email varchar(40) MASKED WITH (FUNCTION = 'email()') NOT NULL,
SecretDate datetime MASKED WITH (FUNCTION = 'datetime("Y")')NOT NULL,
TopSecretNumber int MASKED with (FUNCTION = 'RANDOM(1,1000)')
)
INSERT INTO dbo.MaskingTable (FirstName, LastName, Email, SecretDate, TopSecretNumber)
VALUES
SELECT *
FROM dbo.MaskingTable
CREATE USER NoUnMask WITHOUT LOGIN;
GRANT SELECT ON dbo.MaskingTable TO NoUnMask;
EXECUTE AS USER = 'NoUnMask'
SELECT *
FROM dbo.MaskingTable
REVERT;
5 Comments
- sukkaur
Microsoft Employee
Hi Reitse, Just want to let you know that masking works fine. Please try it with an actual user by giving your user connect access to the SQL database artifact in fabric. You are not seeing the result because you using execute as user for this. Thanks Sukhwant - Reitse
Most Valuable Professional
Hi Sukhwant, So to test this functionality I can't use a method that's been in use for ages? If execute as doesn't work in Fabric SQL (and it does in Azure SQL and SQL Server), it should return an error instead of an unwanted result. I've seen the execute as clause being used in stored procedures as well in the past. If people assume this will work in Fabric SQL too, they might be in for a surprise after migrating. I hope this one can be fixed or that there will be clear documentation on the fact that this doesn't work. - JakubSzymaszek
Microsoft Employee
Status changed:NewtoPlanned - sukkaur
Microsoft Employee
Status changed:PlannedtoCompleted
Recent ideas
Allow Individual Activity Execution Within a Pipeline Without Running the Entire Pipeline
Problem Statement Currently, when a Microsoft Fabric Data Pipeline contains multiple Semantic Model Refresh activities, selecting an individual activity and clicking Run triggers the entire pipeline...trmei6 hours agoNew MemberNew16Views1like0CommentsBack-button feature to clear selected drillthrough filter value
As drillthrough function we use a filter and we give value for it from other report page. I click back-button and it will take me back to where I was before. In the background filter value stays unch...tondeli13377 hours agoNew MemberNeeds Votes1.6KViews661likes20CommentsHelp tooltip & Visual tooltip text formatting options.
Please add more text formatting options to the Help tooltip text and Visual tooltip text features. At present only Font, size, colour , background, transparency options are available. It will be bet...11044218 hours agoNew MemberNew1.2KViews63likes6CommentsSupport of SSAS formatting in Power BI visuals tooltips
Hi Team, The thing here is that most of all visuals tooltips not show proper format of a measure, which was formatted on SSAS side. Example. I have SSAS database with an Adventure Works cube. I c...ruslan_zolotuk28 hours agoNew MemberNeeds Votes73Views2likes2CommentsFormatting results of count aggregate in tooltips for PowerBI
The feature that I'm requesting is the ability to format the results of a count aggregation in tooltips. For example, rather thank displaying a count of all members as 123456789 in the tooltip, we c...szewczykrv8 hours agoNew MemberNew142Views2likes2Comments