I am using Azure SQL database and some of the table columns are using Dynamic mask like this:
CREATE TABLE PartialMask
(
ID INT IDENTITY (1,1) PRIMARY KEY NOT NULL,
Name VARCHAR(255) MASKED WITH (FUNCTION = 'partial(2, "XXXXXX",2)') NULL,
Comment NVARCHAR(255) MASKED WITH (FUNCTION = 'partial(5, "XXXX", 5)') NOT NULL
);
For example, the raw data for name is “ABCDE”, then the query will show “ABXXXXXXDE”
However, when we use trim()for the name column, like
Select trim(name) From PartialMask
I will get “xxxx“.
Did you have the same issue and any solutions?