Displays meters inline in Info SQL.
Gets one or more meters to display.
Possible value | Description |
---|---|
Default | |
Green | |
Red | |
Yellow |
CREATE PROCEDURE [dbo].[MeterExample]
@Id int
AS
BEGIN
SELECT
80 AS Value,
0 AS ScaleStart,
100 AS ScaleEnd;
SELECT
0 AS IntervalStart,
10 AS IntervalEnd,
'Green' AS ColorName
UNION ALL
SELECT
90 AS IntervalStart,
100 AS IntervalEnd,
'Red' AS ColorName;
END;
CREATE PROCEDURE [dbo].[MeterExample2]
@Id int
AS
BEGIN
SELECT
1 AS MeterId,
80 AS Value,
0 AS ScaleStart,
300 AS ScaleEnd,
'MKR' AS Unit,
'Income' AS Heading,
20 AS ScaleStepSize
UNION ALL
SELECT
2 AS MeterId,
5 AS Value,
0 AS ScaleStart,
20 AS ScaleEnd,
'%' AS Unit,
'Profit' AS Heading,
2 AS ScaleStepSize;
SELECT
1 AS MeterId,
0 AS IntervalStart,
100 AS IntervalEnd,
'Red' AS ColorName
UNION ALL
SELECT
1 AS MeterId,
200 AS IntervalStart,
280 AS IntervalEnd,
'Green' AS ColorName
UNION ALL
SELECT
1 AS MeterId,
100 AS IntervalStart,
200 AS IntervalEnd,
'Yellow' AS ColorName
UNION ALL
SELECT
2 AS MeterId,
0 AS IntervalStart,
4 AS IntervalEnd,
'Red' AS ColorName;
SELECT
1 AS MeterId,
40 AS IndicatorValue
UNION ALL
SELECT
1 AS MeterId,
60 AS IndicatorValue
UNION ALL
SELECT
2 AS MeterId,
3 AS IndicatorValue;
END;