数据库项目参考和部署问题

发布于 2025-01-04 14:50:09 字数 493 浏览 0 评论 0原文

我有一个数据库项目 Db1,它引用服务器项目 DbSrv1。 Db1 包含另一个数据库 Db2 中某些表的一些同义词,因此我还引用了 Db2 数据库项目。现在,Db2 又引用它自己的 DbSrv2。

总结一下,这些是 Db1 的所有数据库引用:
-DbSrv1
- ...DBSchemas\master.dbschema
- ...DBSchemas\msdb.dbschema
-Db2
-DbSrv2

该项目现在可以正常构建,但我无法部署它,因为引用了 2 个服务器项目(TSD01234 源模型包含 2 个服务器选项元素。)。我不知道怎样才能摆脱这个困境。我无法删除任何一个服务器项目,因为我将获得所有未解析的引用。

另一方面,是否可以在不引用所有这些数据库的情况下工作并以其他方式解决未解析的引用(例如使用变量)?我是这个领域的新手,所以我需要尽可能多的信息,因为它有帮助,但不是更多。

提前致谢
尤利安

I have a database project, Db1, that references a server project DbSrv1. Db1 includes some synonyms for some tables in another database Db2, consequently I also reference a Db2 database project. Now Db2 in turn, references its own DbSrv2.

To sum up these are all the database references for Db1:

- DbSrv1

- ...DBSchemas\master.dbschema

- ...DBSchemas\msdb.dbschema

- Db2

- DbSrv2

The project will build okay now, but I can't deploy it because there are 2 server projects referenced (TSD01234 The source model contains 2 server option elements.). I am not sure how can I get out of this. I can't remove either server projects as I will get all the unresolved references.

On another hand is it posible to work without referincing all these database and resolve the unresolved references some other way (like using variables)? I am a newbie in this area so I need as more info as it helps but not more.

Thanks in advance

Iulian

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文