仅将 VS2010 数据库项目用于另一个数据库中的特定模式

发布于 2024-11-29 23:46:40 字数 538 浏览 2 评论 0原文

感谢您的阅读...

这是我的问题:

背景:我的任务是担任构建经理(第一次这样做)。除此之外,这包括创建脚本来更新登台数据库。我想为此利用数据库项目,这样我可以将其保留在源代码管理中,并将其与 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 技术交流群。

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

发布评论

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