简体   繁体   English

数据层应用程序-手动更改表

[英]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.

相关问题 导出数据层应用程序错误 - Export Data-tier application error 导入数据层应用程序与 sqlpackage.exe - Import Data-Tier Application vs sqlpackage.exe 数据层应用程序可以与手动管理的数据库共存吗? - Can a data-tier application coexist with a manually-managed database? 从包含加密对象的数据库中导出带有数据(bacpac)的数据层应用程序 - Export Data-Tier Application with Data (bacpac) from a database that contains encrypted objects 注册数据层应用程序 - “数据库源不是SQL Server支持的版本”错误 - Register Data-Tier Application - “Database source is not a supported version of SQL Server” error 如何更新我的数据层应用程序项目以反映在其他工具中进行的架构更改? - How do I update my Data-Tier Application project to reflect schema changes made in other tools? 将数据库注册为数据层应用程序 - 对SQLPackage如何部署的任何更改? - Registering Database as Data-tier Application - any change to how SQLPackage deploys? 将数据库迁移到SSDT数据层应用程序的预期方法是什么? - What's the intended method of migrating a database to an SSDT Data-tier Application? SSDT寄存器数据层应用 - SSDT Register Data Tier Application Team Foundation Server - 应用程序层到数据层:身份验证,模拟和授权 - Team Foundation Server - Application Tier to Data Tier: Authentication, Impersonation and Authorisation
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM