使用.dbproj发布会关闭透明数据加密

时间:2016-06-15 19:34:26

标签: sql encryption azure-sql-database tde dbproj

我注意到Azure Dashboard中的某些内容正在关闭我的数据库上的透明数据加密(TDE)。我通过Azure门户打开了它。意识到我的dbproj发布流程中的内容包括:

SET ENCRYPTION OFF

在发布屏幕中没有明显的选项可以做这样的事情。

1 个答案:

答案 0 :(得分:2)

经过大量试验和错误,我发现取消选中复选框Deploy database properties会阻止发布脚本包含关于关闭加密的垃圾。然后是找到导致这种情况的db属性的问题。

enter image description here

我看到我的dbproj目标平台设置为Microsoft Azure SQL Database而不是Microsoft Azure SQL Database V12。 V12是TDE,老数据库没有。

转到dbproj上的属性(右键单击proj>属性)后,转到项目设置,更改为V12,然后单击Database Settings。转到Miscellaneous标签,然后选中Encryption enabled。瞧,你已经完成了。确保在发布设置中重新启用Deploy database properties

enter image description here

enter image description here