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的更多相关文章

  1. Red Gate - SQL Source Control实现对SQL SERVER 的源代码控制

    原文地址:http://bbs.csdn.net/topics/350165431 SQL Server 一直没有一款很好的源码控制器,之前自己曾尝试自己写一个,将所有的 脚本 自动生成到某一目录下, ...

  2. 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 ...

  3. 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 ...

  4. 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 ...

  5. edit filter rules in sql source control

    https://documentation.red-gate.com/soc6/common-tasks/exclude-objects-using-filters 如果有人上传了filter,nam ...

  6. SQL Source Control

    https://documentation.red-gate.com/display/SOC5/SQL+Source+Control+5+documentation Working with migr ...

  7. 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 ...

  8. sql server 2012中red gate的sql source control消失

    找到C:\ProgramData\Microsoft\SQL Server Management Studio\11.0\Addins路径,用notepad++打开RedGate.SIPFramewo ...

  9. 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 ...

随机推荐

  1. 整合springboot,angular2,可以前后台交互数据

    改造了一下angular2官方文档中的hero项目,让其可以进行后台的交互, https://github.com/DACHUYIN 源码在上面...博客就不写了....

  2. Hive扩展功能(三)--使用UDF函数将Hive中的数据插入MySQL中

    软件环境: linux系统: CentOS6.7 Hadoop版本: 2.6.5 zookeeper版本: 3.4.8 主机配置: 一共m1, m2, m3这五部机, 每部主机的用户名都为centos ...

  3. Google开源技术protobuf

    1.protobuf简介 protobuf是google提供的一个开源序列化框架,类似于XML,JSON这样的数据表示语言,其最大的特点是基于二进制,因此比传统的XML表示高效短小得多.虽然是二进制数 ...

  4. HDU_5723_最小生成树+任意两点距离的期望

    Abandoned country Time Limit: 8000/4000 MS (Java/Others)    Memory Limit: 65536/65536 K (Java/Others ...

  5. JavaScript ES 数组系列

    正文从这开始- ECMAScript 5.1 中提供的数组方法 其中部分方法,ECMAScript 3 就出现了,但是本文不再细分. ECMA-262/5.1 规范:https://www.ecma- ...

  6. react typescript 子组件给父组件传值

    //父组件 import * as React from 'react'import { Input } from 'antd'const Search = Input.Searchimport &q ...

  7. 阅读《JavaScript设计模式》第三章心得

    简单工厂模式 1.通过类实例化对象创建 传统的用面向对象方法去创建很多类去实现某些功能不妥当,这样不仅占用的很多类名称,而且别人使用这些方法的同时要记住每个类的名字,所以这样不适合团队开发,所以我们可 ...

  8. 学习MPI并行编程记录

    简单的MPI程序示例 首先,我们来看一个简单的MPI程序实例.如同我们学习各种语言的第一个程序一样,对于MPI的第一个程序同样是"Hello Word". /* Case 1 he ...

  9. 1.2 Java“白皮书”的关键术语

        Java的设计者已经编写了颇有影响力的“白皮书”,来解释设计的初衷以及完成的情况,并且发布了一个简短的摘要.这个摘要用下面11个关键术语进行组织: 简单性 面向对象 分布式 健壮性 安全性 体 ...

  10. hdu2002 计算球体积【C++】

    计算球体积 Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others)Total Submi ...