mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-01-23 17:24:12 -05:00
Hotfix for ads dashboard for sqlondemand (#885)
* Hotfix for ads dashboard for sqlondemand * Generalizing engine edition functions and adapting tests * Minor comment and cosmetic fixes * Adding SqlOnDemand server edition string
This commit is contained in:
committed by
BranislavGrbicMDCS
parent
d75edd0dbe
commit
84c505f647
@@ -477,9 +477,12 @@ namespace Microsoft.SqlTools.CoreServices.Connection
|
||||
case (int) DatabaseEngineEdition.SqlDataWarehouse:
|
||||
serverEdition = SR.AzureSqlDwEdition;
|
||||
break;
|
||||
case (int) DatabaseEngineEdition.SqlStretchDatabase:
|
||||
case (int)DatabaseEngineEdition.SqlStretchDatabase:
|
||||
serverEdition = SR.AzureSqlStretchEdition;
|
||||
break;
|
||||
case (int)DatabaseEngineEdition.SqlOnDemand:
|
||||
serverEdition = SR.AzureSqlAnalyticsOnDemandEdition;
|
||||
break;
|
||||
default:
|
||||
serverEdition = SR.AzureSqlDbEdition;
|
||||
break;
|
||||
|
||||
@@ -101,6 +101,14 @@ namespace Microsoft.SqlTools.CoreServices
|
||||
}
|
||||
}
|
||||
|
||||
public static string AzureSqlAnalyticsOnDemandEdition
|
||||
{
|
||||
get
|
||||
{
|
||||
return Keys.GetString(Keys.AzureSqlAnalyticsOnDemandEdition);
|
||||
}
|
||||
}
|
||||
|
||||
public static string QueryServiceCancelAlreadyCompleted
|
||||
{
|
||||
get
|
||||
@@ -3764,6 +3772,9 @@ namespace Microsoft.SqlTools.CoreServices
|
||||
public const string AzureSqlStretchEdition = "AzureSqlStretchEdition";
|
||||
|
||||
|
||||
public const string AzureSqlAnalyticsOnDemandEdition = "AzureSqlAnalyticsOnDemandEdition";
|
||||
|
||||
|
||||
public const string QueryServiceCancelAlreadyCompleted = "QueryServiceCancelAlreadyCompleted";
|
||||
|
||||
|
||||
|
||||
@@ -51,6 +51,7 @@ ConnectionParamsValidateNullSqlAuth(string component) = {0} cannot be null or em
|
||||
AzureSqlDbEdition = Azure SQL DB
|
||||
AzureSqlDwEdition = Azure SQL Data Warehouse
|
||||
AzureSqlStretchEdition = Azure SQL Stretch Database
|
||||
AzureSqlAnalyticsOnDemandEdition = Azure SQL Analytics on-demand
|
||||
|
||||
############################################################################
|
||||
# Query Execution Service
|
||||
|
||||
@@ -2296,6 +2296,11 @@
|
||||
<target state="new">Azure SQL Stretch Database</target>
|
||||
<note></note>
|
||||
</trans-unit>
|
||||
<trans-unit id="AzureSqlAnalyticsOnDemandEdition">
|
||||
<source>Azure SQL Analytics on-demand</source>
|
||||
<target state="new">Azure SQL Analytics on-demand</target>
|
||||
<note></note>
|
||||
</trans-unit>
|
||||
<trans-unit id="Error_InvalidDirectoryName">
|
||||
<source>Path {0} is not a valid directory </source>
|
||||
<target state="new">Path {0} is not a valid directory </target>
|
||||
|
||||
Reference in New Issue
Block a user