set issupportedVersion flag (#1255)

This commit is contained in:
Alan Ren
2021-10-04 14:49:36 -07:00
committed by GitHub
parent 0c95a511d0
commit ee3588df75
2 changed files with 12 additions and 0 deletions

View File

@@ -480,6 +480,8 @@ namespace Microsoft.SqlTools.ServiceLayer.Connection
connectionInfo.IsSqlDb = serverInfo.EngineEditionId == (int)DatabaseEngineEdition.SqlDatabase;
connectionInfo.IsSqlDW = (serverInfo.EngineEditionId == (int)DatabaseEngineEdition.SqlDataWarehouse);
connectionInfo.EngineEdition = (DatabaseEngineEdition)serverInfo.EngineEditionId;
// Azure Data Studio supports SQL Server 2014 and later releases.
response.IsSupportedVersion = serverInfo.IsCloud || serverInfo.ServerMajorVersion >= 12;
}
catch (Exception ex)
{