简体   繁体   English

将数据库注册为数据层应用程序 - 对SQLPackage如何部署的任何更改?

[英]Registering Database as Data-tier Application - any change to how SQLPackage deploys?

I have been given the task to create an automated drift report to keep an eye on the health of some of our databases. 我被赋予了创建自动化漂移报告的任务,以便密切关注我们某些数据库的健康状况。 I have this working and sending out emails etc.... no problem there. 我有这个工作,并发送电子邮件等....没有问题。

I just have some concerns about registering all our live databases as Data-tier applications. 我只是担心将所有实时数据库注册为数据层应用程序。

We currently use SQLPackage.exe for our deployments. 我们目前使用SQLPackage.exe进行部署。 I plan on adding 我计划加入

<BlockWhenDriftDetected>False</BlockWhenDriftDetected>
<RegisterDataTierApplication>True</RegisterDataTierApplication>

to each of our publish.xml files we use. 我们使用的每个publish.xml文件。

Now the questions are. 现在的问题是。

Does this have any effects on the other parameters in the xml file? 这对xml文件中的其他参数有影响吗? The MSDN documentation doesn't mention any. MSDN文档没有提到任何内容。

Are there any server level changes I should be aware of? 我应该注意哪些服务器级别的更改?

Can this change our backup procedure at all? 这可以改变我们的备份程序吗?

All my testing so far indicates no. 到目前为止我的所有测试都表明没有 The reason i am nervous is because, if I were to be publishing from Visual Studio, when you tick the "Register as data-tier application" box, your further options are then greyed out. 我紧张的原因是,如果我要从Visual Studio发布,当您勾选“注册为数据层应用程序”框时,您的其他选项将变为灰色。 Leading me to believe it DOES make a difference. 让我相信它会有所作为。

Opinions welcome! 意见欢迎!

Thanks! 谢谢!

[Disclaimer]: I work for Microsoft. [免责声明]:我为微软工作。

Hello Kirky1 你好Kirky1

The deploy options do affect the deployment even though VS disables the advanced option when you select the "Register as Data-tier Application". 部署选项会影响部署,即使在选择“注册为数据层应用程序”时VS禁用高级选项也是如此。 If you are only setting options that do not affect comparison of the dacpac, like BlockWhenDriftDetected, you are fine. 如果你只是设置不影响dacpac比较的选项,比如BlockWhenDriftDetected,你没事。 If you also set options that do affect comparison, like "Exclude Users", you may run into issues where drift detection will block the deployment. 如果您还设置了影响比较的选项,例如“排除用户”,则可能会遇到漂移检测将阻止部署的问题。 This is caused by the fact that the comparison for drift detection uses the default deploy options. 这是因为漂移检测的比较使用默认部署选项。

Given your scenario of using BlockWhenDriftDetected = false the issue of the options being ignored for drift comparison should not impact you and any deploy options you do set will be honored when deploying your dacpac/project. 鉴于您使用BlockWhenDriftDetected = false的情况,忽略漂移比较的选项问题不应影响您,并且在部署dacpac /项目时将遵循您设置的任何部署选项。

I hope this helps. 我希望这有帮助。

Lonny 朗尼

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

相关问题 导入数据层应用程序与 sqlpackage.exe - Import Data-Tier Application vs sqlpackage.exe 数据层应用程序可以与手动管理的数据库共存吗? - Can a data-tier application coexist with a manually-managed database? 数据层应用程序-手动更改表 - Data-Tier application - manual table alter 导出数据层应用程序错误 - Export Data-tier application error 从包含加密对象的数据库中导出带有数据(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 将数据库迁移到SSDT数据层应用程序的预期方法是什么? - What's the intended method of migrating a database to an SSDT Data-tier Application? 如何更新我的数据层应用程序项目以反映在其他工具中进行的架构更改? - How do I update my Data-Tier Application project to reflect schema changes made in other tools? 如何在单层Winforms应用程序中安全地连接到SQL Server数据库? - How to securely connect to a SQL Server database in a single tier Winforms application? 如何检查SQL Server数据库的Azure定价层更改历史记录? - How to check Azure Pricing tier change history for SQL Server Database?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM