我在当前项目中实现了动态数据屏蔽,为此我创建了 Azure SQL 数据库和表。之后,我转到 azure 门户中的动态数据屏蔽选项,然后单击动态数据屏蔽选项,它将打开如下图所示的快照。 但在上图中,屏蔽字段格式下没有社会安全号码格式。
你能告诉我如何在屏蔽字段格式选项下查看社会安全号码格式吗?
普拉迪普
After did R & D on how to mask the social security number in azure SQL database. I think Dynamic data masking provides for four different built in masking functions (default, Email, Custom String, and Random) see the below for more information.
SQL Server 2016 New Features: Security and Encryption
https://www.teamscs.com/2016/01/sql-server-2016-new-features-security-encryption/
That’s why we are not able see the social security number format under masking filed format option in Azure Portal.
So, I followed below link to implement the above concept.
Dynamic Data Masking
https://msdn.microsoft.com/en-us/library/mt130841.aspx
For Example:-
ALTER TABLE [dbo].[CustomerTables]
ALTER COLUMN [SSN] ADD MASKED WITH (FUNCTION = 'partial(0,"XXX-XX-",4)');
Pradeep
谢谢 Pradeep - 这确实是为社会安全号码实现相关屏蔽功能的有效方法,该功能会暴露最后 4 位数字。我们目前不支持应用此格式的内置函数,但如您所见,使用自定义字符串/部分屏蔽函数很容易创建这种格式。如果您有任何其他问题,请联系我们。谢谢!