Skip to content

Instantly share code, notes, and snippets.

<#
Work in progress
Pull build versions into PSObjects from the super-useful https://sqlserverbuilds.blogspot.co.uk
#>
#$Blog = Invoke-WebRequest https://sqlserverbuilds.blogspot.co.uk/
$TablesHtml = [regex]::Matches(
$Blog.RawContent,
@fsackur
fsackur / Get-SqlVersionName.ps1
Created February 8, 2017 17:00 — forked from indented-automation/Get-SqlVersionName.ps1
SQL version lookup table
function Get-SqlVersionName {
param(
[Version]$Version
)
$lookup = @{
'Name' = ('Major', 'Minor', 'RTM', 'SP1', 'SP2', 'SP3', 'SP4')
'2016' = ( 13, 0, 1601, 4001 )
'2014' = ( 12, 0, 2000, 4100, 5000 )
'2012' = ( 11, 0, 2100, 3000, 5058, 6020 )