SQL Source Control for teams
You'll use SQL Source Control differently depending on which development model you're using:
不同的模式有不同的使用方式
The dedicated model
In the dedicated model, each developer has their own copy of the database.
If this is what you're doing, read Teams using the dedicated model.
The dedicated model is where each developer works on a separate copy of the database.
这种模式,每一个人(是指每一个集成了sql source control的sql server instance)只能连接到一个数据库上。

The shared model
In the shared model, developers work on a single copy of the database.
If this is what you're doing, read Teams using the shared model.
The shared development model is where developers work on a single copy of the database.
这种模式下,每一个人都连接到同一个数据库。所有的操作,直接在数据库操作。
每个人负责commit自己 修改,并且修改之前最好使用object lock的功能。
如果想要把数据库的变化apply到其他数据库,除非新建一个sql server instance(和sql source control集成过的),来连接到其他数据库。
然后link sql sourcecontrol,在进行处理。

总结:
每一个sql server instance只能连接到一个数据库上。假如连接到多个数据库的话,就会出现使用混乱的问题。
应该是,可以连接到多个数据库,但是仅仅只能在其中某一个数据库上进行修改,不能一会修改这个,一会修改那个。
正确的操作是,直接操作数据库,需要固定某一个数据库。然后把修改apply到其他的数据库上。
注意事项
一次只能在一个模式下开发,切忌两种模式混用。
不恰当的使用举例,假设有服务器的数据库DB1,用户A自己本地有数据库DB2。
用户B使用shared模式,直接在DB1进行修改。
用户A使用dedicated模式,在DB2进行修改,再通过sql source control把修改apply到DB1上。
这种混用导致的问题是,如果用户B在服务器上添加了一个存储过程,name在用户A连接到DB1上的时候,commit tab上看不到新增。
却会在get latest上看到那个存储过程需要drop。
解决方法:先把DB1和数据库的git repository进行unlink。然后再重新link。
冲突的处理
如果遇到冲突,可以一般会有2个选择,take mine 或者take theirs
如果想要做合并的,需要使用第三方工具,处理好之后,再标记resolve
SQL Source Control for teams的更多相关文章
- Red Gate - SQL Source Control实现对SQL SERVER 的源代码控制
原文地址:http://bbs.csdn.net/topics/350165431 SQL Server 一直没有一款很好的源码控制器,之前自己曾尝试自己写一个,将所有的 脚本 自动生成到某一目录下, ...
- Red Gate系列之二 SQL Source Control 3.0.13.4214 Edition 数据库版本控制器 完全破解+使用教程
原文:Red Gate系列之二 SQL Source Control 3.0.13.4214 Edition 数据库版本控制器 完全破解+使用教程 Red Gate系列之二 SQL Source Co ...
- ignore users and roles by filter in sql source control
https://www.red-gate.com/hub/product-learning/sql-source-control/source-controlling-database-permiss ...
- How to use shared model by git in sql source control of red gate
1.clone the git repository for datbase 2.open sql source control window and select the target databa ...
- edit filter rules in sql source control
https://documentation.red-gate.com/soc6/common-tasks/exclude-objects-using-filters 如果有人上传了filter,nam ...
- SQL Source Control
https://documentation.red-gate.com/display/SOC5/SQL+Source+Control+5+documentation Working with migr ...
- Link static data in sql source control
You can link data that doesn't change very often to SQL Source Control. This lets you commit data ch ...
- sql server 2012中red gate的sql source control消失
找到C:\ProgramData\Microsoft\SQL Server Management Studio\11.0\Addins路径,用notepad++打开RedGate.SIPFramewo ...
- Visual Studio 2013 always switches source control plugin to Git and disconnect TFS
A few days ago, I've been facing a strange behavior with Visual Studio 2013. No matter what solu ...
随机推荐
- Android开发初体验
本文通过开发一个应用来学习Android基本概念及构成应用的UI组件. 开发的应用名叫GeoQuiz,它能给出一道道地理知识问题.用户点击true或false按钮回答问题,应用即时做出反馈 第一步请先 ...
- jQuery——入口函数
中文网 http://www.css88.com/jqapi-1.9/ 版本兼容问题 版本一:1.x版本,兼容IE678 版本二:2.x版本,不兼容IE678 入口函数区别 <script> ...
- Android中ViewPager动态创建的ImageView铺满屏幕
ImageView imageView=new ImageView(context); imageView.setScaleType(ScaleType.FIT_XY);//铺满屏幕
- (转) Arcgis4js实现链家找房的效果
http://blog.csdn.net/gisshixisheng/article/details/71009901 概述 买房的各位亲们不知是否留意过链家的"地图找房",这样的 ...
- Redis 之消息发布与订阅(publish、subscribe)
使用办法: 订阅端: Subscribe 频道名称 发布端: publish 频道名称 发布内容 一般做群聊,聊天室,发布公告信息等.
- Java中面向对象三大特性之——多态
多态的概述: 多态是继封装.继承之后,面向对象的第三大特性. 生活中,比如跑的动作,小猫.小狗和大象,跑起来是不一样的.再比如飞的动作,昆虫.鸟类和飞机,飞起来也是不一样的.可见,同一行为,通过不同 ...
- 微信小程序——weui的使用
使用在根目录中复制weui.wxss,app.wxss中引入 在weui.io中查看到自己想要的样式表后,到第二个网站复制代码,复制到自己的项目中即可 <!--pages/register/re ...
- linu下nginx的安装
这里用到的环境是nginx-1.8.0,linux用的是CentOS-7-x86_64-DVD-1804.iso版本 1 什么是nginx Nginx ("engine x") ...
- join 和 left join 和 right join的区别?
join等价于 inner join 是内连接 ,返回两个表都有的符合条件的行. left join 是左连接,返回坐表中所有的行以及右表中符合条件的行. right join右连接,是返回右表中所有 ...
- Django - 一对多跨表操作
1.views.py 2.host.html 运行结果: 通过外键,来进行多表取值(多表取值包括后台取值及前端获取): 多表获取数据时,可以通过以下几种方式实现: 1.从query set 中获取某 ...