仅将 VS2010 数据库项目用于另一个数据库中的特定模式
感谢您的阅读...
这是我的问题:
背景:我的任务是担任构建经理(第一次这样做)。除此之外,这包括创建脚本来更新登台数据库。我想为此利用数据库项目,这样我可以将其保留在源代码管理中,并将其与 TFS 标签分开,以便在构建时创建数据库的快照。 这对我来说似乎非常简单。
设置:在我们的开发环境中,我们有一个生产数据库的副本。该数据库是我们上线时将部署新数据库对象的数据库。我们还有一份正在准备测试的副本。
目标:我在数据库项目中需要的唯一模式(和相关对象)仅限于未投入生产的模式。
问题:当我创建新的数据库项目时,我无法选择仅选择某些模式进行导入(据我所知)。有没有办法仅导入架构 A、B 和 D,而忽略 dbo 和 C?除此之外,使用“模式比较”是否可以仅比较数据库中选定的模式?
如果我的问题和信息不完整,请告诉我。
谢谢。
-贾斯汀
thanks for reading...
Here's my problem:
The Background: I have been tasked with being a Build Manager (first time doing so). Among other things, this includes creating scripts to update the staging DB. I would like to utilize a Database Project for this so I may keep it in source control and also have it apart of TFS Labels to create a snapshot of the DB at the time of the build. This seems pretty straight forward to me.
The Setup: In our dev environment, we have a copy of our production DB. This DB is the one where our new data base objects will be deployed when we go live. We also have a copy of it in staging for testing.
The Goal: The only schemas (and related objects) I need in the Database Projects are limited only to the ones that aren't in production.
The Problem: When I create a new Database Project, I have no option to select only certain schemas to import (that I am aware of). Is there a way to only import Schemas A, B, and D and leave out dbo and C? Along with this, is it possible when using the 'Schema Comparison' to compare only selected schemas within the database?
Please let me know if my question and information are incomplete.
Thanks.
-Justin
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论