数据库项目参考和部署问题
我有一个数据库项目 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论