首先了解几个定义:

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. Graphics for R

    https://cran.r-project.org/web/views/Graphics.html CRAN Task View: Graphic Displays & Dynamic Gr ...

  2. _itemmod_extract_enchant

    comment 备注 entry 物品ID CanExtract 1 - 可提取随机FM 0 - 不可提取随机FM,当CanExtract = 1 且有随机FM效果时,随机FM效果会被提取 CanEn ...

  3. hdu 1011 Starship Troopers 树形背包dp

    Starship Troopers Time Limit: 10000/5000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Other ...

  4. tomcat热部署.class

    本人是在维护公司系统时遇到的问题,由于公司的系统是部署到客户服务器上,而系统中存在的问题又比较多,需要经常维护.如果每次修改完class文件后都需要去重启服务器, 那会给用户的使用造成不便,所以需要使 ...

  5. sklearn preprocessing (预处理)

    预处理的几种方法:标准化.数据最大最小缩放处理.正则化.特征二值化和数据缺失值处理. 知识回顾: p-范数:先算绝对值的p次方,再求和,再开p次方. 数据标准化:尽量将数据转化为均值为0,方差为1的数 ...

  6. VC.时间_ZC测试代码

    1. #include <windows.h> #include <stdio.h> void TimeNowZ( char* _pc ) { SYSTEMTIME sys; ...

  7. 力扣 (LeetCode)657. 机器人能否返回原点

    在二维平面上,有一个机器人从原点 (0, 0) 开始.给出它的移动顺序,判断这个机器人在完成移动后是否在 (0, 0) 处结束. 移动顺序由字符串表示.字符 move[i] 表示其第 i 次移动.机器 ...

  8. highchart柱状堆叠图动态数据请求

    $(function () { var options = { chart: { renderTo: 'indoor', type: 'column', }, title: { text: '室内问题 ...

  9. Asp.net core 学习笔记 ( HttpClient )

    2018-09-18 core 2.1 之后有新的方案咯 http://www.talkingdotnet.com/3-ways-to-use-httpclientfactory-in-asp-net ...

  10. boke练习: springboot整合springSecurity出现的问题,post,delete,put无法使用

    springboot 与 SpringSecurity整合后,为了防御csrf攻击,只有GET|OPTIONS|HEAD|TRACE|CONNECTION可以通过. 其他方法请求时,需要有token ...