[英]Data-Tier application - manual table alter
Let's say I registered my Data-Tier Application into SQL Server 2014. Is there a way how can I disable manual altering of tables? 假设我在SQL Server 2014中注册了数据层应用程序。有什么方法可以禁用表的手动更改? So I can force developers to publish new version of data-tier application instead of manual altering any table in the database ? 因此,我可以强迫开发人员发布新版本的数据层应用程序,而不是手动更改数据库中的任何表?
How the data-tier application changes when I alter something manually bypassing data-tier upgrade ? 当我绕过数据层升级手动更改某些内容时,数据层应用程序如何更改?
The point of my question is: Someone can add a column directly to the table for a customer bypassing a data-tier upgrade. 我的问题的重点是:有人可以为客户绕过数据层升级而直接在表中添加一列。 That means our project in visual studio will be outdated. 这意味着我们在Visual Studio中的项目将过时。 I would like to force anyone to change a database only though data-tier upgrade. 我想强迫任何人仅通过数据层升级来更改数据库。
Thanks :) 谢谢 :)
There isn't a way to do this with Ssdt, the best you can do is to stop future deployments by detecting drift. 用Ssdt无法做到这一点,您最好的办法就是通过检测漂移来停止将来的部署。
Redgate have a product (free version available) that does this it is called dlm dashboard and notifies and allows you to block changes unless they have been pre-approved etc: Redgate有一个产品(提供免费版本),称为dlm仪表板,可以通知并允许您阻止更改,除非已预先批准等:
https://www.red-gate.com/products/dlm/dlm-dashboard/ https://www.red-gate.com/products/dlm/dlm-dashboard/
Ed 埃德
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.