Dynamic Data Masking
It is used to mask sensitive data.
It support 4 type of masks.
1. Default dependent on the type of data.
- binary, varbinary, image: using ASCII value 0
- date, datetime2, datetime, datetimeoffset, smalldatetime, time: using 01.01.1900 00:00:00.0000000
- bigint, bit, decimal, int, money, numeric, smallint, smallmoney, tinyint, float, real: using 0
- string: using XXXX or fewer Xs
2. Custom string show the first and last letters and adds a custom padding string in the middle.
3. Email only show the first letter and a constant .com suffix
4. Random use a random value within a specified range for anumeric type.
DDM does not support:
- Always Encrypted encrypted columns
- COLUMN_SET
- FILESTREAM data
- Computed column
DDM’s column cannot be a key for a FULLTEXT index.
DDM of Default type
DDM of Custom String
DDM of Email type
DDM of Random type