Fix Dashboard OS version script (#804)

* fix OS version script

* lower everything to find keyword

* add check to another file
This commit is contained in:
Aditya Bist
2019-05-03 16:20:19 -07:00
committed by GitHub
parent a24a107f21
commit eb2044155b
2 changed files with 2 additions and 2 deletions

View File

@@ -46,7 +46,7 @@ IF (@filepath IS NULL)
SELECT @filepath AS FilePath
";
public const string GetOsVersion = @"SELECT OSVersion = RIGHT(@@version, LEN(@@version)- 3 -charindex (' ON ', @@version))";
public const string GetOsVersion = @"SELECT OSVersion = RIGHT(@@version, LEN(@@version)- 3 -charindex (' on ', LOWER(@@version)))";
public const string GetClusterEndpoints = @"IF OBJECT_ID (N'master.dbo.cluster_endpoint_info') IS NOT NULL
SELECT [service_name], [ip_address], [port] FROM [master].[dbo].[cluster_endpoint_info];";
}