简体   繁体   English

如何从在 Visual Studio 中创建的 DACPAC 项目中排除数据库触发器?

[英]How do I exclude database triggers from a DACPAC project created in Visual Studio?

I have a database project in Visual Studio, and I need to exclude the database triggers from the generated DACPAC, because one of them is LockdownTriggers which prevents triggers from being altered - and that's causing issues with the other triggers;我在 Visual Studio 中有一个数据库项目,我需要从生成的 DACPAC 中排除数据库触发器,因为其中之一是LockdownTriggers ,它可以防止触发器被更改 - 这会导致其他触发器出现问题; as soon as LockdownTriggers is deployed, it's automatically enabled.一旦部署了LockdownTriggers ,它就会自动启用。 and then the rest of the deployment fails trying to alter other triggers that are now locked.然后部署的其余部分尝试更改现在锁定的其他触发器失败。 Is there any way to prevent the database triggers from being deployed as part of the DACPAC?有什么办法可以防止将数据库触发器部署为 DACPAC 的一部分吗? Or at least exclude LockdownTriggers , or prevent it from being enabled until the deployment is over?或者至少排除LockdownTriggers ,或者在部署结束之前阻止它被启用?

I found it!我找到了! Searched around online some more and it looks like I need "Advanced Deployment Settings" (accessible via Project Properties > Debug > Advanced).在网上搜索了更多,看起来我需要“高级部署设置”(可通过​​项目属性 > 调试 > 高级访问)。

在此处输入图片说明

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何使用Visual Studio中的DACPAC部署具有不同架构的对象 - How to deploy objects with different schema using DACPAC from Visual Studio 无法在Visual Studio 2012中为dacpac添加数据库引用-OutOfMemoryException - Unable to add database reference for dacpac in Visual Studio 2012 - OutOfMemoryException 数据库项目-输出dacpac - Database Project - Output dacpac 如何阻止数据库部署删除服务器触发器? - How do I stop Database deploy from removing Server Triggers? 如何编写Visual Studio数据库项目的部署脚本? - How can I script the deployment of a Visual Studio database project? 在Visual Studio中创建数据库项目后,如果编辑存储过程或视图,如何将更改应用到服务器? - Once I have a database project in Visual Studio, if I edit a stored procedure or view, how do I apply the changes to the server? 如何在Visual Studio 2010中添加数据库图? - How do I add a database diagram in visual studio 2010? 如何引用从同一DACPAC文件部署但具有不同数据库名称的数据库? - How can I refer to a database deployed from the same DACPAC file, but with a different db name? 我是否必须在 Visual Studio 中连接 SQL 服务器数据库才能在 C# 项目中使用它? - Do I have to connect a SQL Server database in Visual Studio to use it in C# project? 从 Visual Studio 2013 数据库项目中清理 SQL Server 数据库 - Clean SQL Server database from Visual Studio 2013 database project
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM