使用 Visual Studio 在数据库项目和数据库之间同步权限

发布于 2024-07-30 10:26:29 字数 210 浏览 4 评论 0原文

我在 Visual Studio (2008) 中有一个数据库项目,我用它来将我的数据库结构保存在版本控制系统 (Git) 中。 我使用VS中的数据模式比较工具来维护这个数据库项目。 我遇到的问题是我不断失去对新对象的权限。

那么我该如何:

  1. 使用架构比较工具捕获这些权限。
  2. 使用架构比较工具将这些权限应用到服务器。

I have a database project in visual studio (2008) that I am using to keep my database structure in a version control system (Git). I use the data schema compare tool in VS to maintain this database project. The issue that I'm encountering is that I keep losing my permissions for new objects.

So how do I:

  1. Capture these permissions using the schema compare tool.
  2. Apply these permissions to a server using the schema compare tool.

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

拥抱影子 2024-08-06 10:26:29

捕获和应用我发现的权限的最简单方法是进入工具 -> 选项-> 数据库工具-> 架构比较并取消选中忽略权限复选框。 然后运行架构比较并应用更新。

注意:这将更新架构中具有权限的每个对象。 在同步架构更改然后重置忽略权限复选框后,我一直在捕获权限

The easiest method to capture and apply the permissions that I have found is to go into tools -> options -> database tools -> schema compare and uncheck the ignore permissions checkbox. Then run the schema comparision and apply updates.

Note: That this will update every object with permissions in your schema. I have been capturing the permission after I sync my schema changes and then resetting the ignore permissions checkbox

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文