11
2- IF EXISTS (SELECT NULL FROM sys .tables WHERE [name] = ' SqlServerVersions' )
3- DROP TABLE dbo . SqlServerVersions ;
2+ IF NOT EXISTS (SELECT NULL FROM sys .tables WHERE [name] = ' SqlServerVersions' )
3+ BEGIN
44
5- CREATE TABLE dbo .SqlServerVersions
6- (
7- MajorVersionNumber tinyint not null ,
8- MinorVersionNumber smallint not null ,
9- Branch varchar (34 ) not null ,
10- [Url] varchar (99 ) not null ,
11- ReleaseDate date not null ,
12- MainstreamSupportEndDate date not null ,
13- ExtendedSupportEndDate date not null ,
14- MajorVersionName varchar (19 ) not null ,
15- MinorVersionName varchar (67 ) not null
16- );
5+ CREATE TABLE dbo .SqlServerVersions
6+ (
7+ MajorVersionNumber tinyint not null ,
8+ MinorVersionNumber smallint not null ,
9+ Branch varchar (34 ) not null ,
10+ [Url] varchar (99 ) not null ,
11+ ReleaseDate date not null ,
12+ MainstreamSupportEndDate date not null ,
13+ ExtendedSupportEndDate date not null ,
14+ MajorVersionName varchar (19 ) not null ,
15+ MinorVersionName varchar (67 ) not null ,
1716
18- insert into dbo .SqlServerVersions
17+ CONSTRAINT PK_SqlServerVersions PRIMARY KEY CLUSTERED
18+ (
19+ MajorVersionNumber ASC ,
20+ MinorVersionNumber ASC ,
21+ ReleaseDate ASC
22+ )
23+ );
24+
25+ END;
26+
27+ DELETE dbo .SqlServerVersions ;
28+
29+ INSERT INTO dbo .SqlServerVersions
1930 (MajorVersionNumber, MinorVersionNumber, Branch, [Url], ReleaseDate, MainstreamSupportEndDate, ExtendedSupportEndDate, MajorVersionName, MinorVersionName)
20- values
31+ VALUES
32+ (14 , 3030 , ' RTM CU9' , ' https://support.microsoft.com/en-us/help/4341265' , ' 2018-07-18' , ' 2022-10-11' , ' 2027-10-12' , ' SQL Server 2017' , ' RTM Cumulative Update 9' ),
2133 (14 , 3029 , ' RTM CU8' , ' https://support.microsoft.com/en-us/help/4338363' , ' 2018-06-21' , ' 2022-10-11' , ' 2027-10-12' , ' SQL Server 2017' , ' RTM Cumulative Update 8' ),
2234 (14 , 3026 , ' RTM CU7' , ' https://support.microsoft.com/en-us/help/4229789' , ' 2018-05-23' , ' 2022-10-11' , ' 2027-10-12' , ' SQL Server 2017' , ' RTM Cumulative Update 7' ),
2335 (14 , 3025 , ' RTM CU6' , ' https://support.microsoft.com/en-us/help/4101464' , ' 2018-04-17' , ' 2022-10-11' , ' 2027-10-12' , ' SQL Server 2017' , ' RTM Cumulative Update 6' ),
@@ -27,8 +39,10 @@ values
2739 (14 , 3008 , ' RTM CU2' , ' https://support.microsoft.com/en-us/help/4052574' , ' 2017-11-28' , ' 2022-10-11' , ' 2027-10-12' , ' SQL Server 2017' , ' RTM Cumulative Update 2' ),
2840 (14 , 3006 , ' RTM CU1' , ' https://support.microsoft.com/en-us/help/4038634' , ' 2017-10-24' , ' 2022-10-11' , ' 2027-10-12' , ' SQL Server 2017' , ' RTM Cumulative Update 1' ),
2941 (14 , 1000 , ' RTM ' , ' ' , ' 2017-10-02' , ' 2022-10-11' , ' 2027-10-12' , ' SQL Server 2017' , ' RTM ' ),
42+ (13 , 5153 , ' SP2 CU2' , ' https://support.microsoft.com/en-us/help/4340355' , ' 2018-07-16' , ' 2021-07-13' , ' 2026-07-14' , ' SQL Server 2016' , ' Service Pack 2 Cumulative Update 2' ),
3043 (13 , 5149 , ' SP2 CU1' , ' https://support.microsoft.com/en-us/help/4135048' , ' 2018-05-30' , ' 2021-07-13' , ' 2026-07-14' , ' SQL Server 2016' , ' Service Pack 2 Cumulative Update 1' ),
3144 (13 , 5026 , ' SP2 ' , ' https://support.microsoft.com/en-us/help/4052908' , ' 2018-04-24' , ' 2021-07-13' , ' 2026-07-14' , ' SQL Server 2016' , ' Service Pack 2 ' ),
45+ (13 , 4514 , ' SP1 CU10' , ' https://support.microsoft.com/en-us/help/4341569' , ' 2018-07-16' , ' 2019-07-09' , ' 2019-07-09' , ' SQL Server 2016' , ' Service Pack 1 Cumulative Update 10' ),
3246 (13 , 4502 , ' SP1 CU9' , ' https://support.microsoft.com/en-us/help/4100997' , ' 2018-05-30' , ' 2019-07-09' , ' 2019-07-09' , ' SQL Server 2016' , ' Service Pack 1 Cumulative Update 9' ),
3347 (13 , 4474 , ' SP1 CU8' , ' https://support.microsoft.com/en-us/help/4077064' , ' 2018-03-19' , ' 2019-07-09' , ' 2019-07-09' , ' SQL Server 2016' , ' Service Pack 1 Cumulative Update 8' ),
3448 (13 , 4466 , ' SP1 CU7' , ' https://support.microsoft.com/en-us/help/4057119' , ' 2018-01-04' , ' 2019-07-09' , ' 2019-07-09' , ' SQL Server 2016' , ' Service Pack 1 Cumulative Update 7' ),
@@ -285,4 +299,4 @@ values
285299 (10 , 1787 , ' RTM CU3' , ' https://support.microsoft.com/en-us/help/960484' , ' 2009-01-19' , ' 2014-07-08' , ' 2019-07-09' , ' SQL Server 2008' , ' RTM Cumulative Update 3' ),
286300 (10 , 1779 , ' RTM CU2' , ' https://support.microsoft.com/en-us/help/958186' , ' 2008-11-19' , ' 2014-07-08' , ' 2019-07-09' , ' SQL Server 2008' , ' RTM Cumulative Update 2' ),
287301 (10 , 1763 , ' RTM CU1' , ' https://support.microsoft.com/en-us/help/956717' , ' 2008-09-22' , ' 2014-07-08' , ' 2019-07-09' , ' SQL Server 2008' , ' RTM Cumulative Update 1' ),
288- (10 , 1600 , ' RTM ' , ' ' , ' 2008-08-06' , ' 2014-07-08' , ' 2019-07-09' , ' SQL Server 2008' , ' RTM ' );
302+ (10 , 1600 , ' RTM ' , ' ' , ' 2008-08-06' , ' 2014-07-08' , ' 2019-07-09' , ' SQL Server 2008' , ' RTM ' );
0 commit comments