首先了解几个定义:

RTM : 表示 Release to Manufacturing ,这是产品的原始发布版本,当从光盘或 MSDN 下载的默认版本。不过现在下载 SQL Server 版本时,也有集成了 SP 的版本。

Hotfix :需要修复的某个问题,每年 SQL Server 会出现许多bug或漏洞,这些问题d修复则被定义为 Hotfix。

Cumulative Update(CU):累计更新包,由 Hotfix 组成。CU 每8个星期发布一次,所以会有 CU1、CU2……等,每个最新的CU版本都包含之前的CU中的Hotfix。 CU 的安装基于原始版本(RTM)或 SP。

Service Package (SP): SP是集成 Hotfix 最多的包,这些 Hotfix是经过官方完整测试过的。SP 是 SQL Server 产品版本最大的一次补丁文件,每12至18月发布一次。

每一个最新的 CU 都包含之前的 CU 集成的问题修复,每一个 SP 也都包含之前 SP 包含的问题修复。现在看一张图,就知道 SQL Server 是怎么修复补丁了!

General Distribution Release(GDR) :A GDR fix contains issues that are security-related and/or have a wide impact,and are released without any other critical updates that have been released for the specific branch.These are typically used by customers who need the fixes they contain,but don't have the resources to test all of the other fixes that come with Cumulative Updates.

Quick-Fix Engineering(QFE):This is a potentially less-tested fix(also sometimes called a hotfix) that gets distributed to a small number of customers for a very specific issue,through a COD or CU.(In the Windows world,this is called an LDR-Limited Distribution Release-but that nomenclature has not caught on in the SQL Server team.)

At my previous job,we received a private QFE for a SQL Server 2005 issue with temporary tables for destruction.That fix eventually made it into Service Pach(though I can't recall if it was an officially documented issue).

以 SQL Server 2014 为例

(为便于理解: RTM 相当于完整备份,SP 相当于差异备份,CU 相当于更小的差异备份,GDR 则相当于备份某张表)

由图可看,如果 SQL Server 2014 刚发布就我们就很快使用,那我们就经常遇到各种可能的问题,所以最好等上一两年再使用,当然有些问题可以忽略。但是,最好打上最新的补丁。

GDR (General Distribution Release)与 CU 不一样,每个最新的CU都包含基于 RTM/SP 以来的累计更新, GDR 仅仅包含严重的更新。

过去我只是用 SP 修复这些问题,但是即使安装最新的 SP 后,后来又确认了一些问题。如上图 SQL Server 2014 SP2 后,也就是现在(截至 2017-04-21),又确认出了 二十多个Hotfix(Cumulative Update 5 for SQL Server 2014 SP2)。也许不久, SQL Server 2014 将会把 SP2及最新的CU 的Hotfix合并为 SP3。

现在测试:

注意,打补丁前最好备份好数据库,包括系统数据库!

查看当前版本,好确定需要下载哪些补丁:

主版本为 SQL Server 2014 ,按最上面的图显示,先下载最新的 SP2 :

SP2详细介绍:SQL Server 2014 Service Pack 2 release information

SP2下载地址: Microsoft? SQL Server? 2014 Service Pack 2 (SP2)

下载文件为 SQLServer2014SP2-KB3171021-x64-CHS.exe ,双机进行安装。

安装完成!再查看版本:

现在变成 SP2 了,已经安装完成,生产环境最好重启一次服务器。

接下来应该安装 Cumulative Update 5 ,此处为了测试,现在安装 SQL Server 2014 Service Pack 2 GDR。

GDR 详细介绍:MS16-136: Description of the security update for SQL Server 2014 Service Pack 2 GDR: November 8, 2016

GDR下载地址:SQL Server 2014 Service Pack 2 GDR 安全性更新 (KB3194714)

GDR下载文件为:SQLServer2014-KB3194714-x64.exe,双机进行安装,操作与安装 SP 一样!

现在接着安装 Cumulative Update 5 ,此 CU5 基于 SP2 ,因此前面先安装 SP2 。

CU5 详细介绍:Cumulative Update 5 for SQL Server 2014 SP2

CU5 下载地址:Microsoft? SQL Server? 2014 SP2 最新累积更新 SQL Server 2014 SP2 累积更新包 5 - KB4013098 (当时最新为 CU5)

CU5 下载文件为 SQLServer2014-KB4013098-x64.exe ,双机进行安装,操作与安装 SP 一样!

查看 windows 更新程序,可以看到 SP2、CU5、GDR 三个更新。

对于回滚,可以按反序逐个右键卸载!卸载后必须重启服务器!

若在卸载 Cumulative Update 5 的时候弹出以下提示,报表sharepoint相关,根据提示在SQL Server 2014 的安装包里面找到对应的文件就行。

附:SQL SERVER版本及补丁

Product Version

Latest Service Pack

Latest GDR Update

Latest Cumulative Update

CU Release Date

General Guidance

SQL Server 2016

SP1 (KB 3182545)

3210089

CU 2 (KB 4013106)

3/20/2017

SQL Server 2016 Installation

SQL Server 2016

N/A

3210111

CU 5 (KB 4013105)

3/20/2017

SQL Server 2016 Installation

SQL Server 2014

SP2 (KB 3171021)

MS16-136

CU 5 (KB 4013098)

4/17/2017

SQL Server 2014 Installation

SQL Server 2014

SP1 (KB 3058865)

MS16-136

CU 12 (KB 4017793)

4/17/2017

SQL Server 2014 Installation

SQL Server 2014

N/A

MS15-058

CU 14 (KB 3158271)

6/20/2016

SQL Server 2014 Installation

SQL Server 2012

SP3 (KB 3072779)

MS16-136

CU 8 (KB 4013104)

3/21/2017

SQL Server 2012 Installation

SQL Server 2012

SP2 (KB 2958429)

MS16-136

CU 16 (KB 3205054)

1/18/2017

SQL Server 2012 Installation

SQL Server 2012

SP1 (KB 2674319)

MS15-058

CU 16 (KB 3052476)

5/18/2015

SQL Server 2012 Installation

SQL Server 2008 R2

SP3 (KB 2979597)

MS15-058

N/A

N/A

SQL Server 2008 R2 SP3 Installation

SQL Server 2008 R2

SP2 (KB 2630458)

MS15-058

CU 13 (KB 2967540)

6/30/2014

SQL Server 2008 R2 SP2 Installation

SQL Server 2008

SP4 (KB 2979596)

MS15-058

N/A

N/A

SQL Server 2008 Servicing

SQL Server 2008

SP3 (KB 2546951)

MS15-058

CU 17 (KB 2958696)

5/19/2014

SQL Server 2008 Servicing

SQL Server 2005

SP4 (KB 2463332)

N/A

N/A

N/A

SQL Server 2005 Installation

SQL Server 2000

SP4 (KB 290211)

N/A

N/A

N/A

SQL Server 2000 Installation

 

SQL SERVER版本补丁体系及升级的更多相关文章

  1. sql server版本、组件和管理工具

    以下信息由何问起收集,希望有帮助. SQL Server 版本 定义 Enterprise 作为高级版本, SQL Server Enterprise 版提供了全面的高端数据中心功能,性能极为快捷.虚 ...

  2. 使用的 SQL Server 版本不支持数据类型“datetime2”.

    错误原因,在使用ado.net entity的时候,entity使用的数据库是sqlserver 2008, 但后来实际使用中使用的数据库是sqlserver 2005, 使用的 SQL Server ...

  3. ef SQL Server 版本不支持数据类型“datetime2”

    我遇到这个问题是在用数据库模型的时候.当时我电脑上是sql2008 通过vs2010建立了一个ADO.net数据库模型,之后在项目上线的时候,临时把数据库换成了sql2005,在添加新闻的时候出现了“ ...

  4. PIVOT 和 UNPIVOT 命令的SQL Server版本

    I:使用 PIVOT 和 UNPIVOT 命令的SQL Server版本要求 1.数据库的最低版本要求为 SQL Server 2005 或 更高 2.必须将数据库的兼容级别设置为 90 或 更高 3 ...

  5. C#检验IIS版本、SQL Server版本、SilverLight版本

    之前做一个小项目,使用C#检验这些软件的版本,到处找了一些代码,也能作用,记录一下,以防以后用到. 一.检验IIS版本 public static bool checkIIS(string destV ...

  6. PCB MS SQL SERVER版本管控工具source_safe_for_sql_server

    PCB由于业务关系复杂,业务触发一个事件时,可能需与数据库多个表进行关连处理才能拿到数据结果, 而表关连并不是简单的关连,实际是要进行大量数据筛选,逻辑判断,转换等过程...这个过程是复杂的 想一想, ...

  7. [转帖]sql server版本特性简介、版本介绍简介

    sql server版本特性简介.版本介绍简介 https://www.cnblogs.com/gered/p/10986240.html 目录 1.1.sql server的版本信息 1.2.版本重 ...

  8. sql server版本特性简介、版本介绍简介

    1.SQL Server 版本简介 1.1.sql server的版本信息 年    代 版    本 大版本号 1993年 SQL Server for Windows NT 4.21 1994年 ...

  9. 杂谈--SQL SERVER版本

    SQL SERVER 内部版本号: SQL   Server Version Internal Database Version SQL Server 2014 782 SQL Server 2012 ...

随机推荐

  1. HDU 6212 Zuma(区间dp)

    http://acm.hdu.edu.cn/showproblem.php?pid=6212 题意:有一行的祖玛,只由1和0组成,每次出现连续三个及以上的就会消去,问你最少需要发射多少个球才能消完. ...

  2. 【BZOJ】3527: [Zjoi2014]力

    题目链接:http://www.lydsy.com/JudgeOnline/problem.php?id=3527 把${f_i}$消去之后换元就是卷积的形式,直接算就可以了. #include< ...

  3. hdu 3094 A tree game 树上sg

    A tree game Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others) Prob ...

  4. 百度“搜索设置”之基于定位下拉框或者需要点击link才显示的下拉框,二次定位与多次定位实现的实际效果区别

    还是基于上次那个练习的后续出现的思考,http://www.cnblogs.com/8013-cmf/p/6555790.html 界面: 源码: 写法如下:  继续解释这两种的区别: 1.其实基于定 ...

  5. CentOS7 使用firewalld打开关闭防火墙以及端口

    1.firewalld的基本使用 启动 systemctl start firewalld 关闭 systemctl stop firewalld 查看状态 systemctl status fire ...

  6. CentOS 7 安装pip2

    使用yum安装python-pip,但是报错,说没有可用的包 安装epel源 [root@sishen yum.repos.d]# yum install -y epel-release 然后再安装 ...

  7. ERROR: child process failed, exited with error number 100

    [root@localhost ~]# mongod --dbpath=/usr/local/mongodb/data --logpath=/usr/local/mongodb/logs --loga ...

  8. Python 注释,类,属性,方法,继承

    # coding=utf-8 支持中文 """ 多行注释 声明鸟类 """ class Bird(object): have_feather ...

  9. [原][粒子特效][spark]事件action

    深入浅出spark粒子特效连接:https://www.cnblogs.com/lyggqm/p/9956344.html group调用action的地方: 可以看到使用action的可以是出生一次 ...

  10. GridView实现拖拽排序以及数据交互

    在研究项目中的一个效果的时候,查找资料过程中发现有人有这么一种需求,就是GridView在实现拖拽排序的基础上,如果是两个GridView之间实现拖拽效果,并要实现数据交互. 一.效果图: 实现这个效 ...