mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-02-17 02:51:45 -05:00
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:
@@ -46,6 +46,6 @@ IF (@filepath IS NULL)
|
|||||||
SELECT @filepath AS FilePath
|
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)))";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -46,7 +46,7 @@ IF (@filepath IS NULL)
|
|||||||
SELECT @filepath AS FilePath
|
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
|
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];";
|
SELECT [service_name], [ip_address], [port] FROM [master].[dbo].[cluster_endpoint_info];";
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user