• Nice script!

    I just added another option to the VersionName CASE statement to make the script aware of SQL Server 2016:

    when convert(varchar(100),SERVERPROPERTY(N'ProductVersion')) like '13.0%' then 'SQL Server 2016'

    and removed a duplicate option for SQL Server 2008.

    Thanks!