diff --git a/AzureDataStudioExtension/CHANGELOG.md b/AzureDataStudioExtension/CHANGELOG.md index 6a1e3422..23fed47d 100644 --- a/AzureDataStudioExtension/CHANGELOG.md +++ b/AzureDataStudioExtension/CHANGELOG.md @@ -1,6 +1,6 @@ # Change Log -## [v8.0.0](https://github.com/MarkMpn/Sql4Cds/releases/tag/v8.0.0) - 2023-11-18 +## [v8.0.0](https://github.com/MarkMpn/Sql4Cds/releases/tag/v8.0.0) - 2023-11-25 Added Common Table Expression support: - Non-recursive CTEs are expanded to subqueries for compatibility with TDS Endpoint diff --git a/MarkMpn.Sql4Cds.SSMS/Reflection/DisplaySQLResultsControlWrapper.cs b/MarkMpn.Sql4Cds.SSMS/Reflection/DisplaySQLResultsControlWrapper.cs index 2d2ba086..c3484ddb 100644 --- a/MarkMpn.Sql4Cds.SSMS/Reflection/DisplaySQLResultsControlWrapper.cs +++ b/MarkMpn.Sql4Cds.SSMS/Reflection/DisplaySQLResultsControlWrapper.cs @@ -1,5 +1,6 @@ using System; using System.Collections.Generic; +using System.Diagnostics; using System.Linq; using System.Reflection; using System.Text; @@ -62,8 +63,9 @@ public void StartExecution() if (VersionChecker.Result.IsCompleted && !VersionChecker.Result.IsFaulted && VersionChecker.Result.Result > currentVersion) { + var ssmsVersion = Process.GetCurrentProcess().MainModule.FileVersionInfo.ProductMajorPart; AddStringToErrors(" An updated version of SQL 4 CDS is available", true); - AddStringToMessages($" Update to v{VersionChecker.Result.Result.ToString(3)} available from https://markcarrington.dev/sql-4-cds/"); + AddStringToMessages($" Update to v{VersionChecker.Result.Result.ToString(3)} available from https://github.com/MarkMpn/Sql4Cds/releases/download/v{VersionChecker.Result.Result.ToString(3)}/MarkMpn.Sql4Cds.SSMS.{ssmsVersion}.Setup.msi"); AddStringToMessages(""); } }