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 ...
随机推荐
- html5——表单
type类型 email //输入email格式 tel //手机号码 url //只能输入url格式 number //只能输入数字 search //搜索框 range //范围 滑动条 colo ...
- html——标签选择器
交集选择器:标签+类(ID)选择器{属性:值:}.即要满足使用了某个标签,还要满足使用了类(id)选择器. <!DOCTYPE html> <html> <head> ...
- c指针之内存释放
// 1.正常使用包含指针的结构体 // 2.正常使用元素类型为指针的vector #include<string.h> #include<stdio.h> #include& ...
- mounted钩子问题
recommend.vue <script type="text/ecmascript-6"> import Slider from 'base/slider/slid ...
- day02 python
列表: : 在[ ]内,可以存放多个任意类型的值: 并以逗号隔开. 一般用于存放学生的爱好:课堂的周期等等... 例如: 定义一个学生列表,可存放多个学生 list(['钱垚', '李小龙', '张全 ...
- 使用GetMirror一次镜像多个实体
public static void GetMirror(this ObjectIdCollection ids, Point3d p1, Point3d p2, bool s, params Ent ...
- Centos7自动式脚本搭建jumpserver
JumpServer脚本 这里需要安装阿里的yum源和epel源并解压: epel源地址https://mirrors.tuna.tsinghua.edu.cn/epel// 安装阿里互联网yum仓库 ...
- SqlServer大数据的分区方案
这里介绍的是大数据量的维护日志的分区解决方案: 每个月1张数据表,1个分组文件.31个分区(按每天1个分区).... 为了日后维护方便,直接删除旧的日志数据文件就可以,而不需要去做分区压缩. --用的 ...
- kafka监控工具kafka-manager
1.几个kafka监控工具 Kafka Web Console:监控功能较为全面,可以预览消息,监控Offset.Lag等信息,但存在bug,不建议在生产环境中使用. Kafka Manager:偏向 ...
- Linux中安装MongoDB出现的问题记录
mongoDB安装完成后,运行sudo service mongod start 查看程序状态:ps ajx | grep mongod ,启动失败 查看失败信息提示,终端命令:tail -f / ...