2

我在当前项目中实现了动态数据屏蔽,为此我创建了 Azure SQL 数据库和表。之后,我转到 azure 门户中的动态数据屏蔽选项,然后单击动态数据屏蔽选项,它将打开如下图所示的快照。 在此处输入图像描述 但在上图中,屏蔽字段格式下没有社会安全号码格式。

你能告诉我如何在屏蔽字段格式选项下查看社会安全号码格式吗?

普拉迪普

4

2 回答 2

1

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

于 2017-01-19T13:42:41.630 回答
1

谢谢 Pradeep - 这确实是为社会安全号码实现相关屏蔽功能的有效方法,该功能会暴露最后 4 位数字。我们目前不支持应用此格式的内置函数,但如您所见,使用自定义字符串/部分屏蔽函数很容易创建这种格式。如果您有任何其他问题,请联系我们。谢谢!

于 2017-01-22T09:46:50.580 回答