--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==
--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==
-- Measurement Store Default Data Script
--
-- This file creates the measurement relationships in the measurement store.
--
-- The contents of this file were automatically generated using:
-- database/DefaultData/MeasurementStore/GenerateMeasurementDefaultData.sql
--
-- Standard Measurement Namespace:
-- http://rddl.xmlinside.net/PowerMeasurement/configuration/measurement/1/#
-- Standard Qualifier Namespace:
-- http://rddl.xmlinside.net/PowerMeasurement/configuration/measurement/qualifier/1/#
--
-- The arguments to spTS_StandardRelationship_Add are as follows:
--
--    @aMeasurementName       The non-namespace part of the measurement signature. This
--                            becomes the subject of the relationsip.
--                            The sproc does some simple string-replacement encoding,
--                            so A standard name could also be used. However, the only
--                            character that is encoded is the space.
--                            The standard measurement namespace value is used for 
--                            both the model and subject namespace.
--
--    @aQualifierName         The non-namespace part of the qualifier signature. This 
--                            becomes the predicate of the relationship. The standard 
--                            qualifier namespace is always used for the predicate.
--
--    @aQualifierValue        The non-namespace part of the qualifier value. This 
--                            becomes the object of the relationship. The namespace
--                            is determined by the @aQualifierType parameter.
--
--  !*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!
--  !*!*!*!*!*! I M P O R T A N T   I M P O R T A N T   I M P O R T A N T   !*!*!*!*!*!
--  !*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!
--
--      The correct qualifier type is crucial to the correct operatation of the sytem.
--      Do not blindly copy and paste this! If you do not fully understand what the 
--      differences are between qualified values, literal values, and measurement
--      references ASK before you TYPE!
--
--    @aQualifierType         Determines the namespace used for the qualifier value.
--                            It supports the following values:
--
--                                Q:  The value is a Qualified Value that comes from 
--                                    the standard Qualifier namespace. 
--                                    This is the default if no parameter is given
--                                L:  The value is a literal value that has no namespace. 
--                                    An empty string is used for the namespace.
--                                M:  The value references a measurement, and so the 
--                                    standard measurement namespace is used. 
--
--    To define a measurement for which you do not know the qualifiers, DO NOT USE 
--    'unknown' values for qualifiers. Instead, use this line:
--
--       EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L' 
--
--    This is what the Measurement data tier expects to see for an undefined measurement.
--    It is simply a relationship that indicates that no details are known for this measurement.
--
-- (c) 2005 Power Measurement Ltd.
--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==
--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==
USE [--name--]
GO
SET NOCOUNT ON
DECLARE @measurement NVARCHAR(1000)
----------------------------------------------------------------------------
SET @measurement = N'Active Energy Delivered'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'129', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N'Active Energy Delivered Interval', 'M'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/delivered', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/energy', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/watthour', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/lastvalue', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Active Energy Into the Load','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Wp in','L' 

----------------------------------------------------------------------------
SET @measurement = N'Active Energy Delivered Interval'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'134', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/delivered', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/energy', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/watthour', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/sum', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Active Energy Delivered Loss-Compensated Interval'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'195', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/delivered', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/energy', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/watthour', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/sum', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Active Energy Delivered Phase A'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'554', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/delivered', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/an', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/energy', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/watthour', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/sum', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Active Energy Delivered Phase B'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'555', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/delivered', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/bn', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/energy', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/watthour', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/sum', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Active Energy Delivered Phase C'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'556', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/delivered', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/cn', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/energy', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/watthour', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/sum', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Active Energy Delivered Rate A'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'130', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N'Active Energy Delivered Rate A Interval', 'M'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/delivered', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/energy', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'tou', N'rateA', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/watthour', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/lastvalue', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Active Energy Delivered Rate A Interval'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/delivered', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/energy', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'tou', N'rateA', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/watthour', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/sum', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Active Energy Delivered Rate B'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'131', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N'Active Energy Delivered Rate B Interval', 'M'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/delivered', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/energy', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'tou', N'rateB', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/watthour', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/lastvalue', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Active Energy Delivered Rate B Interval'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/delivered', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/energy', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'tou', N'rateB', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/watthour', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/sum', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Active Energy Delivered Rate C'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'132', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N'Active Energy Delivered Rate C Interval', 'M'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/delivered', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/energy', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'tou', N'rateC', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/watthour', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/lastvalue', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Active Energy Delivered Rate C Interval'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/delivered', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/energy', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'tou', N'rateC', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/watthour', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/sum', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Active Energy Delivered Rate D'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'133', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N'Active Energy Delivered Rate D Interval', 'M'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/delivered', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/energy', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'tou', N'rateD', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/watthour', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/lastvalue', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Active Energy Delivered Rate D Interval'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/delivered', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/energy', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'tou', N'rateD', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/watthour', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/sum', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Active Energy Delivered(Mega)'

EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/delivered', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/energy', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/watthour', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/lastvalue', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Active Energy Delivered+Received'

EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N'Active Energy Delivered+Received Interval', 'M'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'198', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/del_plus_rec', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/energy', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/watthour', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/lastvalue', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Active Energy Total','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Wp tot','L'

----------------------------------------------------------------------------
SET @measurement = N'Active Energy Delivered+Received Interval'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/del_plus_rec', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/energy', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/watthour', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/sum', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Active Energy Total Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Wp tot int','L'

----------------------------------------------------------------------------
SET @measurement = N'Active Energy Delivered-Received'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'135', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N'Active Energy Delivered-Received Interval', 'M'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/del_minus_rec', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/energy', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/watthour', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/lastvalue', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Active Energy Delivered-Received Interval'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/del_minus_rec', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/energy', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/watthour', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/sum', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Active Energy in Quadrant I'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'656', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/quadrant_I', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/energy', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/watthour', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/lastvalue', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Active Energy in Quadrant II'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'657', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/quadrant_II', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/energy', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/watthour', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/lastvalue', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Active Energy in Quadrant III'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'658', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/quadrant_III', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/energy', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/watthour', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/lastvalue', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Active Energy in Quadrant IV'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'659', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/quadrant_IV', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/energy', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/watthour', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/lastvalue', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Active Energy Loss Interval'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'197', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/del_minus_rec', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/energy', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/watthour', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/sum', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Active Energy Received'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'139', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N'Active Energy Received Interval', 'M'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/received', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/energy', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/watthour', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/lastvalue', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Active Energy Out of the Load','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Wp out','L'

----------------------------------------------------------------------------
SET @measurement = N'Active Energy Received Interval'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'144', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/received', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/energy', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/watthour', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/sum', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Active Energy Received Loss-Compensated Interval'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'196', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/received', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/energy', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/watthour', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/sum', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Active Energy Received Phase A'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'557', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/received', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/an', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/energy', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/watthour', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/sum', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Active Energy Received Phase B'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'558', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/received', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/bn', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/energy', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/watthour', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/sum', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Active Energy Received Phase C'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'559', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/received', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/cn', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/energy', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/watthour', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/sum', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Active Energy Received Rate A'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'140', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N'Active Energy Received Rate A Interval', 'M'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/received', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/energy', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'tou', N'rateA', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/watthour', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/lastvalue', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Active Energy Received Rate A Interval'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/received', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/energy', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'tou', N'rateA', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/watthour', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/sum', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Active Energy Received Rate B'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'141', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N'Active Energy Received Rate B Interval', 'M'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/received', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/energy', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'tou', N'rateB', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/watthour', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/lastvalue', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Active Energy Received Rate B Interval'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/received', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/energy', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'tou', N'rateB', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/watthour', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/sum', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Active Energy Received Rate C'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'142', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N'Active Energy Received Rate C Interval', 'M'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/received', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/energy', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'tou', N'rateC', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/watthour', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/lastvalue', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Active Energy Received Rate C Interval'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/received', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/energy', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'tou', N'rateC', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/watthour', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/sum', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Active Energy Received Rate D'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'196', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N'Active Energy Received Rate D Interval', 'M'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/received', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/energy', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'tou', N'rateD', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/watthour', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/lastvalue', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Active Energy Received Rate D Interval'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/received', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/energy', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'tou', N'rateD', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/watthour', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/sum', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Active Energy Received(Mega)'

EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/received', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/energy', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/watthour', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/lastvalue', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Active Power'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'193', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/del_minus_rec', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/power', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/rms', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/watt', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Active Power Delivered Maximum(Watts)'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/del', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/power', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/watt', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Active Power for Trend Display'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'194', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/del_minus_rec', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/power', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/rms', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/watt', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Active Power High'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'126', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/del_minus_rec', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/power', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/watt', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/maximum', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Active Power Low'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'127', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/del_minus_rec', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/power', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/min', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/watt', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/minimum', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Active Power Maximum'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/del_minus_rec', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/power', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/watt', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/maximum', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Active Power Mean'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'128', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/del_minus_rec', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/power', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/avg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/watt', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/average', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Active Power Minimum'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/del_minus_rec', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/power', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/min', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/watt', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/minimum', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Active Power Phase A'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'518', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/del_minus_rec', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/an', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/power', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/rms', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/watt', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Active Power Phase A Maximum'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/del_minus_rec', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/an', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/power', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/watt', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/maximum', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Active Power Phase A Minimum'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/del_minus_rec', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/an', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/power', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/min', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/watt', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/minimum', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Active Power Phase B'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'519', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/del_minus_rec', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/bn', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/power', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/rms', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/watt', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Active Power Phase B Maximum'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/del_minus_rec', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/bn', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/power', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/watt', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/maximum', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Active Power Phase B Minimum'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/del_minus_rec', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/bn', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/power', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/min', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/watt', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/minimum', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Active Power Phase C'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'520', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/del_minus_rec', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/cn', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/power', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/rms', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/watt', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Active Power Phase C Maximum'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/del_minus_rec', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/cn', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/power', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/watt', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/maximum', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Active Power Phase C Minimum'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/del_minus_rec', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/cn', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/power', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/min', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/watt', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/minimum', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Active Power Received Maximum(Watts)'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/rec', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/power', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/watt', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Active Power Sliding Window Demand Delivered'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'116', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'slidingwindow', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/delivered', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/power', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/avg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/watt', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Block Demand Active Power Into the Load','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'P dmd block in','L'

----------------------------------------------------------------------------
SET @measurement = N'Active Power Sliding Window Demand Delivered Maximum'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'572', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'slidingwindow', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/delivered', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/power', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/watt', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Active Power Sliding Window Demand Delivered Maximum Rate A'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'108', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'slidingwindow', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/delivered', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/power', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'tou', N'rateA', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/watt', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Active Power Sliding Window Demand Delivered Maximum Rate B'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'109', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'slidingwindow', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/delivered', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/power', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'tou', N'rateB', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/watt', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Active Power Sliding Window Demand Delivered Maximum Rate C'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'110', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'slidingwindow', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/delivered', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/power', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'tou', N'rateC', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/watt', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Active Power Sliding Window Demand Delivered Maximum Rate D'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'111', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'slidingwindow', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/delivered', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/power', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'tou', N'rateD', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/watt', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Active Power Sliding Window Demand Delivered Maximum(Watts)'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'slidingwindow', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/del', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/minmax', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/power', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/watt', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Active Power Sliding Window Demand Delivered Minimum'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'slidingwindow', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/delivered', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/power', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/min', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/watt', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Active Power Sliding Window Demand Delivered Predicted'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'predicted', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/delivered', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/power', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/avg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/watt', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Active Power Sliding Window Demand Delivered(Mega)'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'slidingwindow', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/delivered', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/power', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/avg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/watt', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Active Power Sliding Window Demand Delivered+Received'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'slidingwindow', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/del_plus_rec', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/power', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/watt', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Block Demand Active Power Total','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'P dmd block tot','L'

----------------------------------------------------------------------------
SET @measurement = N'Active Power Sliding Window Demand Delivered+Received Maximum'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'slidingwindow', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/del_plus_rec', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/minmax', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/power', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/watt', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Active Power Sliding Window Demand Delivered-Received'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'107', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'slidingwindow', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/del_minus_rec', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/power', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/avg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/watt', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Active Power Sliding Window Demand Delivered-Received Maximum'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'545', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'slidingwindow', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/del_minus_rec', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/power', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/watt', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Active Power Sliding Window Demand Delivered-Received Predicted'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'predicted', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/del_minus_rec', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/power', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/avg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/watt', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Active Power Sliding Window Demand Quadrant I'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'slidingwindow', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/quadrant_I', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/power', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/avg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/watt', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Active Power Sliding Window Demand Quadrant I Maximum'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'slidingwindow', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/quadrant_I', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/power', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/watt', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Active Power Sliding Window Demand Quadrant II'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'slidingwindow', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/quadrant_II', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/power', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/avg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/watt', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Active Power Sliding Window Demand Quadrant II Maximum'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'slidingwindow', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/quadrant_II', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/power', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/watt', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Active Power Sliding Window Demand Quadrant III'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'slidingwindow', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/quadrant_III', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/power', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/avg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/watt', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Active Power Sliding Window Demand Quadrant III Maximum'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'slidingwindow', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/quadrant_III', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/power', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/watt', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Active Power Sliding Window Demand Quadrant IV'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'slidingwindow', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/quadrant_IV', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/power', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/avg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/watt', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Active Power Sliding Window Demand Quadrant IV Maximum'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'slidingwindow', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/quadrant_IV', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/power', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/watt', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Active Power Sliding Window Demand Received'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/received', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/power', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/avg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/watt', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Block Demand Active Power Out of the Load','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'P dmd block out','L'

----------------------------------------------------------------------------
SET @measurement = N'Active Power Sliding Window Demand Received Maximum'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'slidingwindow', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/received', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/power', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/watt', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Active Power Sliding Window Demand Received Maximum Rate A'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'112', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'slidingwindow', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/received', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/power', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'tou', N'rateA', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/watt', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Active Power Sliding Window Demand Received Maximum Rate B'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'113', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'slidingwindow', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/received', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/power', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'tou', N'rateB', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/watt', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Active Power Sliding Window Demand Received Maximum Rate C'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'114', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'slidingwindow', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/received', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/power', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'tou', N'rateC', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/watt', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Active Power Sliding Window Demand Received Maximum Rate D'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'115', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'slidingwindow', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/received', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/power', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'tou', N'rateD', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/watt', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Active Power Sliding Window Demand Received Maximum(Watts)'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'slidingwindow', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/rec', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/minmax', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/power', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/watt', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Active Power Sliding Window Demand Received Predicted'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'predicted', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/received', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/power', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/avg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/watt', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Active Power Thermal Demand'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'192', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'thermal', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/del_minus_rec', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/power', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/avg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/watt', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Active Power Thermal Demand Delivered Maximum Rate A'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'118', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'thermal', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/delivered', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/power', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'tou', N'rateA', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/watt', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Active Power Thermal Demand Delivered Maximum Rate B'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'119', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'thermal', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/delivered', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/power', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'tou', N'rateB', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/watt', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Active Power Thermal Demand Delivered Maximum Rate C'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'120', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'thermal', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/delivered', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/power', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'tou', N'rateC', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/watt', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Active Power Thermal Demand Delivered Maximum Rate D'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'121', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'thermal', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/delivered', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/power', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'tou', N'rateD', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/watt', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Active Power Thermal Demand Delivered-Received'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'117', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'thermal', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/del_minus_rec', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/power', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/avg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/watt', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Thermal Demand Active Power','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'P dmd therm','L' 

----------------------------------------------------------------------------
SET @measurement = N'Active Power Thermal Demand Received Maximum Rate A'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'122', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'thermal', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/received', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/power', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'tou', N'rateA', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/watt', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Active Power Thermal Demand Received Maximum Rate B'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'123', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'thermal', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/received', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/power', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'tou', N'rateB', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/watt', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Active Power Thermal Demand Received Maximum Rate C'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'124', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'thermal', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/received', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/power', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'tou', N'rateC', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/watt', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Active Power Thermal Demand Received Maximum Rate D'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'125', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'thermal', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/received', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/power', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'tou', N'rateD', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/watt', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Active Power(Mega)'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/del_plus_rec', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/poweractive', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/rms', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/watt', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Air Pressure psi'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'491', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Pressure','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p air','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/psi','Q'
----------------------------------------------------------------------------
SET @measurement = N'Air Volume (cubft)'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'492', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N'Air Volume This Interval (cf)', 'M'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Volume','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V air','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfoot','Q'
----------------------------------------------------------------------------
SET @measurement = N'Ambient Temperature Fahrenheit'

EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/temperature', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/degreefahrenheit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Analog Input 1'

EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Analog Input 10'

EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Analog Input 11'

EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Analog Input 12'

EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Analog Input 13'

EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Analog Input 14'

EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Analog Input 15'

EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Analog Input 16'

EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Analog Input 2'

EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Analog Input 3'

EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Analog Input 4'

EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Analog Input 5'

EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Analog Input 6'

EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Analog Input 7'

EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Analog Input 8'

EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Analog Input 9'

EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Apparent Energy Delivered'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'489', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N'Apparent Energy Delivered Interval', 'M'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/delivered', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/energyapparent', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/vahour', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/lastvalue', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Apparent Energy Into the Load','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Ws in','L' 

----------------------------------------------------------------------------
SET @measurement = N'Apparent Energy Delivered - Received Interval'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/del_minus_rec', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/energyapparent', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/vahour', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/sum', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Apparent Energy Delivered + Received'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'63', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N'Apparent Energy Delivered + Received Interval', 'M'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/del_plus_rec', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/energyapparent', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/vahour', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/lastvalue', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Apparent Energy Total','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Ws tot','L'

----------------------------------------------------------------------------
SET @measurement = N'Apparent Energy Delivered + Received Interval'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/del_plus_rec', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/energyapparent', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/vahour', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/sum', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Apparent Energy Total Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Ws tot int','L'
----------------------------------------------------------------------------
SET @measurement = N'Apparent Energy Delivered Interval'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/delivered', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/energyapparent', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/vahour', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/sum', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Apparent Energy Into the Load Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Ws in int','L' 

----------------------------------------------------------------------------
SET @measurement = N'Apparent Energy Delivered Rate A'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'59', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N'Apparent Energy Delivered Rate A Interval', 'M'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/delivered', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/energyapparent', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'tou', N'rateA', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/vahour', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/lastvalue', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Apparent Energy Delivered Rate A Interval'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/delivered', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/energyapparent', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'tou', N'rateA', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/vahour', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/sum', 'Q'


----------------------------------------------------------------------------
SET @measurement = N'Apparent Energy Delivered Rate B'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'60', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N'Apparent Energy Delivered Rate B Interval', 'M'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/delivered', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/energyapparent', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'tou', N'rateB', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/vahour', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/lastvalue', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Apparent Energy Delivered Rate B Interval'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/delivered', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/energyapparent', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'tou', N'rateB', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/vahour', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/sum', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Apparent Energy Delivered Rate C'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'61', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N'Apparent Energy Delivered Rate C Interval', 'M'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/delivered', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/energyapparent', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'tou', N'rateC', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/vahour', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/lastvalue', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Apparent Energy Delivered Rate C Interval'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/delivered', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/energyapparent', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'tou', N'rateC', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/vahour', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/sum', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Apparent Energy Delivered Rate D'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'62', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N'Apparent Energy Delivered Rate D Interval', 'M'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/delivered', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/energyapparent', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'tou', N'rateD', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/vahour', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/lastvalue', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Apparent Energy Delivered Rate D Interval'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/delivered', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/energyapparent', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'tou', N'rateD', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/vahour', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/sum', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Apparent Energy Delivered-Received'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N'Apparent Energy Delivered - Received Interval', 'M'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/del_minus_rec', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/energyapparent', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/vahour', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/lastvalue', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Apparent Energy in Quadrant I'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'660', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/quadrant_I', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/energyapparent', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/vahour', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/lastvalue', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Apparent Energy in Quadrant II'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'661', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/quadrant_II', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/energyapparent', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/vahour', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/lastvalue', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Apparent Energy in Quadrant III'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'662', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/quadrant_III', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/energyapparent', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/vahour', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/lastvalue', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Apparent Energy in Quadrant IV'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'663', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/quadrant_IV', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/energyapparent', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/vahour', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/lastvalue', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Apparent Energy Received'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'479', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N'Apparent Energy Received Interval', 'M'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/received', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/energyapparent', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/vahour', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/lastvalue', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Apparent Energy Out of the Load','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Ws out','L' 

----------------------------------------------------------------------------
SET @measurement = N'Apparent Energy Received Interval'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/received', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/energyapparent', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/vahour', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/sum', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Apparent Energy Out of the Load Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Ws out int','L'

----------------------------------------------------------------------------
SET @measurement = N'Apparent Energy Received Rate A'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'64', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N'Apparent Energy Received Rate A Interval', 'M'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/received', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/energyapparent', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'tou', N'rateA', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/vahour', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/lastvalue', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Apparent Energy Received Rate A Interval'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/received', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/energyapparent', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'tou', N'rateA', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/vahour', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/sum', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Apparent Energy Received Rate B'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'65', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N'Apparent Energy Received Rate B Interval', 'M'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/received', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/energyapparent', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'tou', N'rateB', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/vahour', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/lastvalue', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Apparent Energy Received Rate B Interval'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/received', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/energyapparent', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'tou', N'rateB', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/vahour', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/sum', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Apparent Energy Received Rate C'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'66', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N'Apparent Energy Received Rate C Interval', 'M'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/received', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/energyapparent', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'tou', N'rateC', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/vahour', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/lastvalue', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Apparent Energy Received Rate C Interval'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/received', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/energyapparent', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'tou', N'rateC', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/vahour', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/sum', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Apparent Energy Received Rate D'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'67', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N'Apparent Energy Received Rate D Interval', 'M'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/received', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/energyapparent', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'tou', N'rateD', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/vahour', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/lastvalue', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Apparent Energy Received Rate D Interval'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/received', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/energyapparent', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'tou', N'rateD', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/vahour', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/sum', 'Q'

---------------------------------------------------------------------------
SET @measurement = N'Apparent Energy Delivered + Received Rate A'

EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N'Apparent Energy Delivered + Received Rate A Interval', 'M'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/del_plus_rec', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/energyapparent', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'tou', N'rateA', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/vahour', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/lastvalue', 'Q'

---------------------------------------------------------------------------
SET @measurement = N'Apparent Energy Delivered + Received Rate A Interval'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/energyapparent', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'tou', N'rateA', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/vahour', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/sum', 'Q'

---------------------------------------------------------------------------
SET @measurement = N'Apparent Energy Delivered + Received Rate B'

EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N'Apparent Energy Delivered + Received Rate B Interval', 'M'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/del_plus_rec', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/energyapparent', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'tou', N'rateB', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/vahour', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/lastvalue', 'Q'

---------------------------------------------------------------------------
SET @measurement = N'Apparent Energy Delivered + Received Rate B Interval'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/energyapparent', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'tou', N'rateA', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/vahour', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/sum', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Apparent Power'


EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'575', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/del_plus_rec', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/powerapparent', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/rms', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/va', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Apparent Power High'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'56', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/del_plus_rec', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/powerapparent', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/va', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Apparent Power Low'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'57', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/del_plus_rec', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/powerapparent', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/min', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/va', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Apparent Power Maximum'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/del_minus_rec', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/powerapparent', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/va', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Apparent Power Mean'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'58', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/del_plus_rec', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/powerapparent', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/avg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/va', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Apparent Power Minimum'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/del_minus_rec', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/powerapparent', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/min', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/va', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Apparent Power Phase A'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'524', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/del_plus_rec', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/an', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/powerapparent', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/rms', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/va', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Apparent Power Phase A Maximum'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/del_plus_rec', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/an', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/powerapparent', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/va', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Apparent Power Phase A Minimum'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/del_plus_rec', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/an', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/powerapparent', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/min', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/va', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Apparent Power Phase A Sliding Window Demand Delivered'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'slidingwindow', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/delivered', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/an', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/powerapparent', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/avg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/va', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Apparent Power Phase B'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'525', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/del_plus_rec', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/bn', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/powerapparent', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/rms', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/va', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Apparent Power Phase B Maximum'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/del_plus_rec', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/bn', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/powerapparent', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/va', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Apparent Power Phase B Minimum'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/del_plus_rec', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/bn', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/powerapparent', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/min', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/va', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Apparent Power Phase B Sliding Window Demand Delivered'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'slidingwindow', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/delivered', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/bn', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/powerapparent', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/avg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/va', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Apparent Power Phase C'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'526', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/del_plus_rec', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/cn', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/powerapparent', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/rms', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/va', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Apparent Power Phase C Maximum'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/del_plus_rec', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/cn', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/powerapparent', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/va', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Apparent Power Phase C Minimum'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/del_plus_rec', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/cn', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/powerapparent', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/min', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/va', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Apparent Power Phase C Sliding Window Demand Delivered'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'slidingwindow', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/delivered', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/cn', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/powerapparent', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/avg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/va', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Apparent Power Sliding Window Demand Delivered'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'573', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'slidingwindow', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/delivered', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/powerapparent', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/avg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/va', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Apparent Power Sliding Window Demand Delivered Maximum'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'575', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'slidingwindow', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/delivered', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/minmax', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/powerapparent', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/va', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Apparent Power Sliding Window Demand Delivered Maximum Rate A'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'38', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'slidingwindow', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/delivered', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/powerapparent', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'tou', N'rateA', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/va', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Apparent Power Sliding Window Demand Delivered Maximum Rate B'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'39', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'slidingwindow', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/delivered', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/powerapparent', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'tou', N'rateB', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/va', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Apparent Power Sliding Window Demand Delivered Maximum Rate C'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'40', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'slidingwindow', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/delivered', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/powerapparent', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'tou', N'rateC', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/va', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Apparent Power Sliding Window Demand Delivered Maximum Rate D'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'41', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'slidingwindow', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/delivered', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/powerapparent', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'tou', N'rateD', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/va', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Apparent Power Sliding Window Demand Delivered Minimum'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'slidingwindow', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/delivered', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/powerapparent', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/min', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/va', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Apparent Power Sliding Window Demand Delivered(Mega)'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'573', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'slidingwindow', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/delivered', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/powerapparent', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/avg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/va', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Apparent Power Sliding Window Demand Delivered+Received'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/sum', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'37', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'slidingwindow', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/del_plus_rec', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/powerapparent', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/avg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/va', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Block Demand Apparent Power Total','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'S dmd block tot','L'

----------------------------------------------------------------------------
SET @measurement = N'Apparent Power Sliding Window Demand Delivered+Received Maximum'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'547', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'slidingwindow', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/del_plus_rec', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/powerapparent', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/va', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Apparent Power Sliding Window Demand Delivered-Received'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'slidingwindow', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/del_minus_rec', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/powerapparent', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/va', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Apparent Power Sliding Window Demand Delivered-Received Maximum'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'slidingwindow', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/del_minus_rec', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/minmax', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/powerapparent', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/va', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Apparent Power Sliding Window Demand Quadrant I'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'slidingwindow', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/quadrant_I', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/powerapparent', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/avg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/va', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Apparent Power Sliding Window Demand Quadrant I Maximum'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'slidingwindow', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/quadrant_I', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/powerapparent', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/va', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Apparent Power Sliding Window Demand Quadrant II'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'slidingwindow', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/quadrant_II', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/powerapparent', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/avg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/va', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Apparent Power Sliding Window Demand Quadrant II Maximum'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'slidingwindow', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/quadrant_II', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/powerapparent', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/va', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Apparent Power Sliding Window Demand Quadrant III'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'slidingwindow', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/quadrant_III', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/powerapparent', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/avg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/va', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Apparent Power Sliding Window Demand Quadrant III Maximum'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'slidingwindow', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/quadrant_III', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/powerapparent', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/va', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Apparent Power Sliding Window Demand Quadrant IV'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'slidingwindow', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/quadrant_IV', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/powerapparent', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/avg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/va', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Apparent Power Sliding Window Demand Quadrant IV Maximum'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'slidingwindow', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/quadrant_IV', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/powerapparent', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/va', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Apparent Power Sliding Window Demand Received'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'slidingwindow', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/received', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/powerapparent', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/avg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/va', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Apparent Power Sliding Window Demand Received Maximum'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'slidingwindow', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/received', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/minmax', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/powerapparent', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/va', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Apparent Power Sliding Window Demand Received Maximum Rate A'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'42', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'slidingwindow', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/received', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/powerapparent', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'tou', N'rateA', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/va', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Apparent Power Sliding Window Demand Received Maximum Rate B'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'43', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'slidingwindow', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/received', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/powerapparent', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'tou', N'rateB', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/va', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Apparent Power Sliding Window Demand Received Maximum Rate C'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'44', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'slidingwindow', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/received', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/powerapparent', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'tou', N'rateC', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/va', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Apparent Power Sliding Window Demand Received Maximum Rate D'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'45', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'slidingwindow', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/received', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/powerapparent', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'tou', N'rateD', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/va', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Apparent Power Thermal Demand Delivered+Received'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'47', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'thermal', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/del_plus_rec', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/powerapparent', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/avg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/va', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Thermal Demand Apparent Power Total','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'S dmd therm tot','L'

----------------------------------------------------------------------------
SET @measurement = N'Apparent Power Thermal Demand Maximum Delivered Rate A'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'48', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'thermal', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/delivered', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/powerapparent', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'tou', N'rateA', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/va', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Apparent Power Thermal Demand Maximum Delivered Rate B'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'49', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'thermal', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/delivered', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/powerapparent', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'tou', N'rateB', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/va', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Apparent Power Thermal Demand Maximum Delivered Rate C'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'50', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'thermal', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/delivered', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/powerapparent', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'tou', N'rateC', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/va', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Apparent Power Thermal Demand Maximum Delivered Rate D'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'51', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'thermal', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/delivered', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/powerapparent', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'tou', N'rateD', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/va', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Apparent Power Thermal Demand Maximum Received Rate A'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'52', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'thermal', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/received', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/powerapparent', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'tou', N'rateA', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/va', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Apparent Power Thermal Demand Maximum Received Rate B'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'53', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'thermal', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/received', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/powerapparent', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'tou', N'rateB', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/va', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Apparent Power Thermal Demand Maximum Received Rate C'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'54', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'thermal', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/received', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/powerapparent', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'tou', N'rateC', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/va', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Apparent Power Thermal Demand Maximum Received Rate D'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'55', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'thermal', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/received', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/powerapparent', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'tou', N'rateD', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/va', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Apparent Power(Mega)'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/del_plus_rec', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/powerapparent', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/rms', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/va', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Atmospheric Pressure (Hour Interval)'

EXEC spTS_StandardRelationship_Add @measurement, N'nature', N'nature/weather', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/milli', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/pressure', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/bar', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Auxiliary Input Voltage'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'560', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/rms', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/volt', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Auxiliary Input Voltage Total Even Harmonic Distortion'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'570', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/value', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Auxiliary Input Voltage Waveform'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'582', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/waveform', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/volt', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Average Current Maximum'

EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/minmax', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/lnAvg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/ampere', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Average Daily Temperature Celsius'

EXEC spTS_StandardRelationship_Add @measurement, N'nature', N'nature/weather', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/temperature', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/degreecelsius', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/average', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Average Daily Temperature Fahrenheit'

EXEC spTS_StandardRelationship_Add @measurement, N'nature', N'nature/weather', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/temperature', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/degreefahrenheit', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/average', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Average Voltage Line-to-Line'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'537', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/llAvg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/rms', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/volt', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/average', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Average Voltage Line-to-Line for Trend Display'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'481', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/llAvg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/rms', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/volt', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/average', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Average Voltage Line-to-Line High'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'168', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/llAvg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/volt', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/maximum', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Average Voltage Line-to-Line Low'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'169', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/llAvg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/min', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/volt', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/minimum', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Average Voltage Line-to-Line Maximum'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'593', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/minmax', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/llAvg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/volt', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/maximum', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Average Voltage Line-to-Line Mean'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'170', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/llAvg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/avg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/volt', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/average', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Average Voltage Line-to-Line Minimum'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'592', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/llAvg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/min', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/volt', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/minimum', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Average Voltage Line-to-Neutral'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'483', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/lnAvg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/rms', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/volt', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/average', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Average Voltage Line-to-Neutral Maximum'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'554', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/lnAvg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/volt', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/maximum', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Average Voltage Line-to-Neutral Mean'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'177', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/lnAvg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/avg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/volt', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/average', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Average Voltage Line-to-Neutral Minimum'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'555', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/lnAvg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/min', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/volt', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/minimum', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Billing Data Placeholder'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L' 

----------------------------------------------------------------------------
SET @measurement = N'Breaker Operations Ground Fault Trip'

EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/count', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/maximum', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Breaker Operations Instantaneous Trip'

EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/count', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/maximum', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Breaker Operations Overload Trip'

EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/count', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/maximum', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Breaker Operations Short Circuit Trip'

EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/count', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/maximum', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Breaker Operations Total'

EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/count', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/maximum', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Breaker Operations Trip'

EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/count', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/maximum', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Breaker Operations Under Load'

EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/count', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/maximum', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Breaker Position'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/position', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Breaker Position In Frame'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/string', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/position', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Breaker Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/position', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Breaker Status - Ready to Close'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/position', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Breaker Temperature Fahrenheit Maximum'

EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/temperature', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/maximum', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Breaker Temperature Fahrenheit Minimum'

EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/temperature', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/min', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/minimum', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Broadband Aerosol Optical Depth (Hour Interval)'

EXEC spTS_StandardRelationship_Add @measurement, N'nature', N'nature/weather', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/milli', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/turbidity', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Ceiling Height (Hour Interval)'

EXEC spTS_StandardRelationship_Add @measurement, N'nature', N'nature/weather', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/length', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/meter', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Chilled Water'


EXEC spTS_StandardRelationship_Add @measurement, N'nature', N'nature/water', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Chilled Water (kW/ton)'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'nature', N'nature/water', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Chilled Water (kWh)'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'nature', N'nature/water', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/energy', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/watthour', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Chilled Water (ton hrs)'

EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N'Chilled Water Interval (ton hrs)', 'M'

----------------------------------------------------------------------------
SET @measurement = N'Chilled Water (ton-hrs/pulse)'


EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'nature', N'nature/water', 'Q'

------------------------------------------------------------------------------

SET @measurement = N'Chilled Water (US Gallons)'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'nature', N'nature/water', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/volume', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/usgallon', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Chilled Water Cumulative (kWh)'

EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N'Chilled Water (kWh)', 'M'

----------------------------------------------------------------------------
SET @measurement = N'Chilled Water Cumulative (US Gallons)'

EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N'Chilled Water (US Gallons)', 'M'

----------------------------------------------------------------------------
SET @measurement = N'Chilled Water Interval (ton hrs)'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'nature', N'nature/water', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Condensate'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'497', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Condensate (gpms)'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'nature', N'nature/steam', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/gpms', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Condensate (mlbs)'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'nature', N'nature/steam', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/mlbs', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Condensate (pulse)'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'nature', N'nature/steam', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/count', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/pulse', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Condensate Cumulative (gpms)'

EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N'Condensate (gpms)', 'M'

----------------------------------------------------------------------------
SET @measurement = N'Condensate Cumulative (mlbs)'

EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N'Condensate (mlbs)', 'M'

----------------------------------------------------------------------------
SET @measurement = N'Condensate Cumulative (pulse)'

EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N'Condensate (pulse)', 'M'

----------------------------------------------------------------------------
SET @measurement = N'Condensate mlbs'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'498', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Condensate pulse'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'499', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Configurable String Register 1'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/string', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/deviceinfo', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Configurable String Register 2'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/string', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/deviceinfo', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Cooling Degree Days (future)'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'502', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Cooling Degree Days Celsius'

EXEC spTS_StandardRelationship_Add @measurement, N'cooling', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'9002', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'nature', N'nature/weather', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/degreedays', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/degreecelsius', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Cooling Degree Days Fahrenheit'

EXEC spTS_StandardRelationship_Add @measurement, N'cooling', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'nature', N'nature/weather', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/degreedays', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/degreefahrenheit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Crest Factor Ground'

EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/ground', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Crest Factor Neutral'

EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/neutral', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Crest Factor Phase A'

EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/an', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Crest Factor Phase A Maximum'

EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/an', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/maximum', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Crest Factor Phase A Minimum'

EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/an', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/min', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/minimum', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Crest Factor Phase B'

EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/bn', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Crest Factor Phase B Maximum'

EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/bn', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/maximum', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Crest Factor Phase B Minimum'

EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/bn', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/min', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/minimum', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Crest Factor Phase C'

EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/cn', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Crest Factor Phase C Maximum'

EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/cn', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/maximum', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Crest Factor Phase C Minimum'

EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/cn', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/min', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/minimum', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Current Harmonic on Input I4 based on Fundamental'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'569', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input4', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Current Harmonic Phase A based on Fundamental'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'568', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/an', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Current Harmonic Phase B based on Fundamental'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'567', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/bn', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Current Harmonic Phase C based on Fundamental'

EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/cn', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Current K-Factor Phase A High'

EXEC spTS_StandardRelationship_Add @measurement, N'kFactor', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'22', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/an', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/maximum', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Current K-Factor Phase A Mean'

EXEC spTS_StandardRelationship_Add @measurement, N'kFactor', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'23', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/an', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/avg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/average', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Current K-Factor Phase B High'

EXEC spTS_StandardRelationship_Add @measurement, N'kFactor', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'27', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/bn', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/maximum', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Current K-Factor Phase B Mean'

EXEC spTS_StandardRelationship_Add @measurement, N'kFactor', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'28', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/bn', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/avg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/average', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Current K-Factor Phase C High'

EXEC spTS_StandardRelationship_Add @measurement, N'kFactor', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'32', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/cn', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/maximum', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Current K-Factor Phase C Mean'

EXEC spTS_StandardRelationship_Add @measurement, N'kFactor', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'33', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/cn', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/avg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/average', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Current Phase A'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'515', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/an', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/rms', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/ampere', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Current Phase A High'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'7', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/an', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/ampere', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/maximum', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Current Phase A Low'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'8', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/an', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/min', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/ampere', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/minimum', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Current Phase A Maximum'

EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/minmax', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/an', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/ampere', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/maximum', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Current Phase A Mean'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'9', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/an', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/avg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/ampere', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/average', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Current Phase A Minimum'

EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/minmax', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/an', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/min', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/ampere', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/minimum', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Current Phase A Side 1'

EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/an', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/rms', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/ampere', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Current Phase A Side 2'

EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/an', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/rms', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/ampere', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Current Phase A Sliding Window Demand Delivered'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'576', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'slidingwindow', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/delivered', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/an', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/avg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/ampere', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Current Phase A Sliding Window Demand Delivered Maximum'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'579', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'slidingwindow', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/delivered', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/an', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/ampere', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Current Phase A Sliding Window Demand Delivered-Received'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'548', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'slidingwindow', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/del_minus_rec', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/an', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/avg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/ampere', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Current Phase A Sliding Window Demand Delivered-Received Maximum'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'551', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'slidingwindow', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/del_minus_rec', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/an', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/ampere', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Current Phase A squared hours'

EXEC spTS_StandardRelationship_Add @measurement, N'I2h', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'183', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/an', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/amperesquaredhour', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/lastvalue', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Current Phase A squared hours Meter Units Interval'

EXEC spTS_StandardRelationship_Add @measurement, N'I2h', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'201', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/an', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/amperesquaredhour', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/sum', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Current Phase A Thermal Demand Delivered'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'thermal', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/delivered', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/an', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/avg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/ampere', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Current Phase A Thermal Demand Delivered Maximum'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'thermal', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/delivered', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/an', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/ampere', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Current Phase A Thermal Demand Delivered Minimum'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'thermal', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/delivered', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/an', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/min', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/ampere', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Current Phase Average'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'182', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/lnAvg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/rms', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/ampere', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Current Phase Average for Trend Display'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'184', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/lnAvg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/ampere', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Current Phase Average High'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'10', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/lnAvg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/ampere', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Current Phase Average Low'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'11', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/lnAvg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/min', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/ampere', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Current Phase Average Maximum'

EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/lnAvg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/ampere', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Current Phase Average Mean'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'12', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/lnAvg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/avg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/ampere', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Current Phase Average Minimum'

EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/lnAvg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/min', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/ampere', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Current Phase Average Sliding Window Demand Delivered'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'13', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'slidingwindow', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/delivered', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/lnAvg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/avg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/ampere', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Current Phase Average Sliding Window Demand Delivered Maximum'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'571', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'slidingwindow', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/delivered', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/lnAvg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/ampere', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Current Phase Average Sliding Window Demand Delivered Minimum'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'slidingwindow', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/delivered', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/lnAvg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/min', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/ampere', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Current Phase Average Sliding Window Demand Delivered-Received'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'538', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'slidingwindow', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/del_minus_rec', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/lnAvg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/avg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/ampere', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Current Phase Average Sliding Window Demand Delivered-Received Maximum'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'539', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'slidingwindow', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/del_minus_rec', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/lnAvg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/ampere', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Current Phase Average Thermal Demand Delivered'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'thermal', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/delivered', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/lnAvg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/avg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/ampere', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Current Phase Average Thermal Demand Delivered Maximum'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'thermal', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/delivered', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/lnAvg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/ampere', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Current Phase Average Thermal Demand Delivered Minimum'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'thermal', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/delivered', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/lnAvg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/min', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/ampere', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Current Phase B'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'516', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/bn', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/rms', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/ampere', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Current Phase B High'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'14', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/bn', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/ampere', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/maximum', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Current Phase B Low'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'15', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/bn', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/min', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/ampere', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/minimum', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Current Phase B Maximum'

EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/minmax', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/bn', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/ampere', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/maximum', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Current Phase B Mean'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'16', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/bn', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/avg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/ampere', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/average', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Current Phase B Minimum'

EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/minmax', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/bn', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/min', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/ampere', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/minimum', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Current Phase B Side 1'

EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/bn', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/rms', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/ampere', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Current Phase B Side 2'

EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/bn', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/rms', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/ampere', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Current Phase B Sliding Window Demand Delivered'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'548', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'slidingwindow', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/delivered', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/bn', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/avg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/ampere', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Current Phase B Sliding Window Demand Delivered Maximum'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'580', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'slidingwindow', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/delivered', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/bn', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/ampere', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Current Phase B Sliding Window Demand Delivered-Received'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'549', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'slidingwindow', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/del_minus_rec', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/bn', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/avg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/ampere', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Current Phase B Sliding Window Demand Delivered-Received Maximum'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'552', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'slidingwindow', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/del_minus_rec', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/bn', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/ampere', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Current Phase B squared hours'

EXEC spTS_StandardRelationship_Add @measurement, N'I2h', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'185', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/bn', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/amperesquaredhour', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/lastvalue', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Current Phase B squared hours Meter Units Interval'

EXEC spTS_StandardRelationship_Add @measurement, N'I2h', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'202', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/bn', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/amperesquaredhour', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/sum', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Current Phase B Thermal Demand Delivered'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'thermal', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/delivered', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/bn', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/avg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/ampere', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Current Phase B Thermal Demand Delivered Maximum'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'thermal', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/delivered', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/bn', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/ampere', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Current Phase B Thermal Demand Delivered Minimum'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'thermal', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/delivered', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/bn', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/min', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/ampere', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Current Phase C'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'517', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/cn', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/rms', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/ampere', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Current Phase C High'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'17', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/cn', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/ampere', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/maximum', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Current Phase C Low'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'18', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/cn', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/min', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/ampere', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/minimum', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Current Phase C Maximum'

EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/minmax', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/cn', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/ampere', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/maximum', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Current Phase C Mean'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'19', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/cn', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/avg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/ampere', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/average', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Current Phase C Minimum'

EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/minmax', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/cn', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/min', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/ampere', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/minimum', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Current Phase C Side 1'

EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/cn', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/rms', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/ampere', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Current Phase C Side 2'

EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/cn', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/rms', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/ampere', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Current Phase C Sliding Window Demand Delivered'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'547', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'slidingwindow', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/delivered', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/cn', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/avg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/ampere', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Current Phase C Sliding Window Demand Delivered Maximum'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'581', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'slidingwindow', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/delivered', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/cn', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/ampere', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Current Phase C Sliding Window Demand Delivered-Received'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'550', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'slidingwindow', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/del_minus_rec', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/cn', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/avg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/ampere', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Current Phase C Sliding Window Demand Delivered-Received Maximum'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'553', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'slidingwindow', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/del_minus_rec', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/cn', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/ampere', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Current Phase C squared hours'

EXEC spTS_StandardRelationship_Add @measurement, N'I2h', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'186', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/cn', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/amperesquaredhour', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/lastvalue', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Current Phase C squared hours Meter Units Interval'

EXEC spTS_StandardRelationship_Add @measurement, N'I2h', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'203', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/cn', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/amperesquaredhour', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/sum', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Current Phase C Thermal Demand Delivered'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'thermal', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/delivered', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/cn', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/avg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/ampere', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Current Phase C Thermal Demand Delivered Maximum'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'thermal', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/delivered', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/cn', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/ampere', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Current Phase C Thermal Demand Delivered Minimum'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'thermal', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/delivered', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/cn', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/min', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/ampere', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Current Total Harmonic Distortion Ground'

EXEC spTS_StandardRelationship_Add @measurement, N'harmonic', N'thd', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/ground', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Current Total Harmonic Distortion Neutral'

EXEC spTS_StandardRelationship_Add @measurement, N'harmonic', N'thd', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/neutral', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Current Total Harmonic Distortion Phase A'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'527', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'harmonic', N'thd', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/an', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Current Total Harmonic Distortion Phase A High'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'24', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'harmonic', N'thd', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/an', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/maximum', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Current Total Harmonic Distortion Phase A Maximum'

EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/minmax', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'harmonic', N'thd', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/an', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/maximum', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Current Total Harmonic Distortion Phase A Mean'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'25', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'harmonic', N'thd', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/an', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/avg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/average', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Current Total Harmonic Distortion Phase A Minimum'

EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/minmax', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'harmonic', N'thd', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/an', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/min', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/minimum', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Current Total Harmonic Distortion Phase B'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'528', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'harmonic', N'thd', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/bn', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Current Total Harmonic Distortion Phase B High'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'29', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'harmonic', N'thd', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/bn', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/maximum', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Current Total Harmonic Distortion Phase B Maximum'

EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/minmax', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'harmonic', N'thd', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/bn', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/maximum', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Current Total Harmonic Distortion Phase B Mean'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'30', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'harmonic', N'thd', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/bn', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/avg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/average', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Current Total Harmonic Distortion Phase B Minimum'

EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/minmax', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'harmonic', N'thd', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/bn', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/min', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/minimum', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Current Total Harmonic Distortion Phase C'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'529', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'harmonic', N'thd', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/cn', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Current Total Harmonic Distortion Phase C High'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'34', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'harmonic', N'thd', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/cn', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/maximum', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Current Total Harmonic Distortion Phase C Maximum'

EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/minmax', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'harmonic', N'thd', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/cn', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/maximum', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Current Total Harmonic Distortion Phase C Mean'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'35', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'harmonic', N'thd', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/cn', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/avg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/average', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Current Total Harmonic Distortion Phase C Minimum'

EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/minmax', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'harmonic', N'thd', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/cn', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/min', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/minimum', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Current Total Odd Harmonic Distortion Phase C'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'515', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'harmonic', N'tohd', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/cn', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Current Transformer Primary Rating'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'211', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/number', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/config', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Current Transformer Secondary Rating'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'212', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/number', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/config', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Current Unbalance'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'516', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'imbalance', N'avg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Current Unbalance Mean'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'20', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'imbalance', N'avg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/avg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/average', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Current Avg Percent Load'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'3500', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/avg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Daily Max Temp'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'508', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/maximum', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Daily Min Temp'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'509', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/minimum', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Days Since Last Snowfall (Hour Interval)'

EXEC spTS_StandardRelationship_Add @measurement, N'nature', N'nature/weather', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/time', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/day', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/lastvalue', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Demand (5 Minute Interval)'

EXEC spTS_StandardRelationship_Add @measurement, N'defaultlabel', N'Five Minute Demand', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'description', N'Five Minute Demand', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/power', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/watt', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Demand (Hour Interval)'

EXEC spTS_StandardRelationship_Add @measurement, N'defaultlabel', N'One Hour Demand', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'description', N'One Hour Demand', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/power', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/watt', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Demand Forecast (Hour Interval)'

EXEC spTS_StandardRelationship_Add @measurement, N'defaultlabel', N'One Hour Demand', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'description', N'One Hour Demand', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'prediction', N'Demand (Hour Interval)', 'M'
EXEC spTS_StandardRelationship_Add @measurement, N'prediction/interval', N'prediction/updating', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prediction/unit', N'unit/custom', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/power', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/watt', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Demand Forecast (Hour Interval) - One Day'

EXEC spTS_StandardRelationship_Add @measurement, N'defaultlabel', N'One Hour Demand', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'description', N'One Hour Demand', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'prediction/interval', N'1', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'prediction', N'Demand (Hour Interval)', 'M'
EXEC spTS_StandardRelationship_Add @measurement, N'prediction/unit', N'unit/day', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/power', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/watt', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Demand Forecast (Hour Interval) - One Hour'

EXEC spTS_StandardRelationship_Add @measurement, N'defaultlabel', N'One Hour Demand', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'description', N'One Hour Demand', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'prediction/interval', N'1', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'prediction', N'Demand (Hour Interval)', 'M'
EXEC spTS_StandardRelationship_Add @measurement, N'prediction/unit', N'unit/hour', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/power', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/watt', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Device Type'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/string', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/deviceinfo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Dew Point Temperature (Hour Interval)'

EXEC spTS_StandardRelationship_Add @measurement, N'nature', N'nature/weather', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/deci', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/temperature', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/degreecelsius', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Diffuse Horizontal Illuminance (Hour Interval)'

EXEC spTS_StandardRelationship_Add @measurement, N'nature', N'nature/weather', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/hecta', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/illuminance', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/lux', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Diffuse Horizontal Radiation (Hour Interval)'

EXEC spTS_StandardRelationship_Add @measurement, N'nature', N'nature/weather', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'radiation/area/unit', N'unit/squaremeter', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'radiation/energy/prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'radiation/energy/unit', N'unit/watthour', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Digital Input 1'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Digital Input 1 Counter'

EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/count', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Digital Input 2'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Digital Input 2 Counter'

EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/count', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Digital Input 3'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Digital Input 3 Counter'

EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/count', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Digital Input 4'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Digital Input 4 Counter'

EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/count', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Digital Input 5'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Digital Input 5 Counter'

EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/count', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Digital Input 6'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Digital Input 6 Counter'

EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/count', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Digital Input 7'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Digital Input 7 Counter'

EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/count', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Digital Input 8'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Digital Input 8 Counter'

EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/count', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Digital Output 1'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Digital Output 10'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Digital Output 11'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Digital Output 12'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Digital Output 13'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Digital Output 14'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Digital Output 15'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Digital Output 16'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Digital Output 17'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Digital Output 18'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Digital Output 19'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Digital Output 2'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Digital Output 20'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Digital Output 21'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Digital Output 22'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Digital Output 23'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Digital Output 24'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Digital Output 25'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Digital Output 26'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Digital Output 3'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Digital Output 4'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Digital Output 5'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Digital Output 6'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Digital Output 7'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Digital Output 8'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Digital Output 9'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Direct Normal Illuminance (Hour Interval)'

EXEC spTS_StandardRelationship_Add @measurement, N'nature', N'nature/weather', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/hecta', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/illuminance', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/lux', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Direct Normal Radiation (Hour Interval)'

EXEC spTS_StandardRelationship_Add @measurement, N'nature', N'nature/weather', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'radiation/area/unit', N'unit/squaremeter', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'radiation/energy/prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'radiation/energy/unit', N'unit/watthour', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Domestic Water (Makeup Water) GPM'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'511', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Domestic Water (US Gallons)'

EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N'Domestic Water Interval (US Gallons)', 'M'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/volume', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/usgallon', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/lastvalue', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Domestic Water Interval (US Gallons)'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/volume', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/usgallon', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/sum', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Dry Bulb Temperature Celsius (Hour Interval)'

EXEC spTS_StandardRelationship_Add @measurement, N'nature', N'nature/weather', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/temperature', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/degreecelsius', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Dry Bulb Temperature Fahrenheit (Hour Interval)'

EXEC spTS_StandardRelationship_Add @measurement, N'nature', N'nature/weather', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/temperature', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/degreefahrenheit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Emergency Source Frequency'

EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/frequency', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/rms', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/hertz', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Emergency Source Frequency Dropout'

EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/frequency', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/rms', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Emergency Source Frequency Pickup'

EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/frequency', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/rms', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Emergency Source Over Frequency Trip'

EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/frequency', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/rms', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Emergency Source Over Voltage Dropout'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L' 

----------------------------------------------------------------------------
SET @measurement = N'Emergency Source Over Voltage Pickup'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L' 

----------------------------------------------------------------------------
SET @measurement = N'Emergency Source Over Voltage Trip'

EXEC spTS_StandardRelationship_Add @measurement, N'imbalance', N'avg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Emergency Source Voltage Dropout'

EXEC spTS_StandardRelationship_Add @measurement, N'imbalance', N'avg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Emergency Source Voltage Phases AB'

EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/ab', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/rms', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/volt', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Emergency Source Voltage Phases BC'

EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/bc', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/rms', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/volt', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Emergency Source Voltage Phases CA'

EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/ca', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/rms', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/volt', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Emergency Source Voltage Pickup'

EXEC spTS_StandardRelationship_Add @measurement, N'imbalance', N'avg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Emergency Source Voltage Unbalance'

EXEC spTS_StandardRelationship_Add @measurement, N'imbalance', N'avg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Emergency Source Voltage Unbalance Dropout'

EXEC spTS_StandardRelationship_Add @measurement, N'imbalance', N'avg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Emergency Source Voltage Unbalance Enabled'

EXEC spTS_StandardRelationship_Add @measurement, N'imbalance', N'avg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Emergency Source Voltage Unbalance Pickup'

EXEC spTS_StandardRelationship_Add @measurement, N'imbalance', N'avg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Energy Cost USD'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/cost', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/currencyusd', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Energy Price USD'
 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/currencyusd', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'price/prefix', N'prefix/mega', 'Q' 
EXEC spTS_StandardRelationship_Add @measurement, N'price/currency', N'unit/currencyUSD', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'price/quantity', N'quantity/energy', 'Q' 
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/price', 'Q' 
EXEC spTS_StandardRelationship_Add @measurement, N'price/unit', N'unit/watthour', 'Q' 

----------------------------------------------------------------------------
SET @measurement = N'Energy Price USD Forecast'
 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/currencyusd', 'Q'
 
----------------------------------------------------------------------------
SET @measurement = N'Energy Price USD Forecast - One Day(If Demand Prediction Rises by 150MW)'
 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/currencyusd', 'Q'
 
----------------------------------------------------------------------------
SET @measurement = N'Energy Price USD Forecast - One Day'

EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/currencyusd', 'Q'
 
----------------------------------------------------------------------------
SET @measurement = N'Energy Price USD Forecast - One Day(If Demand Prediction Rises by 400MW)'
 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/currencyusd', 'Q'
 
----------------------------------------------------------------------------
SET @measurement = N'Energy Price USD Forecast - One Hour'
 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/currencyusd', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Energy Price USD Forecast - One Day(If Demand Prediction Falls by 150MW)'
 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/currencyusd', 'Q'
 
----------------------------------------------------------------------------
SET @measurement = N'Energy Price USD Forecast - One Day(If Demand Prediction Falls by 400MW)'
 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/currencyusd', 'Q'
 
----------------------------------------------------------------------------
SET @measurement = N'Energy Price CAD'

EXEC spTS_StandardRelationship_Add @measurement, N'price/currency', N'unit/currencycad', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'price/prefix', N'prefix/mega', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'price/quantity', N'quantity/energy', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'price/unit', N'unit/watthour', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/price', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Energy Price CAD Forecast'

EXEC spTS_StandardRelationship_Add @measurement, N'prediction', N'Energy Price CAD', 'M'
EXEC spTS_StandardRelationship_Add @measurement, N'prediction/interval', N'prediction/updating', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prediction/unit', N'unit/custom', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'price/currency', N'unit/currencycad', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'price/prefix', N'prefix/mega', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'price/quantity', N'quantity/energy', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'price/unit', N'unit/watthour', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/price', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Energy Price CAD Forecast - One Day'

EXEC spTS_StandardRelationship_Add @measurement, N'prediction/interval', N'1', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'prediction', N'Energy Price CAD', 'M'
EXEC spTS_StandardRelationship_Add @measurement, N'prediction/unit', N'unit/day', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'price/currency', N'unit/currencycad', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'price/prefix', N'prefix/mega', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'price/quantity', N'quantity/energy', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'price/unit', N'unit/watthour', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/price', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Energy Price CAD Forecast - One Day(If Demand Prediction Falls by 150MW)'

EXEC spTS_StandardRelationship_Add @measurement, N'price/currency', N'unit/currencycad', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'price/prefix', N'prefix/mega', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'price/quantity', N'quantity/energy', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'price/unit', N'unit/watthour', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/price', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Energy Price CAD Forecast - One Day(If Demand Prediction Falls by 400MW)'

EXEC spTS_StandardRelationship_Add @measurement, N'price/currency', N'unit/currencycad', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'price/prefix', N'prefix/mega', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'price/quantity', N'quantity/energy', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'price/unit', N'unit/watthour', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/price', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Energy Price CAD Forecast - One Day(If Demand Prediction Rises by 150MW)'

EXEC spTS_StandardRelationship_Add @measurement, N'price/currency', N'unit/currencycad', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'price/prefix', N'prefix/mega', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'price/quantity', N'quantity/energy', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'price/unit', N'unit/watthour', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/price', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Energy Price CAD Forecast - One Day(If Demand Prediction Rises by 400MW)'

EXEC spTS_StandardRelationship_Add @measurement, N'price/currency', N'unit/currencycad', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'price/prefix', N'prefix/mega', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'price/quantity', N'quantity/energy', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'price/unit', N'unit/watthour', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/price', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Energy Price CAD Forecast - One Hour'

EXEC spTS_StandardRelationship_Add @measurement, N'prediction/interval', N'1', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'prediction', N'Energy Price CAD', 'M'
EXEC spTS_StandardRelationship_Add @measurement, N'prediction/unit', N'unit/hour', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'price/currency', N'unit/currencycad', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'price/prefix', N'prefix/mega', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'price/quantity', N'quantity/energy', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'price/unit', N'unit/watthour', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/price', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Enthalpy'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'504', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'nature', N'nature/weather', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Extraterrestrial Direct Normal Radiation (Hour Interval)'

EXEC spTS_StandardRelationship_Add @measurement, N'nature', N'nature/weather', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'radiation/area/unit', N'unit/squaremeter', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'radiation/energy/prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'radiation/energy/unit', N'unit/watthour', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Extraterrestrial Horizontal Radiation (Hour Interval)'

EXEC spTS_StandardRelationship_Add @measurement, N'nature', N'nature/weather', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'radiation/area/unit', N'unit/squaremeter', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'radiation/energy/prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'radiation/energy/unit', N'unit/watthour', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Frequency'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'540', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/frequency', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/rms', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/hertz', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Frequency High'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'1', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/frequency', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/hertz', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/maximum', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Frequency High - Power Quality Monitoring'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'215', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/frequency', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/hertz', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/maximum', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Frequency Low'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'2', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/frequency', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/min', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/hertz', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/minimum', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Frequency Low - Power Quality Monitoring'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'216', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/frequency', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/hertz', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/minimum', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Frequency Maximum'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'1', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/frequency', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/hertz', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/maximum', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Frequency Mean'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'3', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/frequency', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/avg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/hertz', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/average', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Frequency Mean - Power Quality Monitoring'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'217', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/frequency', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/hertz', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/average', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Frequency Minimum'

EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/frequency', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/min', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/hertz', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/minimum', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Frequency N Count'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'178', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/frequency', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Frequency N invalid Count'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'179', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/frequency', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Frequency N1 Count'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'180', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/frequency', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Frequency N2 Count'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'181', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/frequency', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Gas btus'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'494', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Gas Volume (Cubic Feet)'

EXEC spTS_StandardRelationship_Add @measurement, N'nature', N'nature/naturalgas', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/volume', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfoot', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/lastvalue', 'Q'

  
----------------------------------------------------------------------------
SET @measurement = N'Gas Volume (Cubic Meters)'

EXEC spTS_StandardRelationship_Add @measurement, N'nature', N'nature/naturalgas', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/volume', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeter', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/lastvalue', 'Q'


----------------------------------------------------------------------------
SET @measurement = N'Global Horizontal Illuminance (Hour Interval)'

EXEC spTS_StandardRelationship_Add @measurement, N'nature', N'nature/weather', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/hecta', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/illuminance', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/lux', 'Q'
EXEC spTS_StandardRelationship_Add 'Global Horizontal Illuminance (Hour Interval)', N'defaultrollupmethod', N'rollupmethod/sum', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Global Horizontal Radiation (Hour Interval)'

EXEC spTS_StandardRelationship_Add @measurement, N'nature', N'nature/weather', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'radiation/area/unit', N'unit/squaremeter', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'radiation/energy/prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'radiation/energy/unit', N'unit/watthour', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Ground Current'

EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/ground', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/rms', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/ampere', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Ground Current Maximum'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/delivered', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/ground', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/ampere', 'Q'
EXEC spTS_StandardRelationship_Add 'Ground Current Maximum', N'defaultrollupmethod', N'rollupmethod/maximum', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Ground Current Minimum'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/delivered', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/ground', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/min', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/ampere', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/minimum', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Heating Degree Days (future)'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'503', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Heating Degree Days Celsius'

EXEC spTS_StandardRelationship_Add @measurement, N'heating', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'9001', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'nature', N'nature/weather', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/degreedays', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/degreecelsius', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Heating Degree Days Fahrenheit'

EXEC spTS_StandardRelationship_Add @measurement, N'heating', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'nature', N'nature/weather', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/degreedays', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/degreefahrenheit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Horizontal Visibility (Hour Interval)'

EXEC spTS_StandardRelationship_Add @measurement, N'nature', N'nature/weather', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/hecta', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/length', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/meter', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Hot Water (Btu)'

EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N'Hot Water Interval (Btu)', 'M'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/energy', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/lastvalue', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Hot Water Interval (Btu)'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/energy', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/sum', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'I1 Waveform'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'21', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/an', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/waveform', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/ampere', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'I2 Waveform'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'26', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/bn', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/waveform', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/ampere', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'I3 Waveform'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'31', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/cn', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/waveform', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/ampere', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'I4 Waveform'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'36', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/neutral', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/waveform', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/ampere', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'I5 Waveform'

EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/ground', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/waveform', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/ampere', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Metering Point Definition 1'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'199', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/number', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/config', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Metering Point Definition 2'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'200', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/number', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/config', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Motor Control Status - Auto'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Motor Control Status - Forward'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Motor Control Status - Hand'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Motor Control Status - Off'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Motor Control Status - Reverse'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Motor Control Status - Stop'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Motor Current Last Trip'

EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/rms', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/ampere', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Motor Run Time'

EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/time', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/hour', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/lastvalue', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Motor Starts'

EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/count', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/lastvalue', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Motor Trips'

EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/count', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/lastvalue', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Neutral Current'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'4', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/neutral', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/ampere', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Current N High'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'4', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/neutral', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/ampere', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/maximum', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Current N Low'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'5', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/neutral', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/min', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/ampere', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/minimum', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Neutral Current Maximum'

EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/minmax', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/neutral', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/ampere', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/maximum', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Current N Mean'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'6', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/neutral', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/avg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/ampere', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/average', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Neutral Current Minimum'

EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/minmax', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/neutral', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/min', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/ampere', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/minimum', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Current E High'

EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/ground', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/ampere', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Current E Low'

EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/ground', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/ampere', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Current E Mean'

EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/ground', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/ampere', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Normal Source Frequency'

EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/frequency', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/rms', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/hertz', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Normal Source Frequency Dropout'

EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/frequency', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/rms', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Normal Source Frequency Pickup'

EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/frequency', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/rms', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Normal Source Over Frequency Trip'

EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/frequency', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/rms', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Normal Source Over Voltage Dropout'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L' 

----------------------------------------------------------------------------
SET @measurement = N'Normal Source Over Voltage Pickup'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L' 

----------------------------------------------------------------------------
SET @measurement = N'Normal Source Over Voltage Trip'

EXEC spTS_StandardRelationship_Add @measurement, N'imbalance', N'avg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Normal Source Voltage Dropout'

EXEC spTS_StandardRelationship_Add @measurement, N'imbalance', N'avg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Normal Source Voltage Phases AB'

EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/ab', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/rms', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/volt', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Normal Source Voltage Phases BC'

EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/bc', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/rms', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/volt', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Normal Source Voltage Phases CA'

EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/ca', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/rms', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/volt', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Normal Source Voltage Pickup'

EXEC spTS_StandardRelationship_Add @measurement, N'imbalance', N'avg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Normal Source Voltage Unbalance'

EXEC spTS_StandardRelationship_Add @measurement, N'imbalance', N'avg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Normal Source Voltage Unbalance Dropout'

EXEC spTS_StandardRelationship_Add @measurement, N'imbalance', N'avg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Normal Source Voltage Unbalance Enabled'

EXEC spTS_StandardRelationship_Add @measurement, N'imbalance', N'avg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Normal Source Voltage Unbalance Pickup'

EXEC spTS_StandardRelationship_Add @measurement, N'imbalance', N'avg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Opaque Sky Cover (Hour Interval)'

EXEC spTS_StandardRelationship_Add @measurement, N'nature', N'nature/weather', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/deci', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/area', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Over Block Demand Active Power Alarm'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'slidingwindow', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/delivered', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/setpoint', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/power', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/avg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/watt', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Over Current A Alarm'

EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/setpoint', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/an', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/ampere', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Over Current B Alarm'

EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/setpoint', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/bn', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/ampere', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Over Current C Alarm'

EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/setpoint', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/cn', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/ampere', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Overvoltage 150/180-cycle Mean as Percentage of Nominal on Input V1'

EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input1', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/avg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Overvoltage 150/180-cycle Mean as Percentage of Nominal on Input V2'

EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input2', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/avg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Overvoltage 150/180-cycle Mean as Percentage of Nominal on Input V3'

EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input3', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/avg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Overvoltage 10-minute Mean as Percentage of Nominal on Input V1'

EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input1', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/avg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Overvoltage 10-minute Mean as Percentage of Nominal on Input V2'

EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input2', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/avg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Overvoltage 10-minute Mean as Percentage of Nominal on Input V3'

EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input3', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/avg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Overvoltage 2-hour Mean as Percentage of Nominal on Input V1'

EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input1', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/avg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Overvoltage 2-hour Mean as Percentage of Nominal on Input V2'

EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input2', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/avg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Overvoltage 2-hour Mean as Percentage of Nominal on Input V3'

EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input3', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/avg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Unbalance Alarm'

EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/setpoint', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'imbalance', N'avg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Overvoltage Count N11 on Input V1'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'334', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input1', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Overvoltage Count N11 on Input V2'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'399', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input2', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Overvoltage Count N11 on Input V3'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'464', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input3', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Overvoltage Count N12 on Input V1'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'335', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input1', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Overvoltage Count N12 on Input V2'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'400', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input2', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Overvoltage Count N12 on Input V3'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'465', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input3', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Overvoltage Count N13 on Input V1'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'336', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input1', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Overvoltage Count N13 on Input V2'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'401', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input2', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Overvoltage Count N13 on Input V3'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'466', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input3', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Overvoltage Count N14 on Input V1'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'337', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input1', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Overvoltage Count N14 on Input V2'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'402', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input2', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Overvoltage Count N14 on Input V3'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'467', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input3', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Overvoltage Count N15 on Input V1'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'338', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input1', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Overvoltage Count N15 on Input V2'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'403', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input2', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Overvoltage Count N15 on Input V3'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'468', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input3', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Overvoltage Count N21 on Input V1'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'339', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input1', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Overvoltage Count N21 on Input V2'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'404', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input2', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Overvoltage Count N21 on Input V3'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'469', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input3', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Overvoltage Count N22 on Input V1'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'340', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input1', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Overvoltage Count N22 on Input V2'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'405', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input2', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Overvoltage Count N22 on Input V3'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'470', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input3', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Overvoltage Count N23 on Input V1'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'341', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input1', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Overvoltage Count N23 on Input V2'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'406', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input2', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Overvoltage Count N23 on Input V3'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'471', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input3', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Overvoltage Count N24 on Input V1'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'342', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input1', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Overvoltage Count N24 on Input V2'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'407', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input2', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Overvoltage Count N24 on Input V3'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'472', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input3', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Overvoltage Count N25 on Input V1'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'343', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input1', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Overvoltage Count N25 on Input V2'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'408', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input2', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Overvoltage Count N25 on Input V3'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'473', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input3', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Overvoltage Count N31 on Input V1'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'344', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input1', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Overvoltage Count N31 on Input V2'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'409', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input2', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Overvoltage Count N31 on Input V3'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'474', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input3', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Overvoltage Count N32 on Input V1'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'345', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input1', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Overvoltage Count N32 on Input V2'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'410', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input2', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Overvoltage Count N32 on Input V3'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'475', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input3', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Overvoltage Count N33 on Input V1'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'346', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input1', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Overvoltage Count N33 on Input V2'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'411', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input2', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Overvoltage Count N33 on Input V3'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'476', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input3', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Overvoltage Count N34 on Input V1'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'347', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input1', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Overvoltage Count N34 on Input V2'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'412', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input2', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Overvoltage Count N34 on Input V3'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'477', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input3', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Overvoltage Count N35 on Input V1'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'348', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input1', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Overvoltage Count N35 on Input V2'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'413', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input2', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Overvoltage Count N35 on Input V3'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'478', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input3', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Overvoltage Duration on Input V1'

EXEC spTS_StandardRelationship_Add @measurement, N'duration', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'333', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input1', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/time', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/second', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Overvoltage Duration on Input V2'

EXEC spTS_StandardRelationship_Add @measurement, N'duration', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'398', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input2', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/time', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/second', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Overvoltage Duration on Input V3'

EXEC spTS_StandardRelationship_Add @measurement, N'duration', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'463', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input3', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/time', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/second', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Overvoltage Extreme as Percentage of Nominal on Input V1'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'332', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input1', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Overvoltage Extreme as Percentage of Nominal on Input V2'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'397', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input2', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Overvoltage Extreme as Percentage of Nominal on Input V3'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'462', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input3', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Potential Transformer Primary Rating'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'213', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/number', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/config', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Potential Transformer Secondary Rating'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'214', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/number', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/config', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Power Factor Lagging High'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'145', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'powerfactor', N'inductive', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/powerfactor', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/maximum', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Power Factor Lagging Low'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'193', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'powerfactor', N'inductive', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/powerfactor', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/min', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/minimum', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Power Factor Lagging Maximum'

EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/minmax', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'powerfactor', N'inductive', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/powerfactor', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/maximum', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Power Factor Lagging Mean'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'178', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'powerfactor', N'inductive', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/powerfactor', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/avg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/average', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Power Factor Lagging Phase A'

EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/an', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'powerfactor', N'inductive', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/powerfactor', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Power Factor Lagging Phase B'

EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/bn', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'powerfactor', N'inductive', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/powerfactor', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Power Factor Lagging Phase C'

EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/cn', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'powerfactor', N'inductive', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/powerfactor', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Power Factor Lagging Total'

EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'powerfactor', N'inductive', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/powerfactor', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Power Factor Leading High'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'177', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'powerfactor', N'capacitive', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/powerfactor', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/maximum', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Power Factor Leading Low'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'149', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'powerfactor', N'capacitive', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/powerfactor', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/min', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/minimum', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Power Factor Leading Maximum'

EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/minmax', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'powerfactor', N'capacitive', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/powerfactor', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/maximum', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Power Factor Leading Mean'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'150', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'powerfactor', N'capacitive', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/powerfactor', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/avg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/average', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Power Factor Leading Phase A'

EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/an', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'powerfactor', N'capacitive', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/powerfactor', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Power Factor Leading Phase B'

EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/bn', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'powerfactor', N'capacitive', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/powerfactor', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Power Factor Leading Phase C'

EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/cn', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'powerfactor', N'capacitive', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/powerfactor', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Power Factor Leading Total'

EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'powerfactor', N'capacitive', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/powerfactor', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Power Factor Unsigned'

EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/powerfactor', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Power Factor Unsigned Maximum'

EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/powerfactor', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/maximum', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Power Factor Unsigned Minimum'

EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/powerfactor', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/min', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/minimum', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Power Factor Signed'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'210', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/powerfactor', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Power Factor Signed Maximum'

EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/powerfactor', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/maximum', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Power Factor Mean'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'151', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/powerfactor', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/avg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/average', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Power Factor Signed Minimum'

EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/powerfactor', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/min', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/minimum', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Power Factor Signed Phase A'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'541', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/an', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/powerfactor', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Power Factor Signed Phase B'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'542', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/bn', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/powerfactor', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Power Factor Signed Phase C'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'543', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/cn', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/powerfactor', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Power Frequency 10-minute Mean'

EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/frequency', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/avg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/hertz', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Power Frequency 2-hour Mean'

EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/frequency', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/avg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/hertz', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Power Quality Event 150/180-cycle Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Power Quality Event 10-minute Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Power Quality Event 2-hour Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Precipitable Water (Hour Interval)'

EXEC spTS_StandardRelationship_Add @measurement, N'nature', N'nature/weather', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/milli', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/length', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/meter', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/sum', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Predicted Temperature'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'507', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Present Weather (Hour Interval)'

EXEC spTS_StandardRelationship_Add @measurement, N'nature', N'nature/weather', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Reactive Energy Delivered'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'91', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N'Reactive Energy Delivered Interval', 'M'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/delivered', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/energyreactive', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/varhour', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/lastvalue', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Reactive Energy Into the Load','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Wq in','L' 

----------------------------------------------------------------------------
SET @measurement = N'Reactive Energy Delivered + Received'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N'Reactive Energy Delivered Interval', 'M'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'191', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/del_plus_rec', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/energyreactive', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/varhour', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/lastvalue', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Reactive Energy Total','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Wq tot','L' 

----------------------------------------------------------------------------
SET @measurement = N'Reactive Energy Delivered + Received Interval'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/del_plus_rec', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/energyreactive', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/varhour', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/lastvalue', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/sum', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Reactive Energy Delivered Interval'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'96', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/delivered', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/energyreactive', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/varhour', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/sum', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Reactive Energy Delivered Loss-Compensated Interval'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'188', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/delivered', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/energyreactive', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/varhour', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/sum', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Reactive Energy Delivered Rate A'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'92', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N'Reactive Energy Delivered Rate A Interval', 'M'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/delivered', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/energyreactive', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'tou', N'rateA', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/varhour', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/lastvalue', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Reactive Energy Delivered Rate A Interval'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/delivered', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/energyreactive', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'tou', N'rateA', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/varhour', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/sum', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Reactive Energy Delivered Rate B'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'93', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N'Reactive Energy Delivered Rate B Interval', 'M'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/delivered', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/energyreactive', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'tou', N'rateB', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/varhour', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/lastvalue', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Reactive Energy Delivered Rate B Interval'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/delivered', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/energyreactive', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'tou', N'rateB', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/varhour', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/sum', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Reactive Energy Delivered Rate C'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'94', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N'Reactive Energy Delivered Rate C Interval', 'M'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/delivered', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/energyreactive', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'tou', N'rateC', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/varhour', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/lastvalue', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Reactive Energy Delivered Rate C Interval'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/delivered', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/energyreactive', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'tou', N'rateC', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/varhour', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/sum', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Reactive Energy Delivered Rate D'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'95', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N'Reactive Energy Delivered Rate D Interval', 'M'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/delivered', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/energyreactive', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'tou', N'rateD', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/varhour', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/lastvalue', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Reactive Energy Delivered Rate D Interval'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/delivered', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/energyreactive', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'tou', N'rateD', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/varhour', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/sum', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Reactive Energy Delivered(Mega)'

EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/delivered', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/energyreactive', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/varhour', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/lastvalue', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Reactive Energy Delivered-Received'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'97', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N'Reactive Energy Delivered-Received Interval', 'M'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/del_minus_rec', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/energyreactive', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/varhour', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/lastvalue', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Reactive Energy Delivered-Received Interval'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/del_minus_rec', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/energyreactive', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/varhour', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/sum', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Reactive Energy Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Wq int','L' 

----------------------------------------------------------------------------
SET @measurement = N'Reactive Energy in Quadrant I'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'533', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/quadrant_I', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/energyreactive', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/varhour', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/lastvalue', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Reactive Energy in Quadrant II'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'653', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/quadrant_II', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/energyreactive', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/varhour', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/lastvalue', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Reactive Energy in Quadrant III'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'654', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/quadrant_III', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/energyreactive', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/varhour', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/lastvalue', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Reactive Energy in Quadrant IV'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'655', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/quadrant_IV', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/energyreactive', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/varhour', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/lastvalue', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Reactive Energy Loss Interval'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'190', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/del_minus_rec', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/energyreactive', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/varhour', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/sum', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Reactive Energy Received'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'101', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N'Reactive Energy Received Interval', 'M'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/received', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/energyreactive', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/varhour', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/lastvalue', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Reactive Energy Out of the Load','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Wq out','L' 

----------------------------------------------------------------------------
SET @measurement = N'Reactive Energy Received Interval'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'106', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/received', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/energyreactive', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/varhour', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/sum', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Reactive Energy Received Loss-Compensated Interval'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'189', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/received', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/energyreactive', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/varhour', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/sum', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Reactive Energy Received Rate A'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'102', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N'Reactive Energy Received Rate A Interval', 'M'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/received', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/energyreactive', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'tou', N'rateA', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/varhour', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/lastvalue', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Reactive Energy Received Rate A Interval'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/received', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/energyreactive', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'tou', N'rateA', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/varhour', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/sum', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Reactive Energy Received Rate B'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'103', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N'Reactive Energy Received Rate B Interval', 'M'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/received', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/energyreactive', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'tou', N'rateB', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/varhour', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/lastvalue', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Reactive Energy Received Rate B Interval'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/received', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/energyreactive', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'tou', N'rateB', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/varhour', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/sum', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Reactive Energy Received Rate C'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'104', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N'Reactive Energy Received Rate C Interval', 'M'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/received', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/energyreactive', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'tou', N'rateC', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/varhour', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/lastvalue', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Reactive Energy Received Rate C Interval'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/received', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/energyreactive', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'tou', N'rateC', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/varhour', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/sum', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Reactive Energy Received Rate D'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'105', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N'Reactive Energy Received Rate D Interval', 'M'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/received', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/energyreactive', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'tou', N'rateD', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/varhour', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/lastvalue', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Reactive Energy Received Rate D Interval'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/received', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/energyreactive', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'tou', N'rateD', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/varhour', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/sum', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Reactive Energy Received(Mega)'

EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/received', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/energyreactive', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/varhour', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/lastvalue', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Reactive Power'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'187', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/del_minus_rec', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/powerreactive', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/rms', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/var', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Reactive Power High'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'88', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/del_minus_rec', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/powerreactive', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/var', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/maximum', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Reactive Power Low'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'89', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/del_minus_rec', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/powerreactive', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/min', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/var', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/minimum', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Reactive Power Maximum'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/del_minus_rec', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/powerreactive', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/var', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/maximum', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Reactive Power Mean'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'90', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/del_minus_rec', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/powerreactive', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/avg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/var', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/average', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Reactive Power Minimum'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/powerreactive', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/min', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/var', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/minimum', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Reactive Power Phase A'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'521', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/del_minus_rec', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/an', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/powerreactive', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/rms', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/var', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Reactive Power Phase A Maximum'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/del_minus_rec', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/an', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/powerreactive', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/var', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/maximum', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Reactive Power Phase A Minimum'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/del_minus_rec', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/an', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/powerreactive', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/min', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/var', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/minimum', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Reactive Power Phase B'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'522', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/del_minus_rec', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/bn', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/powerreactive', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/rms', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/var', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Reactive Power Phase B Maximum'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/del_minus_rec', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/bn', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/powerreactive', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/var', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/maximum', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Reactive Power Phase B Minimum'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/del_minus_rec', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/bn', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/powerreactive', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/min', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/var', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/minimum', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Reactive Power Phase C'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'523', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/del_minus_rec', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/cn', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/powerreactive', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/rms', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/var', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Reactive Power Phase C Maximum'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/del_minus_rec', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/cn', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/powerreactive', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/var', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/maximum', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Reactive Power Phase C Minimum'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/del_minus_rec', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/cn', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/powerreactive', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/min', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/var', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/minimum', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Reactive Power Sliding Window Demand Delivered'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'78', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'slidingwindow', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/delivered', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/powerreactive', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/avg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/var', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Reactive Power Sliding Window Demand Delivered - Received'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'69', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'slidingwindow', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/del_minus_rec', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/powerreactive', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/avg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/var', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Block Demand Reactive Power','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q dmd block','L'

----------------------------------------------------------------------------
SET @measurement = N'Reactive Power Sliding Window Demand Delivered - Received Maximum'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'593', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'slidingwindow', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/del_minus_rec', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/powerreactive', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/var', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Reactive Power Sliding Window Demand Delivered Maximum'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'545', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'slidingwindow', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/delivered', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/powerreactive', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/var', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Reactive Power Sliding Window Demand Delivered Maximum Rate A'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'70', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'slidingwindow', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/delivered', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/powerreactive', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'tou', N'rateA', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/var', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Reactive Power Sliding Window Demand Delivered Maximum Rate B'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'71', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'slidingwindow', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/delivered', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/powerreactive', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'tou', N'rateB', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/var', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Reactive Power Sliding Window Demand Delivered Maximum Rate C'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'72', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'slidingwindow', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/delivered', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/powerreactive', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'tou', N'rateC', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/var', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Reactive Power Sliding Window Demand Delivered Maximum Rate D'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'73', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'slidingwindow', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/delivered', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/powerreactive', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'tou', N'rateD', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/var', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Reactive Power Sliding Window Demand Delivered Minimum'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'slidingwindow', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/delivered', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/powerreactive', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/min', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/var', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Reactive Power Sliding Window Demand Delivered(Mega)'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'slidingwindow', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/delivered', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/powerreactive', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/avg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/var', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Reactive Power Sliding Window Demand Delivered+Received'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'slidingwindow', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/del_plus_rec', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/powerreactive', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/var', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Reactive Power Sliding Window Demand Delivered+Received Maximum'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'slidingwindow', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/del_plus_rec', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/minmax', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/powerreactive', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/var', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Reactive Power Sliding Window Demand Delivered+Received Minimum'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'slidingwindow', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/del_plus_rec', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/minmax', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/powerreactive', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/min', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/var', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Reactive Power Sliding Window Demand Quadrant I'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'slidingwindow', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/quadrant_I', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/powerreactive', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/avg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/var', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Reactive Power Sliding Window Demand Quadrant I Maximum'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'slidingwindow', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/quadrant_I', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/powerreactive', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/var', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Reactive Power Sliding Window Demand Quadrant II'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'slidingwindow', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/quadrant_II', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/powerreactive', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/avg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/var', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Reactive Power Sliding Window Demand Quadrant II Maximum'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'slidingwindow', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/quadrant_II', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/powerreactive', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/var', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Reactive Power Sliding Window Demand Quadrant III'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'slidingwindow', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/quadrant_III', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/powerreactive', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/avg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/var', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Reactive Power Sliding Window Demand Quadrant III Maximum'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'slidingwindow', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/quadrant_III', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/powerreactive', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/var', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Reactive Power Sliding Window Demand Quadrant IV'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'slidingwindow', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/quadrant_IV', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/powerreactive', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/avg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/var', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Reactive Power Sliding Window Demand Quadrant IV Maximum'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'slidingwindow', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/quadrant_IV', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/powerreactive', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/var', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Reactive Power Sliding Window Demand Received'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'slidingwindow', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/received', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/powerreactive', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/var', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Reactive Power Sliding Window Demand Received Maximum'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'slidingwindow', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/received', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/powerreactive', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/var', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Reactive Power Sliding Window Demand Received Maximum Rate A'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'74', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'slidingwindow', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/received', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/powerreactive', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'tou', N'rateA', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/var', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Reactive Power Sliding Window Demand Received Maximum Rate B'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'75', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'slidingwindow', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/received', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/powerreactive', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'tou', N'rateB', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/var', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Reactive Power Sliding Window Demand Received Maximum Rate C'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'76', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'slidingwindow', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/received', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/powerreactive', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'tou', N'rateC', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/var', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Reactive Power Sliding Window Demand Received Maximum Rate D'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'77', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'slidingwindow', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/received', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/powerreactive', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'tou', N'rateD', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/var', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Reactive Power Thermal Demand Delivered Maximum Rate A'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'80', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'thermal', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/delivered', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/powerreactive', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'tou', N'rateA', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/var', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Reactive Power Thermal Demand Delivered Maximum Rate B'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'81', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'thermal', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/delivered', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/powerreactive', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'tou', N'rateB', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/var', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Reactive Power Thermal Demand Delivered Maximum Rate C'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'82', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'thermal', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/delivered', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/powerreactive', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'tou', N'rateC', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/var', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Reactive Power Thermal Demand Delivered Maximum Rate D'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'83', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'thermal', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/delivered', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/powerreactive', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'tou', N'rateD', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/var', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Reactive Power Thermal Demand Delivered-Received'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'79', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'thermal', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/del_minus_rec', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/powerreactive', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/avg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/var', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Thermal Demand Reactive Power','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q dmd therm','L'

----------------------------------------------------------------------------
SET @measurement = N'Reactive Power Thermal Demand Received Maximum Rate A'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'84', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'thermal', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/received', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/powerreactive', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'tou', N'rateA', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/var', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Reactive Power Thermal Demand Received Maximum Rate B'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'85', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'thermal', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/received', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/powerreactive', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'tou', N'rateB', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/var', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Reactive Power Thermal Demand Received Maximum Rate C'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'86', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'thermal', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/received', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/powerreactive', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'tou', N'rateC', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/var', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Reactive Power Thermal Demand Received Maximum Rate D'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'87', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'thermal', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/received', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/powerreactive', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'tou', N'rateD', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/var', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Reactive Power(Mega)'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/del_minus_rec', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/powerreactive', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/rms', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/var', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Relative Humidity (Hour Interval)'

EXEC spTS_StandardRelationship_Add @measurement, N'nature', N'nature/weather', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/relativehumidity', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 1 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/setpoint', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 2 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/setpoint', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 3 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/setpoint', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 4 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/setpoint', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 5 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/setpoint', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 6 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/setpoint', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 7 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/setpoint', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 8 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/setpoint', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 9 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/setpoint', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 10 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/setpoint', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 11 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/setpoint', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 12 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/setpoint', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 13 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/setpoint', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 14 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/setpoint', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 15 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/setpoint', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 16 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/setpoint', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 17 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/setpoint', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 18 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/setpoint', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 19 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/setpoint', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 20 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/setpoint', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 21 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/setpoint', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 22 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/setpoint', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 23 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/setpoint', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 24 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/setpoint', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 25 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/setpoint', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 26 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/setpoint', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 27 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/setpoint', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 28 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/setpoint', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 29 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/setpoint', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 30 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/setpoint', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 31 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/setpoint', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 32 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/setpoint', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 33 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/setpoint', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 34 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/setpoint', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 35 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/setpoint', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 36 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/setpoint', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 37 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/setpoint', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 38 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/setpoint', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 39 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/setpoint', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 40 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/setpoint', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 41 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/setpoint', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 42 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/setpoint', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 43 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/setpoint', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 44 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/setpoint', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 45 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/setpoint', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 46 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/setpoint', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 47 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/setpoint', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 48 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/setpoint', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 49 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/setpoint', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 50 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/setpoint', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 51 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/setpoint', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 52 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/setpoint', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 53 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/setpoint', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 54 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/setpoint', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 55 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/setpoint', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 56 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/setpoint', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 57 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/setpoint', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 58 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/setpoint', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 59 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/setpoint', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 60 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/setpoint', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 61 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/setpoint', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 62 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/setpoint', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 63 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/setpoint', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 64 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/setpoint', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 65 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/setpoint', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 66 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/setpoint', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 67 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/setpoint', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 68 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/setpoint', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 69 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/setpoint', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 70 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/setpoint', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 71 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/setpoint', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 72 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/setpoint', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 73 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/setpoint', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 74 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/setpoint', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 75 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/setpoint', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 76 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/setpoint', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 77 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/setpoint', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 78 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/setpoint', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 79 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/setpoint', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 80 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/setpoint', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 81 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/setpoint', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 82 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/setpoint', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 83 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/setpoint', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 84 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/setpoint', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 85 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/setpoint', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 86 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/setpoint', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 87 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/setpoint', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 88 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/setpoint', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 89 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/setpoint', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 90 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/setpoint', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 91 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/setpoint', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 92 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/setpoint', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 93 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/setpoint', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 94 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/setpoint', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 95 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/setpoint', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 96 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/setpoint', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 97 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/setpoint', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 98 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/setpoint', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 99 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/setpoint', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 100 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/setpoint', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 101 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/setpoint', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 102 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/setpoint', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 103 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/setpoint', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 104 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/setpoint', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 105 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/setpoint', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 106 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/setpoint', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 107 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/setpoint', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 108 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/setpoint', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 109 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/setpoint', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 110 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/setpoint', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 111 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/setpoint', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 112 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/setpoint', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 113 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/setpoint', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 114 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/setpoint', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 115 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/setpoint', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 116 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/setpoint', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 117 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/setpoint', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 118 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/setpoint', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 119 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/setpoint', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 120 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/setpoint', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 121 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/setpoint', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 122 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/setpoint', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 123 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/setpoint', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 124 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/setpoint', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 125 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/setpoint', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 126 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/setpoint', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 127 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/setpoint', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 128 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/setpoint', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 129 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/setpoint', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 130 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/setpoint', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 131 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/setpoint', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 132 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/setpoint', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 133 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/setpoint', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 134 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/setpoint', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 135 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/setpoint', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 136 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/setpoint', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 137 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/setpoint', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 138 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/setpoint', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 139 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/setpoint', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 140 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/setpoint', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 141 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/setpoint', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 142 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/setpoint', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 143 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/setpoint', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 144 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/setpoint', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 145 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/setpoint', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 146 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/setpoint', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 147 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/setpoint', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 148 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/setpoint', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 149 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/setpoint', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 150 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/setpoint', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 151 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/setpoint', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 152 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/setpoint', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 153 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/setpoint', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 154 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/setpoint', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 155 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/setpoint', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 156 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/setpoint', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 157 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/setpoint', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 158 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/setpoint', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 159 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/setpoint', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 160 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/setpoint', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 161 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/setpoint', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 162 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/setpoint', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 163 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/setpoint', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 164 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/setpoint', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 165 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/setpoint', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 166 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/setpoint', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 167 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/setpoint', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 168 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/setpoint', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 169 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/setpoint', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 170 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/setpoint', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 171 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/setpoint', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 172 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/setpoint', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 173 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/setpoint', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 174 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/setpoint', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 175 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/setpoint', 'Q'

-- Setpoints 176-180 are not currently defined

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 181 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/setpoint', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 182 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/setpoint', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 183 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/setpoint', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 184 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/setpoint', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 185 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/setpoint', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 1 Monitored Measurement'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/string', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 2 Monitored Measurement'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/string', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 3 Monitored Measurement'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/string', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 4 Monitored Measurement'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/string', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 5 Monitored Measurement'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/string', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 6 Monitored Measurement'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/string', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 7 Monitored Measurement'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/string', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 8 Monitored Measurement'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/string', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 9 Monitored Measurement'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/string', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 10 Monitored Measurement'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/string', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 11 Monitored Measurement'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/string', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 12 Monitored Measurement'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/string', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 13 Monitored Measurement'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/string', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 14 Monitored Measurement'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/string', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Setpoint 15 Monitored Measurement'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/string', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Snow Depth (Hour Interval)'

EXEC spTS_StandardRelationship_Add @measurement, N'nature', N'nature/weather', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/centi', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/length', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/meter', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Status Change Counter Input S1'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'254', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/number', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Status Change Counter Input S2'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'255', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/number', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Status Change Counter Input S3'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'256', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/number', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Status Change Counter Input S4'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'257', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/number', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Status Change Counter Input S5'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'258', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/number', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Status Change Counter Input S6'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'259', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/number', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Status Change Counter Input S7'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'260', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/number', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Steam (mlbs)'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'nature', N'nature/steam', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/mlbs', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Steam Mass (Mlb av)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Mass','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'm steam','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/pound','Q'
------------------------------------------------------------------------------
SET @measurement = N'Steam PPH'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'500', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Steam pressure psi'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'493', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Pressure','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p steam','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/psi','Q'
----------------------------------------------------------------------------
SET @measurement = N'Total Sky Cover (Hour Interval)'

EXEC spTS_StandardRelationship_Add @measurement, N'nature', N'nature/weather', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/deci', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/area', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Uplift Charge CAD'

EXEC spTS_StandardRelationship_Add @measurement, N'price/currency', N'unit/currencycad', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'price/prefix', N'prefix/mega', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'price/quantity', N'quantity/energy', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'price/unit', N'unit/watthour', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/price', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Uplift Charge CAD - Estimate'

EXEC spTS_StandardRelationship_Add @measurement, N'price/currency', N'unit/currencycad', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'price/prefix', N'prefix/mega', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'price/quantity', N'quantity/energy', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'price/unit', N'unit/watthour', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/price', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'V1 Waveform'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'184', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input1', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/waveform', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/volt', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'V2 Waveform'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'187', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input2', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/waveform', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/volt', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'V3 Waveform'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'161', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input3', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/waveform', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/volt', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'V4 Waveform'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'164', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input4', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/waveform', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/volt', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Dip 150/180-cycle Mean as Percentage of Nominal on Input V1'

EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input1', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/avg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Dip 150/180-cycle Mean as Percentage of Nominal on Input V2'

EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input2', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/avg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Dip 150/180-cycle Mean as Percentage of Nominal on Input V3'

EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input3', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/avg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Dip 10-minute Mean as Percentage of Nominal on Input V1'

EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input1', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/avg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Dip 10-minute Mean as Percentage of Nominal on Input V2'

EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input2', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/avg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Dip 10-minute Mean as Percentage of Nominal on Input V3'

EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input3', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/avg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Dip 2-hour Mean as Percentage of Nominal on Input V1'

EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input1', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/avg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Dip 2-hour Mean as Percentage of Nominal on Input V2'

EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input2', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/avg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Dip 2-hour Mean as Percentage of Nominal on Input V3'

EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input3', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/avg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Dip Count N11 on Input V1'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'258', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input1', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Dip Count N11 on Input V2'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'351', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input2', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Dip Count N11 on Input V3'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'465', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input3', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Dip Count N12 on Input V1'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'257', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input1', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Dip Count N12 on Input V2'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'352', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input2', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Dip Count N12 on Input V3'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'417', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input3', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Dip Count N13 on Input V1'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'289', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input1', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Dip Count N13 on Input V2'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'353', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input2', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Dip Count N13 on Input V3'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'418', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input3', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Dip Count N14 on Input V1'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'290', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input1', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Dip Count N14 on Input V2'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'354', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input2', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Dip Count N14 on Input V3'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'419', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input3', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Dip Count N21 on Input V1'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'291', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input1', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Dip Count N21 on Input V2'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'355', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input2', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Dip Count N21 on Input V3'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'420', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input3', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Dip Count N22 on Input V1'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'292', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input1', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Dip Count N22 on Input V2'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'356', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input2', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Dip Count N22 on Input V3'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'421', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input3', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Dip Count N23 on Input V1'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'293', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input1', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Dip Count N23 on Input V2'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'357', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input2', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Dip Count N23 on Input V3'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'422', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input3', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Dip Count N24 on Input V1'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'294', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input1', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Dip Count N24 on Input V2'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'358', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input2', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Dip Count N24 on Input V3'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'423', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input3', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Dip Count N31 on Input V1'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'295', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input1', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Dip Count N31 on Input V2'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'359', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input2', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Dip Count N31 on Input V3'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'424', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input3', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Dip Count N32 on Input V1'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'296', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input1', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Dip Count N32 on Input V2'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'360', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input2', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Dip Count N32 on Input V3'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'425', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input3', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Dip Count N33 on Input V1'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'297', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input1', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Dip Count N33 on Input V2'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'361', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input2', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Dip Count N33 on Input V3'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'426', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input3', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Dip Count N34 on Input V1'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'298', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input1', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Dip Count N34 on Input V2'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'362', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input2', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Dip Count N34 on Input V3'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'427', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input3', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Dip Count N41 on Input V1'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'299', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input1', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Dip Count N41 on Input V2'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'363', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input2', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Dip Count N41 on Input V3'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'428', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input3', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Dip Count N42 on Input V1'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'300', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input1', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Dip Count N42 on Input V2'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'364', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input2', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Dip Count N42 on Input V3'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'429', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input3', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Dip Count N43 on Input V1'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'301', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input1', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Dip Count N43 on Input V2'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'365', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input2', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Dip Count N43 on Input V3'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'430', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input3', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Dip Count N44 on Input V1'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'302', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input1', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Dip Count N44 on Input V2'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'366', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input2', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Dip Count N44 on Input V3'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'431', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input3', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Dip Count N51 on Input V1'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'303', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input1', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Dip Count N51 on Input V2'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'367', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input2', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Dip Count N51 on Input V3'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'432', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input3', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Dip Count N52 on Input V1'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'304', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input1', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Dip Count N52 on Input V2'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'368', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input2', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Dip Count N52 on Input V3'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'433', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input3', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Dip Count N53 on Input V1'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'305', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input1', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Dip Count N53 on Input V2'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'369', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input2', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Dip Count N53 on Input V3'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'434', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input3', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Dip Count N54 on Input V1'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'306', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input1', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Dip Count N54 on Input V2'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'370', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input2', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Dip Count N54 on Input V3'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'435', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input3', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Dip Count N61 on Input V1'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'307', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input1', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Dip Count N61 on Input V2'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'371', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input2', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Dip Count N61 on Input V3'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'436', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input3', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Dip Count N62 on Input V1'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'308', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input1', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Dip Count N62 on Input V2'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'372', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input2', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Dip Count N62 on Input V3'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'437', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input3', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Dip Count N63 on Input V1'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'309', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input1', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Dip Count N63 on Input V2'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'373', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input2', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Dip Count N63 on Input V3'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'438', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input3', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Dip Count N64 on Input V1'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'310', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input1', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Dip Count N64 on Input V2'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'345', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input2', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Dip Count N64 on Input V3'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'439', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input3', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Dip Duration on Input V1'

EXEC spTS_StandardRelationship_Add @measurement, N'duration', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'286', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/an', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/time', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/second', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Dip Duration on Input V2'

EXEC spTS_StandardRelationship_Add @measurement, N'duration', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'350', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input2', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/time', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/second', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Dip Duration on Input V3'

EXEC spTS_StandardRelationship_Add @measurement, N'duration', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'466', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input3', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/time', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/second', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Dip Extreme as Percentage of Nominal on Input V1'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'254', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input1', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/min', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Dip Extreme as Percentage of Nominal on Input V2'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'349', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input2', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/min', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Dip Extreme as Percentage of Nominal on Input V3'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'414', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input3', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Disturbance Average Voltage on Input V1'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'263', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input1', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/avg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/volt', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Disturbance Average Voltage on Input V2'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'267', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input2', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/avg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/volt', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Disturbance Average Voltage on Input V3'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'271', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input3', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/avg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/volt', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Disturbance Detection Nominal Voltage'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'262', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/config', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/volt', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Disturbance Detection Nominal Voltage Setup Register'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'583', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/config', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/volt', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Disturbance Duration'

EXEC spTS_StandardRelationship_Add @measurement, N'duration', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'261', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/time', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/second', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Disturbance Energy Delta on Input V1'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'264', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'voltsEnergy', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input1', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Disturbance Energy Delta on Input V2'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'268', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'voltsEnergy', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input2', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Disturbance Energy Delta on Input V3'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'272', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'voltsEnergy', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input3', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Disturbance Maximum Voltage on Input V1'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'216', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input1', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/volt', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Disturbance Maximum Voltage on Input V2'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'269', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input2', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/volt', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Disturbance Maximum Voltage on Input V3'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'273', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input3', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/volt', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Disturbance Minimum Voltage on Input V1'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'215', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input1', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/min', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/volt', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Disturbance Minimum Voltage on Input V2'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'270', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input2', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/min', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/volt', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Disturbance Minimum Voltage on Input V3'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'274', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input3', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/min', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/volt', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Disturbance Sag Limit'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'275', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/config', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Disturbance State'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Disturbance Swell Limit'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'276', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/config', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Flicker Count N invalid on Input V1'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'312', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input1', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Flicker Count N invalid on Input V2'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'376', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input2', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Flicker Count N invalid on Input V3'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'441', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input3', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Flicker Count N on Input V1'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'311', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input1', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Flicker Count N on Input V2'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'344', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input2', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Flicker Count N on Input V3'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'440', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input3', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Flicker Count N1 on Input V1'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'313', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input1', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Flicker Count N1 on Input V2'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'348', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input2', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Flicker Count N1 on Input V3'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'442', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input3', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Flicker Plt on Input V1'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'314', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'flicker', N'plt', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input1', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Flicker Plt on Input V2'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'347', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'flicker', N'plt', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input2', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Flicker Plt on Input V3'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'443', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'flicker', N'plt', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input3', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Flicker Pst on Input V1'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'480', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'flicker', N'pst', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input1', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Flicker Pst on Input V2'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'379', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'flicker', N'pst', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input2', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Flicker Pst on Input V3'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'475', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'flicker', N'pst', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input3', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Harmonics Count N invalid on Input V1'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'365', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input1', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Harmonics Count N invalid on Input V2'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'381', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input2', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Harmonics Count N invalid on Input V3'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'493', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input3', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Harmonics Count N on Input V1'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'366', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input1', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Harmonics Count N on Input V2'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'380', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input2', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Harmonics Count N on Input V3'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'474', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input3', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Harmonics Count N1 on Input V1'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'317', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input1', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Harmonics Count N1 on Input V2'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'382', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input2', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Harmonics Count N1 on Input V3'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'478', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input3', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Harmonics Count N2 on Input V1'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'318', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input1', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Harmonics Count N2 on Input V2'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'383', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input2', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Harmonics Count N2 on Input V3'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'477', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input3', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Inter-Harmonics Count N invalid on Input V1'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'320', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input1', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Inter-Harmonics Count N invalid on Input V2'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'354', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input2', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Inter-Harmonics Count N invalid on Input V3'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'450', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input3', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Inter-Harmonics Count N on Input V1'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'319', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input1', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Inter-Harmonics Count N on Input V2'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'355', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input2', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Inter-Harmonics Count N on Input V3'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'449', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input3', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Inter-Harmonics Count N1 on Input V1'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'321', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input1', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Inter-Harmonics Count N1 on Input V2'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'386', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input2', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Inter-Harmonics Count N1 on Input V3'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'451', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input3', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Interruption Count N1 on Input V1'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'322', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input1', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Interruption Count N1 on Input V2'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'358', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input2', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Interruption Count N1 on Input V3'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'452', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input3', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Interruption Count N2 on Input V1'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'323', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input1', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Interruption Count N2 on Input V2'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'357', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input2', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Interruption Count N2 on Input V3'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'453', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input3', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Interruption Count N3 on Input V1'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'324', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input1', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Interruption Count N3 on Input V2'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'389', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input2', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Interruption Count N3 on Input V3'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'454', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input3', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Interruption Duration on Input V1'

EXEC spTS_StandardRelationship_Add @measurement, N'duration', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'325', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input1', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/time', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/second', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Interruption Duration on Input V2'

EXEC spTS_StandardRelationship_Add @measurement, N'duration', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'390', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input2', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/time', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/second', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Interruption Duration on Input V3'

EXEC spTS_StandardRelationship_Add @measurement, N'duration', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'455', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input3', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/time', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/second', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Line-to-Neutral Phase A Maximum'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'558', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/an', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/volt', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/maximum', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Line-to-Neutral Phase A Minimum'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'586', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/an', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/min', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/volt', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/minimum', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Line-to-Neutral Phase B Maximum'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'589', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/bn', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/volt', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/maximum', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Line-to-Neutral Phase B Minimum'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'557', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/bn', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/min', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/volt', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/minimum', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Line-to-Neutral Phase C Maximum'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'591', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/cn', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/volt', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/maximum', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Line-to-Neutral Phase C Minimum'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'590', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/cn', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/min', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/volt', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/minimum', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Magnitude 150/180-cycle Mean on Input V1'

EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input1', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/avg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/volt', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Magnitude 150/180-cycle Mean on Input V2'

EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input2', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/avg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/volt', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Magnitude 150/180-cycle Mean on Input V3'

EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input3', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/avg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/volt', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Magnitude 10-minute Mean on Input V1'

EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input1', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/avg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/volt', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Magnitude 10-minute Mean on Input V2'

EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input2', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/avg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/volt', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Magnitude 10-minute Mean on Input V3'

EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input3', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/avg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/volt', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Magnitude 2-hour Mean on Input V1'

EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input1', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/avg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/volt', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Magnitude 2-hour Mean on Input V2'

EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input2', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/avg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/volt', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Magnitude 2-hour Mean on Input V3'

EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input3', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/avg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/volt', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Magnitude Count N invalid on Input V1'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'327', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input1', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Magnitude Count N invalid on Input V2'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'392', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input2', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Magnitude Count N invalid on Input V3'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'457', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input3', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Magnitude Count N on Input V1'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'326', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input1', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Magnitude Count N on Input V2'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'391', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input2', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Magnitude Count N on Input V3'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'456', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input3', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Magnitude Count N1 on Input V1'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'328', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input1', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Magnitude Count N1 on Input V2'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'346', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input2', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Magnitude Count N1 on Input V3'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'458', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input3', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Mains Signaling Count N invalid on Input V1'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'331', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input1', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Mains Signaling Count N invalid on Input V2'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'343', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input2', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Mains Signaling Count N invalid on Input V3'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'461', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input3', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Mains Signaling Count N on Input V1'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'329', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input1', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Mains Signaling Count N on Input V2'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'394', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input2', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Mains Signaling Count N on Input V3'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'459', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input3', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Mains Signaling Count N1 on Input V1'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'330', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input1', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Mains Signaling Count N1 on Input V2'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'395', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input2', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Mains Signaling Count N1 on Input V3'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'460', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input3', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage on Input V1 High - Power Quality Monitoring'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'218', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input1', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/volt', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage on Input V1 Low - Power Quality Monitoring'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'219', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input1', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/min', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/volt', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage on Input V1 Mean - Power Quality Monitoring'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'220', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input1', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/avg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/volt', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage on Input V1 Total Even Harmonic Distortion Maximum - Power Quality Monitoring'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'223', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'harmonic', N'tehd', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input1', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage on Input V1 Total Even Harmonic Distortion Mean - Power Quality Monitoring'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'221', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'harmonic', N'tehd', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input1', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/avg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage on Input V1 Total Even Harmonic Distortion Minimum - Power Quality Monitoring'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'222', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'harmonic', N'tehd', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input1', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/min', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage on Input V1 Total Harmonic Distortion Maximum'

EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/minmax', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'harmonic', N'thd', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input1', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Line-to-Neutral Phase A Total Harmonic Distortion Maximum'

EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/minmax', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'harmonic', N'thd', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/an', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Phases AB Total Harmonic Distortion Maximum'

EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/minmax', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'harmonic', N'thd', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/ab', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Line-to-Neutral Phase A Total Harmonic Distortion Minimum'

EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/minmax', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'harmonic', N'thd', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/an', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/min', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Phases AB Total Harmonic Distortion Minimum'

EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/minmax', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'harmonic', N'thd', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/ab', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/min', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage on Input V1 Total Harmonic Distortion Maximum - Power Quality Monitoring'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'226', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'harmonic', N'thd', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input1', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage on Input V1 Total Harmonic Distortion Mean - Power Quality Monitoring'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'224', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'harmonic', N'thd', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input1', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/avg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage on Input V1 Total Harmonic Distortion Minimum - Power Quality Monitoring'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'225', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'harmonic', N'thd', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input1', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/min', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage on Input V1 Total Odd Harmonic Distortion Maximum - Power Quality Monitoring'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'229', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'harmonic', N'tohd', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input1', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage on Input V1 Total Odd Harmonic Distortion Mean - Power Quality Monitoring'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'227', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'harmonic', N'tohd', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input1', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/avg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage on Input V1 Total Odd Harmonic Distortion Minimum - Power Quality Monitoring'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'228', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'harmonic', N'tohd', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input1', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/min', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage on Input V2 High - Power Quality Monitoring'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'230', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input2', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/volt', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage on Input V2 Low - Power Quality Monitoring'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'231', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input2', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/min', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/volt', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage on Input V2 Mean - Power Quality Monitoring'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'232', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input2', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/avg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/volt', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage on Input V2 Total Even Harmonic Distortion Maximum - Power Quality Monitoring'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'235', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'harmonic', N'tehd', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input2', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage on Input V2 Total Even Harmonic Distortion Mean - Power Quality Monitoring'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'233', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'harmonic', N'tehd', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input2', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/avg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage on Input V2 Total Even Harmonic Distortion Minimum - Power Quality Monitoring'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'234', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'harmonic', N'tehd', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input2', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/min', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage on Input V2 Total Harmonic Distortion Maximum'

EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/minmax', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'harmonic', N'thd', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input2', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Line-to-Neutral Phase B Total Harmonic Distortion Maximum'

EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/minmax', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'harmonic', N'thd', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/bn', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Phases BC Total Harmonic Distortion Maximum'

EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/minmax', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'harmonic', N'thd', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/bc', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Line-to-Neutral Phase B Total Harmonic Distortion Minimum'

EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/minmax', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'harmonic', N'thd', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/bn', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/min', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Phases BC Total Harmonic Distortion Minimum'

EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/minmax', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'harmonic', N'thd', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/bc', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/min', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage on Input V2 Total Harmonic Distortion Maximum - Power Quality Monitoring'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'238', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'harmonic', N'thd', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input2', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage on Input V2 Total Harmonic Distortion Mean - Power Quality Monitoring'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'236', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'harmonic', N'thd', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input2', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/avg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage on Input V2 Total Harmonic Distortion Minimum - Power Quality Monitoring'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'237', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'harmonic', N'thd', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input2', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/min', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage on Input V2 Total Odd Harmonic Distortion Maximum - Power Quality Monitoring'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'241', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'harmonic', N'tohd', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input2', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage on Input V2 Total Odd Harmonic Distortion Mean - Power Quality Monitoring'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'239', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'harmonic', N'tohd', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input2', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/avg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage on Input V2 Total Odd Harmonic Distortion Minimum - Power Quality Monitoring'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'240', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'harmonic', N'tohd', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input2', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/min', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage on Input V3 High - Power Quality Monitoring'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'242', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input3', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/volt', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage on Input V3 Low - Power Quality Monitoring'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'296', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input3', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/min', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/volt', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage on Input V3 Mean - Power Quality Monitoring'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'275', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input3', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/avg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/volt', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage on Input V3 Total Even Harmonic Distortion Maximum - Power Quality Monitoring'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'278', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'harmonic', N'tehd', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input3', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage on Input V3 Total Even Harmonic Distortion Mean - Power Quality Monitoring'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'274', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'harmonic', N'tehd', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input3', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/avg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage on Input V3 Total Even Harmonic Distortion Minimum - Power Quality Monitoring'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'293', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'harmonic', N'tehd', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input3', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/min', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage on Input V3 Total Harmonic Distortion Maximum'

EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/minmax', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'harmonic', N'thd', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input3', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Line-to-Neutral Phase C Total Harmonic Distortion Maximum'

EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/minmax', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'harmonic', N'thd', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/cn', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Phases CA Total Harmonic Distortion Maximum'

EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/minmax', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'harmonic', N'thd', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/ca', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Line-to-Neutral Phase C Total Harmonic Distortion Minimum'

EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/minmax', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'harmonic', N'thd', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/cn', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/min', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Phases CA Total Harmonic Distortion Minimum'

EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/minmax', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'harmonic', N'thd', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/ca', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/min', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage on Input V3 Total Harmonic Distortion Maximum - Power Quality Monitoring'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'250', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'harmonic', N'thd', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input3', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage on Input V3 Total Harmonic Distortion Mean - Power Quality Monitoring'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'277', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'harmonic', N'thd', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input3', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/avg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage on Input V3 Total Harmonic Distortion Minimum - Power Quality Monitoring'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'249', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'harmonic', N'thd', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input3', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/min', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage on Input V3 Total Odd Harmonic Distortion Maximum - Power Quality Monitoring'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'253', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'harmonic', N'tohd', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input3', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage on Input V3 Total Odd Harmonic Distortion Mean - Power Quality Monitoring'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'251', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'harmonic', N'tohd', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input3', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/avg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage on Input V3 Total Odd Harmonic Distortion Minimum - Power Quality Monitoring'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'252', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'harmonic', N'tohd', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input3', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/min', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Phases AB'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'534', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/ab', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/rms', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/volt', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Phases AB High'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'116', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/ab', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/volt', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/maximum', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Phases AB Low'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'115', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/ab', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/min', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/volt', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/minimum', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Phases AB Maximum'

EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/minmax', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/ab', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/volt', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/maximum', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Phases AB Mean'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'167', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/ab', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/avg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/volt', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/average', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Phases AB Minimum'

EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/minmax', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/ab', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/min', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/volt', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/minimum', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Phases AB squared hours Meter Units Interval'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'204', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'V2h', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/ab', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/voltsquaredhour', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/sum', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Phases AN'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'512', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/an', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/rms', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/volt', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Phases AN squared hours'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'482', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'V2h', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/an', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/voltsquaredhour', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Phases AN squared hours Meter Units Interval'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'207', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'V2h', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/an', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/voltsquaredhour', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/sum', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Phases BC'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'535', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/bc', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/rms', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/volt', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Phases BC High'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'171', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/bc', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/volt', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/maximum', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Phases BC Low'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'172', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/bc', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/min', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/volt', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/minimum', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Phases BC Maximum'

EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/minmax', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/bc', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/volt', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/maximum', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Phases BC Mean'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'173', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/bc', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/avg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/volt', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/average', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Phases BC Minimum'

EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/minmax', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/bc', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/min', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/volt', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/minimum', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Phases BC squared hours Meter Units Interval'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'205', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'V2h', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/bc', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/voltsquaredhour', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/sum', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Phases BN'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'513', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/bn', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/rms', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/volt', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Phases BN squared hours'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'455', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'V2h', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/bn', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/voltsquaredhour', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Phases BN squared hours Meter Units Interval'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'208', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'V2h', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/bn', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/voltsquaredhour', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/sum', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Phases CA'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'536', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/ca', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/rms', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/volt', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Phases CA High'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'145', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/ca', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/volt', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/maximum', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Phases CA Low'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'144', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/ca', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/min', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/volt', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/minimum', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Phases CA Maximum'

EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/minmax', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/ca', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/volt', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/maximum', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Phases CA Mean'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'176', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/ca', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/avg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/volt', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/average', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Phases CA Minimum'

EXEC spTS_StandardRelationship_Add @measurement, N'feature', N'feature/minmax', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/ca', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/min', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/volt', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/minimum', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Phases CA squared hours Meter Units Interval'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'206', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'V2h', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/ca', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/voltsquaredhour', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/sum', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Phases CN'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'514', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/cn', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/rms', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/volt', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Phases CN squared hours'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'454', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'V2h', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/cn', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/voltsquaredhour', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Phases CN squared hours Meter Units Interval'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'209', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'V2h', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/cn', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/voltsquaredhour', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/sum', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Total Harmonic Distortion 150/180-cycle Mean on Input V1'

EXEC spTS_StandardRelationship_Add @measurement, N'harmonic', N'thd', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input1', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/avg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Total Harmonic Distortion 150/180-cycle Mean on Input V2'

EXEC spTS_StandardRelationship_Add @measurement, N'harmonic', N'thd', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input2', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/avg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Total Harmonic Distortion 150/180-cycle Mean on Input V3'

EXEC spTS_StandardRelationship_Add @measurement, N'harmonic', N'thd', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input3', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/avg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Total Harmonic Distortion 10-minute Mean on Input V1'

EXEC spTS_StandardRelationship_Add @measurement, N'harmonic', N'thd', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input1', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/avg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Total Harmonic Distortion 10-minute Mean on Input V2'

EXEC spTS_StandardRelationship_Add @measurement, N'harmonic', N'thd', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input2', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/avg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Total Harmonic Distortion 10-minute Mean on Input V3'

EXEC spTS_StandardRelationship_Add @measurement, N'harmonic', N'thd', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input3', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/avg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Total Harmonic Distortion 2-hour Mean on Input V1'

EXEC spTS_StandardRelationship_Add @measurement, N'harmonic', N'thd', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input1', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/avg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Total Harmonic Distortion 2-hour Mean on Input V2'

EXEC spTS_StandardRelationship_Add @measurement, N'harmonic', N'thd', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input2', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/avg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Total Harmonic Distortion 2-hour Mean on Input V3'

EXEC spTS_StandardRelationship_Add @measurement, N'harmonic', N'thd', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input3', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/avg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Total Harmonic Distortion High on Input V1'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'156', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'harmonic', N'thd', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input1', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Total Harmonic Distortion High on Input V2'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'159', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'harmonic', N'thd', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input2', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Total Harmonic Distortion High on Input V3'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'162', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'harmonic', N'thd', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input3', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Total Harmonic Distortion Mean on Input V1'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'188', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'harmonic', N'thd', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input1', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/avg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Total Harmonic Distortion Mean on Input V2'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'160', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'harmonic', N'thd', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input2', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/avg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Total Harmonic Distortion Mean on Input V3'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'163', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'harmonic', N'thd', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input3', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/avg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Total Harmonic Distortion Minimum on Input V1'

EXEC spTS_StandardRelationship_Add @measurement, N'harmonic', N'thd', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input1', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/min', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Total Harmonic Distortion Minimum on Input V2'

EXEC spTS_StandardRelationship_Add @measurement, N'harmonic', N'thd', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input2', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/min', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Total Harmonic Distortion Minimum on Input V3'

EXEC spTS_StandardRelationship_Add @measurement, N'harmonic', N'thd', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input3', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/min', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Total Harmonic Distortion on Input V1'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'530', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'harmonic', N'thd', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input1', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Total Harmonic Distortion on Input V2'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'531', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'harmonic', N'thd', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input2', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Total Harmonic Distortion on Input V3'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'532', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'harmonic', N'thd', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input3', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Transient Duration on Input V1'

EXEC spTS_StandardRelationship_Add @measurement, N'duration', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'279', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/an', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/time', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/second', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Transient Duration on Input V2'

EXEC spTS_StandardRelationship_Add @measurement, N'duration', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'281', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/bn', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/time', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/second', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Transient Duration on Input V3'

EXEC spTS_StandardRelationship_Add @measurement, N'duration', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'283', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/cn', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/time', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/second', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Transient Maximum Voltage on Input V1'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'280', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input1', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/volt', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Transient Maximum Voltage on Input V2'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'282', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input2', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/volt', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Transient Maximum Voltage on Input V3'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'255', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/input3', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/volt', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Transient Nominal Voltage'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'278', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/config', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/volt', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Transient Threshold'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'277', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/config', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Unbalance'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'564', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'imbalance', N'avg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Unbalance Count N'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'486', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'imbalance', N'avg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Unbalance Count N invalid'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'458', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'imbalance', N'avg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Unbalance Count N1'

EXEC spTS_StandardRelationship_Add @measurement, N'count', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'457', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'imbalance', N'avg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Unbalance High'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'152', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'imbalance', N'avg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Unbalance Low'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'153', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'imbalance', N'avg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Unbalance Mean'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'185', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'imbalance', N'avg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Unbalance Negative Sequence Component 150/180-cycle Mean'

EXEC spTS_StandardRelationship_Add @measurement, N'imbalance', N'avg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/avg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Unbalance Zero Sequence Component 150/180-cycle Mean'

EXEC spTS_StandardRelationship_Add @measurement, N'imbalance', N'avg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/avg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Unbalance Negative Sequence Component 10-minute Mean'

EXEC spTS_StandardRelationship_Add @measurement, N'imbalance', N'avg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/avg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Unbalance Zero Sequence Component 10-minute Mean'

EXEC spTS_StandardRelationship_Add @measurement, N'imbalance', N'avg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/avg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Unbalance Negative Sequence Component 2-hour Mean'

EXEC spTS_StandardRelationship_Add @measurement, N'imbalance', N'avg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/avg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Unbalance Zero Sequence Component 2-hour Mean'

EXEC spTS_StandardRelationship_Add @measurement, N'imbalance', N'avg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/avg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Water gallons'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'510', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Weather Atmospheric Pressure'

EXEC spTS_StandardRelationship_Add @measurement, N'nature', N'nature/weather', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/pressure', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/bar', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Weather Relative Humidity'

EXEC spTS_StandardRelationship_Add @measurement, N'nature', N'nature/weather', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/relativehumidity', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Weather Relative Humidity - Forecast This Afternoon'

EXEC spTS_StandardRelationship_Add @measurement, N'nature', N'nature/weather', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'prediction', N'Weather Relative Humidity', 'M'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/relativehumidity', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Weather Relative Humidity - Forecast This Evening'

EXEC spTS_StandardRelationship_Add @measurement, N'nature', N'nature/weather', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'prediction', N'Weather Relative Humidity', 'M'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/relativehumidity', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Weather Relative Humidity - Forecast Tomorrow Afternoon'

EXEC spTS_StandardRelationship_Add @measurement, N'nature', N'nature/weather', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'prediction', N'Weather Relative Humidity', 'M'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/relativehumidity', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Weather Relative Humidity - Forecast Tomorrow Evening'

EXEC spTS_StandardRelationship_Add @measurement, N'nature', N'nature/weather', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'prediction', N'Weather Relative Humidity', 'M'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/relativehumidity', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Weather Relative Humidity - Forecast Tomorrow Morning'

EXEC spTS_StandardRelationship_Add @measurement, N'nature', N'nature/weather', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'prediction', N'Weather Relative Humidity', 'M'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/relativehumidity', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Weather Relative Humidity - Forecast Tomorrow Night'

EXEC spTS_StandardRelationship_Add @measurement, N'nature', N'nature/weather', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'prediction', N'Weather Relative Humidity', 'M'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/relativehumidity', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Weather Relative Humidity - Forecast Tonight'

EXEC spTS_StandardRelationship_Add @measurement, N'nature', N'nature/weather', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'prediction', N'Weather Relative Humidity', 'M'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/relativehumidity', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Weather Relative Humidity - Forecast Two Day'

EXEC spTS_StandardRelationship_Add @measurement, N'nature', N'nature/weather', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'prediction', N'Weather Relative Humidity', 'M'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/relativehumidity', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Weather Temperature Celsius'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'9000', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'nature', N'nature/weather', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/temperature', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/degreecelsius', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Weather Temperature Celsius - Forecast This Afternoon'

EXEC spTS_StandardRelationship_Add @measurement, N'nature', N'nature/weather', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'prediction', N'Weather Temperature Celsius', 'M'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/temperature', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/degreecelsius', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Weather Temperature Celsius - Forecast This Evening'

EXEC spTS_StandardRelationship_Add @measurement, N'nature', N'nature/weather', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'prediction', N'Weather Temperature Celsius', 'M'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/temperature', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/degreecelsius', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Weather Temperature Celsius - Forecast Tomorrow Afternoon'

EXEC spTS_StandardRelationship_Add @measurement, N'nature', N'nature/weather', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'prediction', N'Weather Temperature Celsius', 'M'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/temperature', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/degreecelsius', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Weather Temperature Celsius - Forecast Tomorrow Evening'

EXEC spTS_StandardRelationship_Add @measurement, N'nature', N'nature/weather', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'prediction', N'Weather Temperature Celsius', 'M'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/temperature', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/degreecelsius', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Weather Temperature Celsius - Forecast Tomorrow Morning'

EXEC spTS_StandardRelationship_Add @measurement, N'nature', N'nature/weather', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'prediction', N'Weather Temperature Celsius', 'M'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/temperature', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/degreecelsius', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Weather Temperature Celsius - Forecast Tomorrow Night'

EXEC spTS_StandardRelationship_Add @measurement, N'nature', N'nature/weather', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'prediction', N'Weather Temperature Celsius', 'M'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/temperature', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/degreecelsius', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Weather Temperature Celsius - Forecast Tonight'

EXEC spTS_StandardRelationship_Add @measurement, N'nature', N'nature/weather', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'prediction', N'Weather Temperature Celsius', 'M'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/temperature', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/degreecelsius', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Weather Temperature Celsius - Forecast Two Day'

EXEC spTS_StandardRelationship_Add @measurement, N'nature', N'nature/weather', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'prediction', N'Weather Temperature Celsius', 'M'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/temperature', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/degreecelsius', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Weather Temperature Celsius Daily Maximum'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'9003', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'nature', N'nature/weather', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/temperature', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/degreecelsius', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/maximum', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Weather Temperature Celsius Daily Minimum'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'9004', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'nature', N'nature/weather', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/temperature', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/min', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/degreecelsius', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/minimum', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Weather Temperature Fahrenheit'

EXEC spTS_StandardRelationship_Add @measurement, N'nature', N'nature/weather', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/temperature', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/degreefahrenheit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Weather Temperature Fahrenheit Daily Maximum'

EXEC spTS_StandardRelationship_Add @measurement, N'nature', N'nature/weather', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/temperature', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/degreefahrenheit', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/maximum', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Weather Temperature Fahrenheit Daily Minimum'

EXEC spTS_StandardRelationship_Add @measurement, N'nature', N'nature/weather', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/temperature', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/min', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/degreefahrenheit', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'defaultrollupmethod', N'rollupmethod/minimum', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Wind Direction (Hour Interval)'

EXEC spTS_StandardRelationship_Add @measurement, N'nature', N'nature/weather', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/speed', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/headingdegrees', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Wind Speed'

EXEC spTS_StandardRelationship_Add @measurement, N'LegacyID', N'506', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Wind Speed (Hour Interval)'

EXEC spTS_StandardRelationship_Add @measurement, N'nature', N'nature/weather', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'speed/length/unit', N'unit/meter', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'speed/time/unit', N'unit/second', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Winding Temperature Fahrenheit'

EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/temperature', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/degreefahrenheit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Zenith Luminance (Hour Interval)'

EXEC spTS_StandardRelationship_Add @measurement, N'luminance/area/unit', N'unit/squaremeter', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'luminance/luminousintensity/unit', N'unit/candelas', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'nature', N'nature/weather', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/hecta', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/luminance', 'Q'


-- new for Device Driver I - measurements for 'dynamic' labels
-------------------------------------------------------------------------------
SET @measurement = N'Current Phase A Thermal Demand Present'

EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/ampere', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/an', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'thermalpresent', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'

-------------------------------------------------------------------------------
SET @measurement = N'Current Phase A Sliding Window Demand Present'

EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/ampere', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/an', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'slidingwindowpresent', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'

-------------------------------------------------------------------------------
SET @measurement = N'Current Phase A Sliding Window Demand Delivered Maximum'

EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/ampere', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/an', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'slidingwindow', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'

-------------------------------------------------------------------------------
SET @measurement = N'Current Phase A Thermal Demand Delivered Maximum'

EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/ampere', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/an', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'thermal', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'

-------------------------------------------------------------------------------
SET @measurement = N'Current Phase B Thermal Demand Delivered'

EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/ampere', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/bn', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'thermal', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'

-------------------------------------------------------------------------------
SET @measurement = N'Current Phase B Sliding Window Demand Delivered'

EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/ampere', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/bn', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'slidingwindow', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'

-------------------------------------------------------------------------------
SET @measurement = N'Current Phase B Thermal Demand Present'

EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/ampere', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/bn', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'thermalpresent', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'

-------------------------------------------------------------------------------
SET @measurement = N'Current Phase B Sliding Window Demand Present'

EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/ampere', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/bn', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'slidingwindowpresent', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'

-------------------------------------------------------------------------------
SET @measurement = N'Current Phase B Thermal Demand Delivered Maximum'

EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/ampere', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/bn', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'thermal', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'

-------------------------------------------------------------------------------
SET @measurement = N'Current Phase B Sliding Window Demand Delivered Maximum'

EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/ampere', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/bn', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'slidingwindow', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'

-------------------------------------------------------------------------------
SET @measurement = N'Current Phase C Thermal Demand Delivered'

EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/ampere', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/cn', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'thermal', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'

-------------------------------------------------------------------------------
SET @measurement = N'Current Phase C Sliding Window Demand Delivered'

EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/ampere', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/cn', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'slidingwindow', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'

-------------------------------------------------------------------------------
SET @measurement = N'Current Phase C Thermal Demand Present'

EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/ampere', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/cn', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'thermalpresent', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'

-------------------------------------------------------------------------------
SET @measurement = N'Current Phase C Sliding Window Demand Present'

EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/ampere', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/cn', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'slidingwindowpresent', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'

-------------------------------------------------------------------------------
SET @measurement = N'Current Phase C Thermal Demand Delivered Maximum'

EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/ampere', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/cn', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'thermal', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'

-------------------------------------------------------------------------------
SET @measurement = N'Current Phase C Sliding Window Demand Delivered Maximum'

EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/ampere', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/cn', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'slidingwindow', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'

-------------------------------------------------------------------------------
SET @measurement = N'Current Phase N Thermal Demand Delivered'

EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/ampere', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/neutral', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'thermal', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'

-------------------------------------------------------------------------------
SET @measurement = N'Current Phase N Sliding Window Demand Delivered'

EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/ampere', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/neutral', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'slidingwindow', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'

-------------------------------------------------------------------------------
SET @measurement = N'Current Phase N Thermal Demand Present'

EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/ampere', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/neutral', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'thermalpresent', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'

-------------------------------------------------------------------------------
SET @measurement = N'Current Phase N Sliding Window Demand Present'

EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/ampere', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/neutral', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'slidingwindowpresent', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'

-------------------------------------------------------------------------------
SET @measurement = N'Current Phase N Thermal Demand Delivered Maximum'

EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/ampere', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/neutral', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'thermal', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'

-------------------------------------------------------------------------------
SET @measurement = N'Current Phase N Sliding Window Demand Delivered Maximum'

EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/ampere', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/neutral', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'slidingwindow', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'

-------------------------------------------------------------------------------
SET @measurement = N'Current Phase Average Thermal Demand Delivered'

EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/ampere', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/lnavg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'thermal', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'

-------------------------------------------------------------------------------
SET @measurement = N'Current Phase Average Sliding Window Demand Delivered'

EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/ampere', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/lnavg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'slidingwindow', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'

-------------------------------------------------------------------------------
SET @measurement = N'Current Phase Average Thermal Demand Present'

EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/ampere', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/lnavg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'thermalpresent', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'

-------------------------------------------------------------------------------
SET @measurement = N'Current Phase Average Sliding Window Demand Present'

EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/ampere', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/lnavg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'slidingwindowpresent', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'

-------------------------------------------------------------------------------
SET @measurement = N'Current Phase Average Thermal Demand Delivered Maximum'

EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/ampere', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/lnavg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'thermal', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'

-------------------------------------------------------------------------------
SET @measurement = N'Current Phase Average Sliding Window Demand Delivered Maximum'

EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/ampere', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/lnavg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'slidingwindow', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'

-------------------------------------------------------------------------------
SET @measurement = N'Active Power Thermal Demand Delivered-Received'

EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/watt', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/del_minus_rec', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'thermal', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/power', 'Q'

-------------------------------------------------------------------------------
SET @measurement = N'Active Power Sliding Window Demand Delivered-Received'

EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/watt', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/del_minus_rec', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'slidingwindow', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/power', 'Q'

-------------------------------------------------------------------------------
SET @measurement = N'Active Power Thermal Demand Delivered-Received Present'

EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/watt', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/del_minus_rec', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'thermalpresent', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/power', 'Q'

-------------------------------------------------------------------------------
SET @measurement = N'Active Power Sliding Window Demand Delivered-Received Present'

EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/watt', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/del_minus_rec', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'slidingwindowpresent', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/power', 'Q'

-------------------------------------------------------------------------------
SET @measurement = N'Active Power Thermal Demand Delivered-Received Predicted'

EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/watt', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/del_minus_rec', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'thermalpredicted', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/power', 'Q'

-------------------------------------------------------------------------------
SET @measurement = N'Active Power Sliding Window Demand Delivered-Received Predicted'

EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/watt', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/del_minus_rec', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'predicted', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/power', 'Q'

-------------------------------------------------------------------------------
SET @measurement = N'Active Power Thermal Demand Delivered-Received Maximum'

EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/watt', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/del_minus_rec', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'thermal', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/power', 'Q'

-------------------------------------------------------------------------------
SET @measurement = N'Active Power Sliding Window Demand Delivered-Received Maximum'

EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/watt', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/del_minus_rec', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'slidingwindow', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/power', 'Q'

-------------------------------------------------------------------------------
SET @measurement = N'Reactive Power Thermal Demand Delivered-Received'

EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/var', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/del_minus_rec', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'thermal', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/powerreactive', 'Q'

-------------------------------------------------------------------------------
SET @measurement = N'Reactive Power Sliding Window Demand Delivered - Received'

EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/var', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/del_minus_rec', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'slidingwindow', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/powerreactive', 'Q'

-------------------------------------------------------------------------------
SET @measurement = N'Reactive Power Thermal Demand Delivered-Received Present'

EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/var', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/del_minus_rec', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'thermalpresent', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/powerreactive', 'Q'

-------------------------------------------------------------------------------
SET @measurement = N'Reactive Power Sliding Window Demand Delivered-Received Present'

EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/var', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/del_minus_rec', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'slidingwindowpresent', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/powerreactive', 'Q'

-------------------------------------------------------------------------------
SET @measurement = N'Reactive Power Thermal Demand Delivered-Received Predicted'

EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/var', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/del_minus_rec', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'thermalpredicted', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/powerreactive', 'Q'

-------------------------------------------------------------------------------
SET @measurement = N'Reactive Power Sliding Window Demand Delivered-Received Predicted'

EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/var', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/del_minus_rec', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'predicted', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/powerreactive', 'Q'

-------------------------------------------------------------------------------
SET @measurement = N'Reactive Power Thermal Demand Delivered - Received Maximum'

EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/var', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/del_minus_rec', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'thermal', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/powerreactive', 'Q'

-------------------------------------------------------------------------------
SET @measurement = N'Reactive Power Sliding Window Demand Delivered - Received Maximum'

EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/var', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/del_minus_rec', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'slidingwindow', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/powerreactive', 'Q'

-------------------------------------------------------------------------------
SET @measurement = N'Apparent Power Thermal Demand Delivered+Received'

EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/va', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/del_plus_rec', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'thermal', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/powerapparent', 'Q'

-------------------------------------------------------------------------------
SET @measurement = N'Apparent Power Sliding Window Demand Delivered+Received'

EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/va', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/del_plus_rec', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'slidingwindow', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/powerapparent', 'Q'

-------------------------------------------------------------------------------
SET @measurement = N'Apparent Power Thermal Demand Delivered+Received Present'

EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/va', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/del_plus_rec', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'thermalpresent', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/powerapparent', 'Q'

-------------------------------------------------------------------------------
SET @measurement = N'Apparent Power Sliding Window Demand Delivered+Received Present'

EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/va', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/del_plus_rec', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'slidingwindowpresent', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/powerapparent', 'Q'

-------------------------------------------------------------------------------
SET @measurement = N'Apparent Power Thermal Demand Delivered+Received Predicted'

EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/va', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/del_plus_rec', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'thermalpredicted', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/powerapparent', 'Q'

-------------------------------------------------------------------------------
SET @measurement = N'Apparent Power Sliding Window Demand Delivered+Received Predicted'

EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/va', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/del_plus_rec', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'predicted', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/powerapparent', 'Q'

-------------------------------------------------------------------------------
SET @measurement = N'Apparent Power Thermal Demand Delivered+Received Maximum'

EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/va', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/del_plus_rec', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'thermal', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/powerapparent', 'Q'

--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==
-- New Measurements built from SMS Topic Descriptions - DDI - DD1
--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==
----------------------------------------------------------------------------
-- PM800 Phase I - DDI - DD1
----------------------------------------------------------------------------
SET @measurement = N'Active Evaluation Flicker'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Active Evaluation Frequency'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Active Evaluation Harmonic Voltage'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Active Evaluation Long Interruptions of the Supply Voltage'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Active Evaluation Magnitude of Rapid Voltage Change'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Active Evaluation Short Interruptions of the Supply Voltage'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Active Evaluation Summary'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Active Evaluation Supply Voltage Dips'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Active Evaluation Supply Voltage Unbalance'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Active Evaluation Supply Voltage Variations'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Active Evaluation Temporary Power Frequency Overvoltages'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Active Evaluation THD'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Active Evaluation Transient Overvoltages'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Apparent Energy Total First Shift Last Month'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Apparent Energy Total First Shift Last Week'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Apparent Energy Total First Shift This Month'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Apparent Energy Total First Shift This Week'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Apparent Energy Total First Shift Today'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Apparent Energy Total First Shift Yesterday'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Apparent Energy Total Second Shift Last Month'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Apparent Energy Total Second Shift Last Week'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Apparent Energy Total Second Shift This Month'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Apparent Energy Total Second Shift This Week'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Apparent Energy Total Second Shift Today'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Apparent Energy Total Second Shift Yesterday'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Apparent Energy Total Third Shift Last Month'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Apparent Energy Total Third Shift Last Week'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Apparent Energy Total Third Shift This Month'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Apparent Energy Total Third Shift This Week'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Apparent Energy Total Third Shift Today'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Apparent Energy Total Third Shift Yesterday'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Conditional Apparent Energy'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Conditional Energy Control Status'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Conditional Reactive Energy In'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Conditional Reactive Energy Out'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Conditional Real Energy In'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Conditional Real Energy Out'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Current Angle Negative Sequence'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Current Angle Positive Sequence'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Current Angle Zero Sequence'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Current Harmonic Magnitude Format'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Current K-Factor Demand Interval'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Current Magnitude Negative Sequence'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Current Magnitude Positive Sequence'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Current Magnitude Zero Sequence'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Current Unbalance A'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Current Unbalance B'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Current Unbalance C'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Current Unbalance Worst'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Displacement Power Factor A'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Displacement Power Factor B'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Displacement Power Factor C'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Displacement Power Factor Total'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'EN50160 Enabled'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Energy Accumulation Mode'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Energy Accumulation Mode Code'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Energy Cost First Shift Last Month'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Energy Cost First Shift Last Week'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Energy Cost First Shift This Month'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Energy Cost First Shift This Week'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Energy Cost First Shift Today'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Energy Cost First Shift Yesterday'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Energy Cost Second Shift Last Month'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Energy Cost Second Shift Last Week'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Energy Cost Second Shift This Month'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Energy Cost Second Shift This Week'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Energy Cost Second Shift Today'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Energy Cost Second Shift Yesterday'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Energy Cost Third Shift Last Month'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Energy Cost Third Shift Last Week'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Energy Cost Third Shift This Month'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Energy Cost Third Shift This Week'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Energy Cost Third Shift Today'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Energy Cost Third Shift Yesterday'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Energy Cost Total Last Month'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Energy Cost Total Last Week'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Energy Cost Total This Month'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Energy Cost Total This Week'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Energy Cost Total Today'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Energy Cost Total Yesterday'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Evaluation Status Summary'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Evaluation Status Summary Flicker'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Evaluation Status Summary Frequency'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Evaluation Status Summary Harmonic Voltage'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Evaluation Status Summary Long Interruptions of the Supply Voltage'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Evaluation Status Summary Magnitude of Rapid Voltage Change'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Evaluation Status Summary Short Interruptions of the Supply Voltage'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Evaluation Status Summary Supply Voltage Dips'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Evaluation Status Summary Supply Voltage Unbalance'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Evaluation Status Summary Supply Voltage Variations'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Evaluation Status Summary Temporary Power Frequency Overvoltages'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Evaluation Status Summary THD'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Evaluation Status Summary Transient Overvoltages'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'FFT Enable Status'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'FFT Hold Time'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'FFT Hold Time Remaining'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'FFT Processing Status'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Fundamental Current Angle A'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Fundamental Current Angle B'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Fundamental Current Angle C'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Fundamental Current Angle N'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Fundamental Current Magnitude A'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Fundamental Current Magnitude B'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Fundamental Current Magnitude C'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Fundamental Current Magnitude N'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Fundamental Voltage Angle A-B or A-N'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Fundamental Voltage Angle B-C or B-N'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Fundamental Voltage Angle C-A or C-N'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Fundamental Voltage Magnitude A-B or A-N'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Fundamental Voltage Magnitude B-C or B-N'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Fundamental Voltage Magnitude C-A or C-N'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H1 Current A Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H1 Current A Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H1 Current B Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H1 Current B Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H1 Current C Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H1 Current C Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H1 Current N Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H1 Current N Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H1 Voltage A-B Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H1 Voltage A-B Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H1 Voltage A-N Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H1 Voltage A-N Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H1 Voltage B-C Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H1 Voltage B-C Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H1 Voltage B-N Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H1 Voltage B-N Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H1 Voltage C-A Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H1 Voltage C-A Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H1 Voltage C-N Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H1 Voltage C-N Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H10 Current A Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H10 Current A Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H10 Current B Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H10 Current B Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H10 Current C Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H10 Current C Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H10 Current N Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H10 Current N Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H10 Voltage A-B Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H10 Voltage A-B Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H10 Voltage A-N Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H10 Voltage A-N Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H10 Voltage B-C Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H10 Voltage B-C Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H10 Voltage B-N Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H10 Voltage B-N Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H10 Voltage C-A Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H10 Voltage C-A Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H10 Voltage C-N Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H10 Voltage C-N Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H11 Current A Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H11 Current A Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H11 Current B Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H11 Current B Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H11 Current C Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H11 Current C Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H11 Current N Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H11 Current N Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H11 Voltage A-B Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H11 Voltage A-B Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H11 Voltage A-N Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H11 Voltage A-N Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H11 Voltage B-C Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H11 Voltage B-C Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H11 Voltage B-N Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H11 Voltage B-N Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H11 Voltage C-A Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H11 Voltage C-A Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H11 Voltage C-N Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H11 Voltage C-N Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H12 Current A Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H12 Current A Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H12 Current B Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H12 Current B Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H12 Current C Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H12 Current C Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H12 Current N Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H12 Current N Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H12 Voltage A-B Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H12 Voltage A-B Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H12 Voltage A-N Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H12 Voltage A-N Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H12 Voltage B-C Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H12 Voltage B-C Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H12 Voltage B-N Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H12 Voltage B-N Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H12 Voltage C-A Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H12 Voltage C-A Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H12 Voltage C-N Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H12 Voltage C-N Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H13 Current A Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H13 Current A Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H13 Current B Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H13 Current B Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H13 Current C Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H13 Current C Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H13 Current N Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H13 Current N Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H13 Voltage A-B Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H13 Voltage A-B Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H13 Voltage A-N Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H13 Voltage A-N Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H13 Voltage B-C Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H13 Voltage B-C Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H13 Voltage B-N Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H13 Voltage B-N Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H13 Voltage C-A Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H13 Voltage C-A Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H13 Voltage C-N Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H13 Voltage C-N Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H14 Current A Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H14 Current A Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H14 Current B Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H14 Current B Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H14 Current C Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H14 Current C Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H14 Current N Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H14 Current N Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H14 Voltage A-B Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H14 Voltage A-B Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H14 Voltage A-N Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H14 Voltage A-N Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H14 Voltage B-C Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H14 Voltage B-C Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H14 Voltage B-N Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H14 Voltage B-N Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H14 Voltage C-A Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H14 Voltage C-A Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H14 Voltage C-N Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H14 Voltage C-N Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H15 Current A Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H15 Current A Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H15 Current B Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H15 Current B Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H15 Current C Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H15 Current C Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H15 Current N Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H15 Current N Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H15 Voltage A-B Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H15 Voltage A-B Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H15 Voltage A-N Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H15 Voltage A-N Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H15 Voltage B-C Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H15 Voltage B-C Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H15 Voltage B-N Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H15 Voltage B-N Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H15 Voltage C-A Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H15 Voltage C-A Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H15 Voltage C-N Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H15 Voltage C-N Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H16 Current A Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H16 Current A Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H16 Current B Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H16 Current B Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H16 Current C Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H16 Current C Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H16 Current N Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H16 Current N Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H16 Voltage A-B Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H16 Voltage A-B Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H16 Voltage A-N Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H16 Voltage A-N Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H16 Voltage B-C Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H16 Voltage B-C Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H16 Voltage B-N Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H16 Voltage B-N Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H16 Voltage C-A Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H16 Voltage C-A Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H16 Voltage C-N Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H16 Voltage C-N Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H17 Current A Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H17 Current A Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H17 Current B Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H17 Current B Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H17 Current C Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H17 Current C Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H17 Current N Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H17 Current N Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H17 Voltage A-B Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H17 Voltage A-B Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H17 Voltage A-N Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H17 Voltage A-N Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H17 Voltage B-C Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H17 Voltage B-C Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H17 Voltage B-N Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H17 Voltage B-N Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H17 Voltage C-A Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H17 Voltage C-A Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H17 Voltage C-N Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H17 Voltage C-N Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H18 Current A Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H18 Current A Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H18 Current B Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H18 Current B Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H18 Current C Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H18 Current C Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H18 Current N Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H18 Current N Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H18 Voltage A-B Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H18 Voltage A-B Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H18 Voltage A-N Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H18 Voltage A-N Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H18 Voltage B-C Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H18 Voltage B-C Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H18 Voltage B-N Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H18 Voltage B-N Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H18 Voltage C-A Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H18 Voltage C-A Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H18 Voltage C-N Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H18 Voltage C-N Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H19 Current A Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H19 Current A Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H19 Current B Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H19 Current B Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H19 Current C Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H19 Current C Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H19 Current N Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H19 Current N Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H19 Voltage A-B Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H19 Voltage A-B Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H19 Voltage A-N Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H19 Voltage A-N Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H19 Voltage B-C Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H19 Voltage B-C Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H19 Voltage B-N Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H19 Voltage B-N Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H19 Voltage C-A Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H19 Voltage C-A Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H19 Voltage C-N Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H19 Voltage C-N Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H2 Current A Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H2 Current A Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H2 Current B Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H2 Current B Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H2 Current C Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H2 Current C Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H2 Current N Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H2 Current N Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H2 Voltage A-B Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H2 Voltage A-B Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H2 Voltage A-N Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H2 Voltage A-N Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H2 Voltage B-C Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H2 Voltage B-C Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H2 Voltage B-N Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H2 Voltage B-N Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H2 Voltage C-A Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H2 Voltage C-A Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H2 Voltage C-N Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H2 Voltage C-N Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H20 Current A Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H20 Current A Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H20 Current B Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H20 Current B Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H20 Current C Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H20 Current C Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H20 Current N Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H20 Current N Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H20 Voltage A-B Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H20 Voltage A-B Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H20 Voltage A-N Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H20 Voltage A-N Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H20 Voltage B-C Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H20 Voltage B-C Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H20 Voltage B-N Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H20 Voltage B-N Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H20 Voltage C-A Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H20 Voltage C-A Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H20 Voltage C-N Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H20 Voltage C-N Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H21 Current A Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H21 Current A Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H21 Current B Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H21 Current B Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H21 Current C Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H21 Current C Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H21 Current N Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H21 Current N Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H21 Voltage A-B Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H21 Voltage A-B Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H21 Voltage A-N Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H21 Voltage A-N Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H21 Voltage B-C Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H21 Voltage B-C Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H21 Voltage B-N Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H21 Voltage B-N Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H21 Voltage C-A Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H21 Voltage C-A Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H21 Voltage C-N Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H21 Voltage C-N Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H22 Current A Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H22 Current A Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H22 Current B Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H22 Current B Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H22 Current C Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H22 Current C Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H22 Current N Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H22 Current N Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H22 Voltage A-B Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H22 Voltage A-B Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H22 Voltage A-N Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H22 Voltage A-N Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H22 Voltage B-C Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H22 Voltage B-C Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H22 Voltage B-N Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H22 Voltage B-N Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H22 Voltage C-A Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H22 Voltage C-A Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H22 Voltage C-N Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H22 Voltage C-N Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H23 Current A Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H23 Current A Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H23 Current B Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H23 Current B Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H23 Current C Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H23 Current C Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H23 Current N Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H23 Current N Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H23 Voltage A-B Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H23 Voltage A-B Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H23 Voltage A-N Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H23 Voltage A-N Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H23 Voltage B-C Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H23 Voltage B-C Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H23 Voltage B-N Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H23 Voltage B-N Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H23 Voltage C-A Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H23 Voltage C-A Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H23 Voltage C-N Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H23 Voltage C-N Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H24 Current A Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H24 Current A Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H24 Current B Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H24 Current B Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H24 Current C Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H24 Current C Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H24 Current N Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H24 Current N Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H24 Voltage A-B Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H24 Voltage A-B Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H24 Voltage A-N Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H24 Voltage A-N Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H24 Voltage B-C Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H24 Voltage B-C Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H24 Voltage B-N Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H24 Voltage B-N Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H24 Voltage C-A Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H24 Voltage C-A Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H24 Voltage C-N Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H24 Voltage C-N Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H25 Current A Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H25 Current A Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H25 Current B Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H25 Current B Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H25 Current C Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H25 Current C Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H25 Current N Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H25 Current N Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H25 Voltage A-B Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H25 Voltage A-B Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H25 Voltage A-N Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H25 Voltage A-N Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H25 Voltage B-C Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H25 Voltage B-C Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H25 Voltage B-N Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H25 Voltage B-N Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H25 Voltage C-A Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H25 Voltage C-A Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H25 Voltage C-N Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H25 Voltage C-N Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H26 Current A Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H26 Current A Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H26 Current B Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H26 Current B Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H26 Current C Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H26 Current C Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H26 Current N Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H26 Current N Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H26 Voltage A-B Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H26 Voltage A-B Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H26 Voltage A-N Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H26 Voltage A-N Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H26 Voltage B-C Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H26 Voltage B-C Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H26 Voltage B-N Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H26 Voltage B-N Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H26 Voltage C-A Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H26 Voltage C-A Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H26 Voltage C-N Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H26 Voltage C-N Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H27 Current A Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H27 Current A Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H27 Current B Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H27 Current B Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H27 Current C Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H27 Current C Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H27 Current N Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H27 Current N Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H27 Voltage A-B Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H27 Voltage A-B Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H27 Voltage A-N Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H27 Voltage A-N Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H27 Voltage B-C Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H27 Voltage B-C Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H27 Voltage B-N Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H27 Voltage B-N Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H27 Voltage C-A Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H27 Voltage C-A Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H27 Voltage C-N Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H27 Voltage C-N Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H28 Current A Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H28 Current A Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H28 Current B Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H28 Current B Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H28 Current C Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H28 Current C Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H28 Current N Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H28 Current N Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H28 Voltage A-B Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H28 Voltage A-B Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H28 Voltage A-N Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H28 Voltage A-N Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H28 Voltage B-C Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H28 Voltage B-C Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H28 Voltage B-N Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H28 Voltage B-N Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H28 Voltage C-A Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H28 Voltage C-A Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H28 Voltage C-N Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H28 Voltage C-N Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H29 Current A Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H29 Current A Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H29 Current B Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H29 Current B Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H29 Current C Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H29 Current C Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H29 Current N Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H29 Current N Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H29 Voltage A-B Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H29 Voltage A-B Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H29 Voltage A-N Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H29 Voltage A-N Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H29 Voltage B-C Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H29 Voltage B-C Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H29 Voltage B-N Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H29 Voltage B-N Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H29 Voltage C-A Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H29 Voltage C-A Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H29 Voltage C-N Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H29 Voltage C-N Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H3 Current A Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H3 Current A Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H3 Current B Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H3 Current B Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H3 Current C Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H3 Current C Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H3 Current N Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H3 Current N Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H3 Voltage A-B Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H3 Voltage A-B Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H3 Voltage A-N Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H3 Voltage A-N Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H3 Voltage B-C Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H3 Voltage B-C Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H3 Voltage B-N Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H3 Voltage B-N Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H3 Voltage C-A Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H3 Voltage C-A Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H3 Voltage C-N Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H3 Voltage C-N Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H30 Current A Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H30 Current A Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H30 Current B Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H30 Current B Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H30 Current C Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H30 Current C Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H30 Current N Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H30 Current N Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H30 Voltage A-B Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H30 Voltage A-B Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H30 Voltage A-N Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H30 Voltage A-N Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H30 Voltage B-C Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H30 Voltage B-C Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H30 Voltage B-N Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H30 Voltage B-N Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H30 Voltage C-A Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H30 Voltage C-A Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H30 Voltage C-N Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H30 Voltage C-N Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H31 Current A Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H31 Current A Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H31 Current B Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H31 Current B Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H31 Current C Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H31 Current C Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H31 Current N Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H31 Current N Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H31 Voltage A-B Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H31 Voltage A-B Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H31 Voltage A-N Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H31 Voltage A-N Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H31 Voltage B-C Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H31 Voltage B-C Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H31 Voltage B-N Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H31 Voltage B-N Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H31 Voltage C-A Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H31 Voltage C-A Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H31 Voltage C-N Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H31 Voltage C-N Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H4 Current A Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H4 Current A Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H4 Current B Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H4 Current B Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H4 Current C Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H4 Current C Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H4 Current N Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H4 Current N Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H4 Voltage A-B Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H4 Voltage A-B Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H4 Voltage A-N Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H4 Voltage A-N Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H4 Voltage B-C Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H4 Voltage B-C Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H4 Voltage B-N Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H4 Voltage B-N Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H4 Voltage C-A Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H4 Voltage C-A Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H4 Voltage C-N Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H4 Voltage C-N Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H5 Current A Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H5 Current A Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H5 Current B Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H5 Current B Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H5 Current C Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H5 Current C Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H5 Current N Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H5 Current N Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H5 Voltage A-B Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H5 Voltage A-B Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H5 Voltage A-N Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H5 Voltage A-N Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H5 Voltage B-C Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H5 Voltage B-C Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H5 Voltage B-N Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H5 Voltage B-N Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H5 Voltage C-A Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H5 Voltage C-A Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H5 Voltage C-N Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H5 Voltage C-N Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H6 Current A Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H6 Current A Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H6 Current B Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H6 Current B Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H6 Current C Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H6 Current C Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H6 Current N Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H6 Current N Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H6 Voltage A-B Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H6 Voltage A-B Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H6 Voltage A-N Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H6 Voltage A-N Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H6 Voltage B-C Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H6 Voltage B-C Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H6 Voltage B-N Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H6 Voltage B-N Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H6 Voltage C-A Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H6 Voltage C-A Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H6 Voltage C-N Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H6 Voltage C-N Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H7 Current A Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H7 Current A Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H7 Current B Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H7 Current B Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H7 Current C Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H7 Current C Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H7 Current N Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H7 Current N Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H7 Voltage A-B Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H7 Voltage A-B Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H7 Voltage A-N Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H7 Voltage A-N Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H7 Voltage B-C Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H7 Voltage B-C Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H7 Voltage B-N Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H7 Voltage B-N Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H7 Voltage C-A Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H7 Voltage C-A Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H7 Voltage C-N Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H7 Voltage C-N Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H8 Current A Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H8 Current A Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H8 Current B Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H8 Current B Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H8 Current C Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H8 Current C Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H8 Current N Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H8 Current N Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H8 Voltage A-B Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H8 Voltage A-B Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H8 Voltage A-N Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H8 Voltage A-N Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H8 Voltage B-C Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H8 Voltage B-C Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H8 Voltage B-N Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H8 Voltage B-N Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H8 Voltage C-A Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H8 Voltage C-A Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H8 Voltage C-N Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H8 Voltage C-N Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H9 Current A Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H9 Current A Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H9 Current B Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H9 Current B Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H9 Current C Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H9 Current C Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H9 Current N Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H9 Current N Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H9 Voltage A-B Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H9 Voltage A-B Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H9 Voltage A-N Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H9 Voltage A-N Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H9 Voltage B-C Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H9 Voltage B-C Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H9 Voltage B-N Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H9 Voltage B-N Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H9 Voltage C-A Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H9 Voltage C-A Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H9 Voltage C-N Angle'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'H9 Voltage C-N Magnitude'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Incremental Apparent Energy'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Incremental Energy End Minute'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Incremental Energy Interval'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Incremental Energy Start Minute'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Incremental Reactive Energy In'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Incremental Reactive Energy Out'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Incremental Real Energy In'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Incremental Real Energy Out'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'KVA Dmd Coincident with Peak KVAR Dmd'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'KVA Dmd Coincident with Peak KW Dmd'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'KVAR Dmd Coincident with Peak KVA Dmd'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'KVAR Dmd Coincident with Peak KW Dmd'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'KW Dmd Coincident with Peak KVA Dmd'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'KW Dmd Coincident with Peak KVAR Dmd'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Max Apparent Power Total Prev Month'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Max Current'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Max Current Phase'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Max Current Phase Prev Month'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Max Current Prev Month'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Max Displacement Power Factor'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Max Displacement Power Factor Prev Month'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Max Frequency Prev Month'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Max IO Point 07 Analog Input Value'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Max IO Point 08 Analog Input Value'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Max IO Point 15 Analog Input Value'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Max IO Point 16 Analog Input Value'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Max KVAD Last Incremental Energy Interval'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Max KVARD Last Incremental Energy Interval'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Max KWD Last Incremental Energy Interval'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Max Power Factor'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Max Power Factor Prev Month'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Max Reactive Power Total Prev Month'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Max Real Power Total Prev Month'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Max THD Current'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Max THD Current Phase'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Max THD Current Phase Prev Month'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Max THD Current Prev Month'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Max THD Voltage L-L'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Max THD Voltage L-L Phase'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Max THD Voltage L-L Phase Prev Month'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Max THD Voltage L-L Prev Month'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Max THD Voltage L-N'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Max THD Voltage L-N Phase'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Max THD Voltage L-N Phase Prev Month'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Max THD Voltage L-N Prev Month'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Max Voltage L-L'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Max Voltage L-L Phase'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Max Voltage L-L Phase Prev Month'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Max Voltage L-L Prev Month'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Max Voltage L-N'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Max Voltage L-N Phase'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Max Voltage L-N Phase Prev Month'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Max Voltage L-N Prev Month'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Max Voltage Unbalance L-L'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Max Voltage Unbalance L-L Phase'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Max Voltage Unbalance L-L Phase Prev Month'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Max Voltage Unbalance L-L Prev Month'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Max Voltage Unbalance L-N'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Max Voltage Unbalance L-N Phase'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Max Voltage Unbalance L-N Phase Prev Month'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Max Voltage Unbalance L-N Prev Month'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Min Apparent Power Total Prev Month'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Min Current'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Min Current Phase'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Min Current Phase Prev Month'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Min Current Prev Month'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Min Displacement Power Factor'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Min Displacement Power Factor Prev Month'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Min Frequency Prev Month'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Min IO Point 07 Analog Input Value'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Min IO Point 08 Analog Input Value'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Min IO Point 15 Analog Input Value'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Min IO Point 16 Analog Input Value'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Min Power Factor'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Min Power Factor Prev Month'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Min Reactive Power Total Prev Month'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Min Real Power Total Prev Month'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Min THD Current'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Min THD Current Phase'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Min THD Current Phase Prev Month'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Min THD Current Prev Month'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Min THD Voltage L-L'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Min THD Voltage L-L Phase'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Min THD Voltage L-L Phase Prev Month'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Min THD Voltage L-L Prev Month'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Min THD Voltage L-N'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Min THD Voltage L-N Phase'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Min THD Voltage L-N Phase Prev Month'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Min THD Voltage L-N Prev Month'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Min Voltage L-L'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Min Voltage L-L Phase'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Min Voltage L-L Phase Prev Month'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Min Voltage L-L Prev Month'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Min Voltage L-N'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Min Voltage L-N Phase'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Min Voltage L-N Phase Prev Month'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Min Voltage L-N Prev Month'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Min Voltage Unbalance L-L'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Min Voltage Unbalance L-L Phase'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Min Voltage Unbalance L-L Phase Prev Month'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Min Voltage Unbalance L-L Prev Month'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Min Voltage Unbalance L-N'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Min Voltage Unbalance L-N Phase'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Min Voltage Unbalance L-N Phase Prev Month'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Min Voltage Unbalance L-N Prev Month'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'PF Coincident with Peak KVA Demand'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'PF Coincident with Peak KVAR Demand'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'PF Coincident with Peak KW Demand'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Power Demand Interval'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Power Demand Sub-Interval'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Power Factor Total Last Dmd Interval'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Present Interval Incremental Apparent Energy'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Present Interval Incremental Reactive Energy In'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Present Interval Incremental Reactive Energy Out'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Present Interval Incremental Real Energy In'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Present Interval Incremental Real Energy Out'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Real Energy Total First Shift Last Month'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Real Energy Total First Shift Last Week'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Real Energy Total First Shift This Month'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Real Energy Total First Shift This Week'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Real Energy Total First Shift Today'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Real Energy Total First Shift Yesterday'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Real Energy Total Second Shift Last Month'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Real Energy Total Second Shift Last Week'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Real Energy Total Second Shift This Month'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Real Energy Total Second Shift This Week'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Real Energy Total Second Shift Today'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Real Energy Total Second Shift Yesterday'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Real Energy Total Third Shift Last Month'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Real Energy Total Third Shift Last Week'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Real Energy Total Third Shift This Month'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Real Energy Total Third Shift This Week'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Real Energy Total Third Shift Today'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Real Energy Total Third Shift Yesterday'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Sequence Currents Unbalance'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Sequence Voltages Unbalance'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Shift Active'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Shift Start Time First Shift'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Shift Start Time Second Shift'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Shift Start Time Third Shift'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Standard Digital Input Status'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Standard Input IO Digital Count'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Standard Input IO Label'
 
EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/string', 'Q'
 
----------------------------------------------------------------------------
SET @measurement = N'Standard Input IO Point Type'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Standard KY Digital Output Status'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Standard KY IO Label'
 
EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/string', 'Q'
 
----------------------------------------------------------------------------
SET @measurement = N'Standard KY IO Point Type'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Standard KY Relay Control Source'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Standard KY Relay Digital Count'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'THD Voltage A-B'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'THD Voltage A-N'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'THD Voltage B-C'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'THD Voltage B-N'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'THD Voltage C-A'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'THD Voltage C-N'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Voltage Angle Negative Sequence'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Voltage Angle Positive Sequence'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Voltage Angle Zero Sequence'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Voltage Harmonic Magnitude Format'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Voltage Magnitude Negative Sequence'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Voltage Magnitude Positive Sequence'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Voltage Magnitude Zero Sequence'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Voltage N-G'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Voltage Unbalance A-B'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Voltage Unbalance A-N'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Voltage Unbalance B-C'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Voltage Unbalance B-N'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Voltage Unbalance C-A'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Voltage Unbalance C-N'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Voltage Unbalance L-L Worst'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
 
----------------------------------------------------------------------------
SET @measurement = N'Voltage Unbalance L-N Worst'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Device Label'
 
EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/string', 'Q'
 
----------------------------------------------------------------------------
SET @measurement = N'Device Nameplate'
 
EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/string', 'Q'
 
----------------------------------------------------------------------------
SET @measurement = N'Device Wiring Type'
 
EXEC dbo.spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
-- PM800 Group II - DDI - DD1
-- Generated on 2007-09-21 09:08:14
----------------------------------------------------------------------------
----------------------------------------------------------------------------
SET @measurement = N'A-AI1 Count (PM8M2222)'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'A-AI1 Label (PM8M2222)'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/string', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'A-AI1 Status (PM8M2222)'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'A-AI2 Count (PM8M2222)'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'A-AI2 Label (PM8M2222)'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/string', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'A-AI2 Status (PM8M2222)'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'A-AO1 Count (PM8M2222)'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'A-AO1 Label (PM8M2222)'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/string', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'A-AO1 Status (PM8M2222)'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'A-AO2 Count (PM8M2222)'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'A-AO2 Label (PM8M2222)'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/string', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'A-AO2 Status (PM8M2222)'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'A-R1 Count'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'A-R1 Count'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'A-R1 Count'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'A-R1 Label'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/string', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'A-R1 Label'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/string', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'A-R1 Label'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/string', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'A-R1 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'A-R1 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'A-R1 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'A-R2 Count'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'A-R2 Count'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'A-R2 Count'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'A-R2 Label'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/string', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'A-R2 Label'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/string', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'A-R2 Label'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/string', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'A-R2 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'A-R2 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'A-R2 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'A-S1 Count'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'A-S1 Count'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'A-S1 Count'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'A-S1 Label'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/string', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'A-S1 Label'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/string', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'A-S1 Label'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/string', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'A-S1 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'A-S1 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'A-S1 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'A-S2 Count'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'A-S2 Count'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'A-S2 Count'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'A-S2 Label'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/string', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'A-S2 Label'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/string', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'A-S2 Label'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/string', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'A-S2 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'A-S2 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'A-S2 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'A-S3 Count'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'A-S3 Label'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/string', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'A-S3 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'A-S4 Count'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'A-S4 Label'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/string', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'A-S4 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'A-S5 Count (PM8M26)'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'A-S5 Label (PM8M26)'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/string', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'A-S5 Status (PM8M26)'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'A-S6 Count (PM8M26)'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'A-S6 Label (PM8M26)'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/string', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'A-S6 Status (PM8M26)'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Apparent Energy Total Last Month'

EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/vahour', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/energyapparent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Apparent Energy Total Last Week'

EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/vahour', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/energyapparent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Apparent Energy Total This Month'

EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/vahour', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/energyapparent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Apparent Energy Total This Week'

EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/vahour', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/energyapparent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Apparent Energy Total Today'

EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/vahour', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/energyapparent', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Apparent Energy Total Today','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Ws today total','L' 

----------------------------------------------------------------------------
SET @measurement = N'Apparent Energy Total Yesterday'

EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/vahour', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/energyapparent', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Apparent Energy Total Yesterday','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Ws yesterday total','L'

----------------------------------------------------------------------------
SET @measurement = N'B-AI1 Label (PM8M2222)'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/string', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'B-AI1 Status (PM8M2222)'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'B-AI2 Label (PM8M2222)'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/string', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'B-AI2 Status (PM8M2222)'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'B-AO1 Label (PM8M2222)'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/string', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'B-AO1 Status (PM8M2222)'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'B-AO2 Label (PM8M2222)'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/string', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'B-AO2 Status (PM8M2222)'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'B-R1 Count'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'B-R1 Count'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'B-R1 Count'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'B-R1 Label'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/string', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'B-R1 Label'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/string', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'B-R1 Label'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/string', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'B-R1 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'B-R1 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'B-R1 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'B-R2 Count'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'B-R2 Count'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'B-R2 Count'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'B-R2 Label'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/string', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'B-R2 Label'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/string', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'B-R2 Label'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/string', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'B-R2 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'B-R2 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'B-R2 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'B-S1 Count'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'B-S1 Count'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'B-S1 Count'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'B-S1 Label'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/string', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'B-S1 Label'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/string', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'B-S1 Label'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/string', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'B-S1 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'B-S1 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'B-S1 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'B-S2 Count'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'B-S2 Count'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'B-S2 Count'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'B-S2 Label'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/string', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'B-S2 Label'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/string', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'B-S2 Label'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/string', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'B-S2 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'B-S2 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'B-S2 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'B-S3 Count'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'B-S3 Label'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/string', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'B-S3 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'B-S4 Count'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'B-S4 Label'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/string', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'B-S4 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'B-S5 Count (PM8M26)'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'B-S5 Label (PM8M26)'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/string', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'B-S5 Status (PM8M26)'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'B-S6 Count (PM8M26)'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'B-S6 Label (PM8M26)'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/string', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'B-S6 Status (PM8M26)'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Count of Voltage Events'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Current Harmonic Magnitude Format Code'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'DT Conditional Energy Reset'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'DT Last Control Power Failure'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'DT Last Increment Energy Update'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'DT Last Incremental Energy Reset'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'DT Last Reset Accum Energies'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'DT Reset Present Month MinMax'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'DT Last Reset Peak Dmd Currents'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'DT Last Reset Peak Dmd Power'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'DT Last Restart'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'DT Last Update MinMax'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'DT MinMax Prev Month From'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'DT MinMax Prev Month To'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Device Clock Date Time'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Max Apparent Power Total Date Time'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Max Apparent Power Total Prev Month Date Time'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Max Current Date Time'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Max Current N'

EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/ampere', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Max Current N Date Time'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Max Current N Prev Month'

EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/ampere', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Max Current N Prev Month Date Time'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Max Current Prev Month Date Time'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Max Displacement Power Factor Date Time'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Max Displacement Power Factor Prev Month Date Time'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Max Frequency Date Time'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Max Frequency Prev Month Date Time'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Max Power Factor Date Time'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Max Power Factor Prev Month Date Time'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Max Reactive Power Total Date Time'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Max Reactive Power Total Prev Month Date Time'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Max Real Power Total Date Time'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Max Real Power Total Prev Month Date Time'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Max THD Current Date Time'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Max THD Current Prev Month Date Time'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Max THD Voltage L-L Date Time'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Max THD Voltage L-L Prev Month Date Time'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Max THD Voltage L-N Date Time'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Max THD Voltage L-N Prev Month Date Time'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Max Voltage L-L Date Time'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Max Voltage L-L Prev Month Date Time'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Max Voltage L-N Date Time'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Max Voltage L-N Prev Month Date Time'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Max Voltage N-G'

EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/volt', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Max Voltage N-G Date Time'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Max Voltage N-G Prev Month'

EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/volt', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Max Voltage N-G Prev Month Date Time'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Max Voltage Unbalance L-L Date Time'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Max Voltage Unbalance L-L Prev Month Date Time'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Max Voltage Unbalance L-N Date Time'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Max Voltage Unbalance L-N Prev Month Date Time'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Min Apparent Power Total Date Time'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Min Apparent Power Total Prev Month Date Time'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Min Current Date Time'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Min Current N'

EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/ampere', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Min Current N Date Time'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Min Current N Prev Month'

EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/ampere', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Min Current N Prev Month Date Time'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Min Current Prev Month Date Time'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Min Displacement Power Factor Date Time'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Min Displacement Power Factor Prev Month Date Time'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Min Frequency Date Time'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Min Frequency Prev Month Date Time'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Min Power Factor Date Time'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Min Power Factor Prev Month Date Time'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Min Reactive Power Total Date Time'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Min Reactive Power Total Prev Month Date Time'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Min Real Power Total Date Time'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Min Real Power Total Prev Month Date Time'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Min THD Current Date Time'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Min THD Current Prev Month Date Time'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Min THD Voltage L-L Date Time'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Min THD Voltage L-L Prev Month Date Time'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Min THD Voltage L-N Date Time'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Min THD Voltage L-N Prev Month Date Time'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Min Voltage L-L Date Time'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Min Voltage L-L Prev Month Date Time'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Min Voltage L-N Date Time'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Min Voltage L-N Prev Month Date Time'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Min Voltage N-G'

EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/volt', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Min Voltage N-G Date Time'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Min Voltage N-G Prev Month'

EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/volt', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Min Voltage N-G Prev Month Date Time'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Min Voltage Unbalance L-L Date Time'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Min Voltage Unbalance L-L Prev Month Date Time'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Min Voltage Unbalance L-N Date Time'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Min Voltage Unbalance L-N Prev Month Date Time'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Power Demand Calculation Mode'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Real Energy Total Last Month'

EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/watthour', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/energy', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Real Energy Total Last Week'

EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/watthour', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/energy', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Real Energy Total This Month'

EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/watthour', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/energy', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Real Energy Total This Week'

EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/watthour', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/energy', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Real Energy Total Today'

EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/watthour', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/energy', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Active Energy Total Today','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Wp today total','L' 

----------------------------------------------------------------------------
SET @measurement = N'Real Energy Total Yesterday'

EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/watthour', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/energy', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Active Energy Total Yesterday','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Wp yesterday total','L'

----------------------------------------------------------------------------
SET @measurement = N'Standard KY Relay Override Status'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'THD Calculation Method'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Harmonic Magnitude Format Code'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
-- PM800 Group 3 - DDI - DD1
-- Generated on 2007-09-21 14:09:40
----------------------------------------------------------------------------

----------------------------------------------------------------------------
SET @measurement = N'A-AI1 Value (PM8M2222)'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'A-AI2 Value (PM8M2222)'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'A-AO1 Value (PM8M2222)'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'A-AO2 Value (PM8M2222)'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Active Evaluation Voltage Dips'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'B-AI1 Value (PM8M2222)'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'B-AI2 Value (PM8M2222)'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'B-AO1 Value (PM8M2222)'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'B-AO2 Value (PM8M2222)'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Device Local Time'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Device Universal Time'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Current Demand Calculation Method'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Evaluation Status Flicker'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Evaluation Status Frequency'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Evaluation Status Harmonic Voltage'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Evaluation Status Long Interruptions of the Supply Voltage'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Evaluation Status Magnitude of Rapid Voltage Change'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Evaluation Status Short Interruptions of the Supply Voltage'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Evaluation Status Supply Voltage Unbalance'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Evaluation Status Supply Voltage Variations'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Evaluation Status Temporary Power Frequency Overvoltages'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Evaluation Status THD'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Evaluation Status Transient Overvoltages'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Evaluation Status Voltage Dips'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Power Demand Calculation Method'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Power Factor Sign Convention'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
-- Waveforms - DDI - DD1
-- Generated on 2007-10-15 10:58:10
----------------------------------------------------------------------------
SET @measurement = N'I a Waveform'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/waveform', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/ampere', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'I b Waveform'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/waveform', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/ampere', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'I c Waveform'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/waveform', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/ampere', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'I g Waveform'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/waveform', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/ampere', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'I n Waveform'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/waveform', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/ampere', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'V ab Waveform'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/waveform', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/volt', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'V an Waveform'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/waveform', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/volt', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'V bc Waveform'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/waveform', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/volt', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'V bn Waveform'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/waveform', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/volt', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'V ca Waveform'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/waveform', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/volt', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'V cn Waveform'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/waveform', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/volt', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'V ng Waveform'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/waveform', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/volt', 'Q'

----------------------------------------------------------------------------
-- Input Metering - DDI - DD1
----------------------------------------------------------------------------
SET @measurement = N'WAGES External Input 1 Average Demand'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'WAGES External Input 1 Consumption Units'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'WAGES External Input 1 Cumulative Usage'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'WAGES External Input 1 Demand Last'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'WAGES External Input 1 Label'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/string', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'WAGES External Input 1 Minimum Demand'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'WAGES External Input 1 Minimum Demand Date Time'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'WAGES External Input 1 Peak Demand'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'WAGES External Input 1 Peak Demand Date Time'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'WAGES External Input 1 Present Demand'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'WAGES External Input 1 Rate Units'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
----------------------------------------------------------------------------
SET @measurement = N'WAGES External Input 2 Average Demand'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'WAGES External Input 2 Consumption Units'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'WAGES External Input 2 Cumulative Usage'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'WAGES External Input 2 Demand Last'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'WAGES External Input 2 Label'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/string', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'WAGES External Input 2 Minimum Demand'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'WAGES External Input 2 Minimum Demand Date Time'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'WAGES External Input 2 Peak Demand'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'WAGES External Input 2 Peak Demand Date Time'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'WAGES External Input 2 Present Demand'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'WAGES External Input 2 Rate Units'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
----------------------------------------------------------------------------
SET @measurement = N'WAGES External Input 3 Average Demand'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'WAGES External Input 3 Consumption Units'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'WAGES External Input 3 Cumulative Usage'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'WAGES External Input 3 Demand Last'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'WAGES External Input 3 Label'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/string', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'WAGES External Input 3 Minimum Demand'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'WAGES External Input 3 Minimum Demand Date Time'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'WAGES External Input 3 Peak Demand'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'WAGES External Input 3 Peak Demand Date Time'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'WAGES External Input 3 Present Demand'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'WAGES External Input 3 Rate Units'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
----------------------------------------------------------------------------
SET @measurement = N'WAGES External Input 4 Average Demand'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'WAGES External Input 4 Consumption Units'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'WAGES External Input 4 Cumulative Usage'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'WAGES External Input 4 Demand Last'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'WAGES External Input 4 Label'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/string', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'WAGES External Input 4 Minimum Demand'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'WAGES External Input 4 Minimum Demand Date Time'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'WAGES External Input 4 Peak Demand'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'WAGES External Input 4 Peak Demand Date Time'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'WAGES External Input 4 Present Demand'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'WAGES External Input 4 Rate Units'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'WAGES External Input 5 Average Demand'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'WAGES External Input 5 Consumption Units'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'WAGES External Input 5 Cumulative Usage'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'WAGES External Input 5 Demand Last'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'WAGES External Input 5 Label'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/string', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'WAGES External Input 5 Minimum Demand'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'WAGES External Input 5 Minimum Demand Date Time'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'WAGES External Input 5 Peak Demand'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'WAGES External Input 5 Peak Demand Date Time'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'WAGES External Input 5 Present Demand'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'WAGES External Input 5 Rate Units'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------

----------------------------------------------------------------------------
-- Label Consistency - DDI - DD1
-- Generated on 2007-10-25 11:31:32
----------------------------------------------------------------------------
SET @measurement = N'Current Demand Calculation Method Code'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'DT Last Reset Input Metering'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'DT Last Voltage Disurbance Event Log Reset'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'DT Max KVAD in Last Incremental Energy Interval'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'DT Max KVARD in Last Incremental Energy Interval'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'DT Max KWD in Last Incremental Energy Interval'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'DT Peak Demand Apparent Power'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'DT Peak Demand Current A'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'DT Peak Demand Current Avg'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'DT Peak Demand Current B'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'DT Peak Demand Current C'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'DT Peak Demand Current N'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'DT Peak Demand Reactive Power'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'DT Peak Demand Real Power'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Input Metering Demand Calculation Method'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'KVAR Dmd Coincident with Peak KVA Dmd'

EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/var', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/powerreactive', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Power Demand Calculation Method Code'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Standard Input IO Count'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Standard KY IO Count'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
-- Micrologic - DDI - DD1
-- Generated on 2007-11-09 14:35:20
----------------------------------------------------------------------------

----------------------------------------------------------------------------
SET @measurement = N'Alarm 01 Cause'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Alarm 01 Date Time'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Alarm 02 Cause'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Alarm 02 Date Time'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Alarm 03 Cause'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Alarm 03 Date Time'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Alarm 04 Cause'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Alarm 04 Date Time'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Alarm 05 Cause'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Alarm 05 Date Time'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Alarm 06 Cause'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Alarm 06 Date Time'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Alarm 07 Cause'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Alarm 07 Date Time'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Alarm 08 Cause'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Alarm 08 Date Time'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Alarm 09 Cause'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Alarm 09 Date Time'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Alarm 10 Cause'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Alarm 10 Date Time'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Breaker Energized Count'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Breaker Reset Count'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Breaker Between Positions'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Breaker Connected'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Breaker Disconnected'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Breaker in Test'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Breaker LDPU in Progress'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Breaker Nominal Current'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Cause of Last Trip'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Circuit Breaker Characteristic 0'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Circuit Breaker Characteristic 1'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Circuit Breaker Characteristic 2'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/string', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Chassis Module Energized Count'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Chassis Module Present'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Chassis Module Reset Count'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Contact Wear Phase A'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Contact Wear Phase B'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Contact Wear Phase C'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Contact Wear Phase N'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Crest Factor Voltage A-B'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Crest Factor Voltage A-N'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Crest Factor Voltage B-C'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Crest Factor Voltage B-N'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Crest Factor Voltage C-A'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Crest Factor Voltage C-N'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Current A Percent Load'

EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Current and K-Factor Demand Interval'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Current Apparent A'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Current Apparent B'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Current Apparent C'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Current Apparent N'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Current B Percent Load'

EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Current C Percent Load'

EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Current Demand at Peak K-Factor Demand A'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Current Demand at Peak K-Factor Demand B'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Current Demand at Peak K-Factor Demand C'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Current Demand at Peak K-Factor Demand N'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Current G Percent Load'

EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Current G (VIGI)'

EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/ampere', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Current G (VIGI) Percent Load'

EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Current Max Present'

EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/ampere', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Current N Percent Load'

EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Device Type ID'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Distortion Power Phase A'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Distortion Power Phase B'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Distortion Power Phase C'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Distortion Power Total'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'DT K-Factor Dmd Peak A'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'DT K-Factor Dmd Peak B'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'DT K-Factor Dmd Peak C'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'DT K-Factor Dmd Peak N'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'DT Last Close'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'DT Last Open'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'DT Last Reset MinMax'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'DT Last Reset Operations Counter'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'DT Last Trip'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Fundamental Apparent Power A'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Fundamental Apparent Power B'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Fundamental Apparent Power C'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Fundamental Apparent Power Total'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Fundamental Reactive Power A'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Fundamental Reactive Power B'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Fundamental Reactive Power C'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Fundamental Reactive Power Total'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Fundamental Real Power A'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Fundamental Real Power B'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Fundamental Real Power C'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Fundamental Real Power Total'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Fundamental Voltage Current Angle A'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Fundamental Voltage Current Angle B'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Fundamental Voltage Current Angle C'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Fundamental Voltage Magnitude A-B'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Fundamental Voltage Magnitude A-N'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Fundamental Voltage Magnitude B-C'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Fundamental Voltage Magnitude B-N'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Fundamental Voltage Magnitude C-A'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Fundamental Voltage Magnitude C-N'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'IDMTL Enabled'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'K-Factor A'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'K-Factor B'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'K-Factor C'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'K-Factor Demand A'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'K-Factor Demand at Peak Demand Current A'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'K-Factor Demand at Peak Demand Current B'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'K-Factor Demand at Peak Demand Current C'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'K-Factor Demand at Peak Demand Current N'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'K-Factor Demand B'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'K-Factor Demand C'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'K-Factor Demand N'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'K-Factor N'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Last Alarm Sequence Number'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Last Contact Wear Update'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Last Test Kit Session'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Last Trip Sequence Number'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Loading Capacity Reference'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Max Crest Factor A'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Max Crest Factor B'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Max Crest Factor C'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Max Crest Factor N'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Max Crest Factor Voltage A-B'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Max Crest Factor Voltage A-N'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Max Crest Factor Voltage B-C'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Max Crest Factor Voltage B-N'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Max Crest Factor Voltage C-A'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Max Crest Factor Voltage C-N'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Max Current Apparent A'

EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/ampere', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Max Current Apparent B'

EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/ampere', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Max Current Apparent C'

EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/ampere', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Max Current Apparent N'

EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/ampere', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Max Current G (VIGI)'

EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/ampere', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Max Current Max Present'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Max Current Unbalance A'

EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Max Current Unbalance B'

EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Max Current Unbalance C'

EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Max Current Unbalance Worst'

EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Max Displacement PF Total'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Max Displacement Power Factor A'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Max Displacement Power Factor B'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Max Displacement Power Factor C'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Max Distortion Power Phase A'

EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/var', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/powerreactive', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Max Distortion Power Phase B'

EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/var', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/powerreactive', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Max Distortion Power Phase C'

EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/var', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/powerreactive', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Max Distortion Power Total'

EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/var', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/powerreactive', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Max Fundamental Apparent Power A'

EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/va', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/powerapparent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Max Fundamental Apparent Power B'

EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/va', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/powerapparent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Max Fundamental Apparent Power C'

EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/va', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/powerapparent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Max Fundamental Apparent Power Total'

EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/va', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/powerapparent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Max Fundamental Current Magnitude A'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Max Fundamental Current Magnitude B'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Max Fundamental Current Magnitude C'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Max Fundamental Current Magnitude N'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Max Fundamental Reactive Power A'

EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/var', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/powerreactive', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Max Fundamental Reactive Power B'

EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/var', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/powerreactive', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Max Fundamental Reactive Power C'

EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/var', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/powerreactive', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Max Fundamental Reactive Power Total'

EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/var', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/powerreactive', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Max Fundamental Real Power A'

EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/watt', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/power', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Max Fundamental Real Power B'

EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/watt', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/power', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Max Fundamental Real Power C'

EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/watt', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/power', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Max Fundamental Real Power Total'

EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/watt', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/power', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Max Fundamental Voltage Angle A-B or A-N'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Max Fundamental Voltage Angle B-C or B-N'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Max Fundamental Voltage Angle C-A or C-N'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Max Fundamental Voltage Current Angle A'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Max Fundamental Voltage Current Angle B'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Max Fundamental Voltage Current Angle C'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Max Fundamental Voltage Magnitude A-B'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Max Fundamental Voltage Magnitude A-N'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Max Fundamental Voltage Magnitude B-C'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Max Fundamental Voltage Magnitude B-N'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Max Fundamental Voltage Magnitude C-A'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Max Fundamental Voltage Magnitude C-N'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Max K-Factor A'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Max K-Factor B'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Max K-Factor C'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Max K-Factor N'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Max Power Factor A'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Max Power Factor B'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Max Power Factor C'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Max THD Current N'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Max Update Interval'

EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/second', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/time', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Max Voltage Unbalance A-B'

EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Max Voltage Unbalance A-N'

EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Max Voltage Unbalance B-C'

EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Max Voltage Unbalance B-N'

EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Max Voltage Unbalance C-A'

EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Max Voltage Unbalance C-N'

EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Max Voltage Unbalance L-L Worst'

EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Max Voltage Unbalance L-N Worst'

EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Min Crest Factor A'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Min Crest Factor B'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Min Crest Factor C'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Min Crest Factor N'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Min Crest Factor Voltage A-B'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Min Crest Factor Voltage A-N'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Min Crest Factor Voltage B-C'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Min Crest Factor Voltage B-N'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Min Crest Factor Voltage C-A'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Min Crest Factor Voltage C-N'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Min Current Apparent A'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Min Current Apparent B'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Min Current Apparent C'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Min Current Apparent N'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Min Current Max Present'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Min Current Unbalance A'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Min Current Unbalance B'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Min Current Unbalance C'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Min Current Unbalance Worst'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Min Displacement PF Total'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Min Displacement Power Factor A'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Min Displacement Power Factor B'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Min Displacement Power Factor C'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Min Distortion Power Phase A'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Min Distortion Power Phase B'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Min Distortion Power Phase C'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Min Distortion Power Total'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Min Fundamental Apparent Power A'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Min Fundamental Apparent Power B'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Min Fundamental Apparent Power C'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Min Fundamental Apparent Power Total'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Min Fundamental Current Magnitude A'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Min Fundamental Current Magnitude B'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Min Fundamental Current Magnitude C'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Min Fundamental Current Magnitude N'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Min Fundamental Reactive Power A'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Min Fundamental Reactive Power B'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Min Fundamental Reactive Power C'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Min Fundamental Reactive Power Total'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Min Fundamental Real Power A'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Min Fundamental Real Power B'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Min Fundamental Real Power C'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Min Fundamental Real Power Total'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Min Fundamental Voltage Angle A-B or A-N'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Min Fundamental Voltage Angle B-C or B-N'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Min Fundamental Voltage Angle C-A or C-N'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Min Fundamental Voltage Current Angle A'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Min Fundamental Voltage Current Angle B'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Min Fundamental Voltage Current Angle C'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Min Fundamental Voltage Magnitude A-B'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Min Fundamental Voltage Magnitude A-N'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Min Fundamental Voltage Magnitude B-C'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Min Fundamental Voltage Magnitude B-N'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Min Fundamental Voltage Magnitude C-A'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Min Fundamental Voltage Magnitude C-N'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Min K-Factor A'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Min K-Factor B'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Min K-Factor C'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Min K-Factor N'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Min Power Factor A'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Min Power Factor B'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Min Power Factor C'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Min THD Current N'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Min Update Interval'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Min Voltage Unbalance A-B'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Min Voltage Unbalance A-N'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Min Voltage Unbalance B-C'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Min Voltage Unbalance B-N'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Min Voltage Unbalance C-A'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Min Voltage Unbalance C-N'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Min Voltage Unbalance L-L Worst'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Min Voltage Unbalance L-N Worst'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Energy Reset Count'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Max Reset Count'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Min Reset Count'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Peak Demand Current Reset Count'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Peak Demand Power Reset Count'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Neutral CT Type'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Neutral Protection Type'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Nominal Frequency'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Operations Counter - Lifetime'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Operations Counter - Since Reset'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Peak K-Factor Demand A'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Peak K-Factor Demand B'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Peak K-Factor Demand C'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Peak K-Factor Demand N'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Protection Battery Indicator'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Protection Last Power Loss Date Time'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Maximum Interrupted Fault Current'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Protection Max Reset Count'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Protection Max Reverse Power'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Protection Power Loss Count'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Protection Relay 1 Output Operation Count'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Protection Relay 2 Output Operation Count'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Protection Relay 3 Output Operation Count'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Protection Relay 4 Output Operation Count'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Protection Relay 5 Output Operation Count'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Protection Relay 6 Output Operation Count'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Protection Worst Contact Wear'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Power Flow Direction - Metering'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Power Flow Direction - Protection'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Predicted Demand Current A - Sliding'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Predicted Demand Current A - Thermal'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Predicted Demand Current B - Sliding'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Predicted Demand Current B - Thermal'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Predicted Demand Current C - Sliding'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Predicted Demand Current C - Thermal'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Predicted Demand Current N - Sliding'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Predicted Demand Current N - Thermal'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Predicted K-Factor Demand A'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Predicted K-Factor Demand B'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Predicted K-Factor Demand C'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Predicted K-Factor Demand N'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Protective Features'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Circuit Breaker Rated Current'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Rating Plug Type'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Relay 1 Operations Counter'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Relay 2 Operations Counter'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Relay 3 Operations Counter'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Relay 4 Operations Counter'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Relay 5 Operations Counter'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Relay 6 Operations Counter'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Relay Module R1 Label'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/string', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Relay Module R1 Mode'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Relay Module R1 Timed Mode Duration'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Relay Module R2 Label'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/string', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Relay Module R2 Mode'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Relay Module R2 Timed Mode Duration'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Relay Module R3 Label'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/string', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Relay Module R3 Mode'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Relay Module R3 Timed Mode Duration'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Relay Module R4 Label'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/string', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Relay Module R4 Mode'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Relay Module R4 Timed Mode Duration'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Relay Module R5 Label'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/string', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Relay Module R5 Mode'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Relay Module R5 Timed Mode Duration'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Relay Module R6 Label'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/string', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Relay Module R6 Mode'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Relay Module R6 Timed Mode Duration'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Relay Module Type'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Remote Close Operations Counter'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Remote Closing Enabled'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Remote Control Enabled'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Remote Open Operations Counter'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Remote Opening Enabled'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Remote Protective Settings Enabled'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Spring Charged'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Test Kit Session Counter'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Time Loss - Breaker Comms Module'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Time Loss - Cradle Comms Module'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Time Remaining to LT Trip'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Trip 01 Cause'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Trip 01 Current A'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Trip 01 Current B'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Trip 01 Current C'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Trip 01 Current N'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Trip 01 Date Time'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Trip 01 Worst Contact Wear'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Trip 02 Cause'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Trip 02 Current A'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Trip 02 Current B'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Trip 02 Current C'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Trip 02 Current N'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Trip 02 Date Time'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Trip 02 Worst Contact Wear'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Trip 03 Cause'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Trip 03 Current A'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Trip 03 Current B'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Trip 03 Current C'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Trip 03 Current N'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Trip 03 Date Time'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Trip 03 Worst Contact Wear'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Trip 04 Cause'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Trip 04 Current A'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Trip 04 Current B'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Trip 04 Current C'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Trip 04 Current N'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Trip 04 Date Time'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Trip 04 Worst Contact Wear'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Trip 05 Cause'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Trip 05 Current A'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Trip 05 Current B'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Trip 05 Current C'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Trip 05 Current N'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Trip 05 Date Time'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Trip 05 Worst Contact Wear'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Trip 06 Cause'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Trip 06 Current A'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Trip 06 Current B'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Trip 06 Current C'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Trip 06 Current N'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Trip 06 Date Time'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Trip 06 Worst Contact Wear'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Trip 07 Cause'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Trip 07 Current A'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Trip 07 Current B'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Trip 07 Current C'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Trip 07 Current N'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Trip 07 Date Time'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Trip 07 Worst Contact Wear'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Trip 08 Cause'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Trip 08 Current A'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Trip 08 Current B'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Trip 08 Current C'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Trip 08 Current N'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Trip 08 Date Time'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Trip 08 Worst Contact Wear'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Trip 09 Cause'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Trip 09 Current A'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Trip 09 Current B'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Trip 09 Current C'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Trip 09 Current N'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Trip 09 Date Time'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Trip 09 Worst Contact Wear'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Trip 10 Cause'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Trip 10 Current A'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Trip 10 Current B'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Trip 10 Current C'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Trip 10 Current N'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Trip 10 Date Time'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Trip 10 Worst Contact Wear'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Trip Counter'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Trip Unit Percent Battery'

EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Trip Unit Serial Number'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/string', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Trip Unit Type'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/string', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Type of Measurement'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/string', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Type of Protection'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/string', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Update Interval'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'VAR (Reactive Power) Sign Convention'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
-- Micrologic - Status - DDI - DD1
-- Generated on 2007-11-09 14:39:58
----------------------------------------------------------------------------
SET @measurement = N'Breaker Trip Unit Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Current Unbalance Alarm Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Current Unbalance Pre-Alarm Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Earth-Leakage Alarm Pre-Alarm Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Earth-Leakage Alarm Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Ground Fault Alarm Pre-Alarm Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Ground Fault Alarm Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Lagging Displacement Power Factor Alarm'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Lagging Power Factor Alarm'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Leading Displacement Power Factor Alarm'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Leading Power Factor Alarm'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Load Shed Current Alarm'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Load Shed Current Pre-Alarm'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Load Shed Power Alarm'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Load Shed Power Pre-Alarm'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Over Demand Current A Alarm'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Over Demand Current A Pre-Alarm'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Over Voltage A-B Alarm'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Over Demand Current B Alarm'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Over Demand Current B Pre-Alarm'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Over Voltage B-C Alarm'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Over Demand Current C Alarm'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Over Demand Current C Pre-Alarm'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Over Voltage C-A Alarm'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Over Current E Alarm'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Over Demand Current N Alarm'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Over Demand Current N Pre-Alarm'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Over Current N Alarm'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Current Unbalance A Alarm'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Current Unbalance B Alarm'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Current Unbalance C Alarm'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Over Frequency Alarm'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Over Frequency Pre-Alarm'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Over Apparent Power Alarm'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Over Reactive Power Into the Load Alarm'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Over Reactive Power Out of the Load Alarm'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Over Active Power Into the Load Alarm'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Over Active Power Out of the Load Alarm'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Over Demand Apparent Power Predicted Alarm'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Over Demand Reactive Power Into the Load Predicted Alarm'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Over Demand Reactive Power Out of the Load Predicted Alarm'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Over Demand Active Power Into the Load Predicted Alarm'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Over Demand Active Power Out of the Load Predicted Alarm'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Over THD Current A Alarm'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Over THD Current B Alarm'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Over THD Current C Alarm'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Over THD Voltage A-B Alarm'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Over THD Voltage B-C Alarm'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Over THD Voltage C-A Alarm'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Over THD Voltage A-N Alarm'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Over THD Voltage B-N Alarm'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Over THD Voltage C-N Alarm'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Over Voltage Alarm'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Over Voltage A-N Alarm'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Over Voltage B-N Alarm'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Over Voltage C-N Alarm'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Over Voltage Pre-Alarm'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Unbalance A-N Alarm'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Unbalance B-N Alarm'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Unbalance C-N Alarm'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Phase Rotation Alarm'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Relay Module R1 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Relay Module R2 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Relay Module R3 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Relay Module R4 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Relay Module R5 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Relay Module R6 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Reverse Power Alarm'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Reverse Power Pre-Alarm'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Trip Unit Door Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Trip Unit Internal Comms Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Trip Unit LED Battery Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Under Current A Alarm'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Under Current B Alarm'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Under Current C Alarm'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Under Frequency Alarm'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Under Frequency Pre-Alarm'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Under Apparent Power Alarm'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Under Reactive Power Into the Load Alarm'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Under Reactive Power Out of the Load Alarm'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Under Active Power Into the Load Alarm'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Under Active Power Out of the Load Alarm'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Under Demand Apparent Power Predicted Alarm'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Under Demand Reactive Power Into the Load Predicted Alarm'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Under Demand Reactive Power Out of the Load Predicted Alarm'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Under Demand Active Power Into the Load Predicted'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Under Demand Active Power Out of the Load Predicted Alarm'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Under Voltage Alarm'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Under Voltage A-N Alarm'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Under Voltage B-N Alarm'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Under Voltage C-N Alarm'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Under Voltage Pre-Alarm'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Voltage Unbalance Pre-Alarm'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'
----------------------------------------------------------------------------
-- Micrologic RMS THD - DDI - DD1
-- Generated on 2007-11-17 16:12:03
----------------------------------------------------------------------------
SET @measurement = N'Max THD RMS Voltage A-B'

EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Max THD RMS Voltage B-C'

EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Max THD RMS Voltage C-A'

EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Max THD RMS Voltage A-N'

EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Max THD RMS Voltage B-N'

EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Max THD RMS Voltage C-N'

EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Max THD RMS Current A'

EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Max THD RMS Current B'

EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Max THD RMS Current C'

EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Max THD RMS Current N'

EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Min THD RMS Voltage A-B'

EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Min THD RMS Voltage B-C'

EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Min THD RMS Voltage C-A'

EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Min THD RMS Voltage A-N'

EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Min THD RMS Voltage B-N'

EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Min THD RMS Voltage C-N'

EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Min THD RMS Current A'

EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Min THD RMS Current B'

EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Min THD RMS Current C'

EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Min THD RMS Current N'

EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'THD RMS Current A'

EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'THD RMS Current B'

EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'THD RMS Current C'

EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'THD RMS Current N'

EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'THD RMS Voltage A-B'

EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'THD RMS Voltage A-N'

EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'THD RMS Voltage B-C'

EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'THD RMS Voltage B-N'

EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'THD RMS Voltage C-A'

EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'THD RMS Voltage C-N'

EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
----------------------------------------------------------------------------
-- CM4000 - DDI - DD1
-- Generated on 2007-11-21 16:04:18
----------------------------------------------------------------------------

----------------------------------------------------------------------------
SET @measurement = N'Harmonic Current A'

EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/ampere', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Harmonic Current B'

EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/ampere', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Harmonic Current C'

EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/ampere', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Harmonic Current N'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Harmonic Voltage A-N or A-B'

EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/volt', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Harmonic Voltage B-N or B-C'

EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/volt', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Harmonic Voltage C-N or C-A'

EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/volt', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
----------------------------------------------------------------------------
-- CM4000 - DDI - DD1
-- Generated on 2007-11-21 16:10:44
----------------------------------------------------------------------------
SET @measurement = N'A-S1 Count'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'A-S1 Label'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/string', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'A-S2 Count'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'A-S2 Label'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/string', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'A-S3 Count'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'A-S3 Label'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/string', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'A-S4 Count'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'A-S4 Label'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/string', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'A-R0 Count'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'A-R0 Label'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/string', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'A-R1 Count'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'A-R1 Label'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/string', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'A-R2 Count'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'A-R2 Label'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/string', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'A-R3 Count'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'A-R3 Label'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/string', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'B-S1 Count'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'B-S1 Label'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/string', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'B-S2 Count'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'B-S2 Label'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/string', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'B-S3 Count'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'B-S3 Label'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/string', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'B-S4 Count'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'B-S4 Label'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/string', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'B-R0 Count'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'B-R0 Label'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/string', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'B-R1 Count'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'B-R1 Label'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/string', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'B-R2 Count'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'B-R2 Label'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/string', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'B-R3 Count'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'B-R3 Label'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/string', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'C-AI1 Label'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/string', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'C-AI1 Value'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'C-AI2 Label'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/string', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'C-AI2 Value'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'C-AI3 Label'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/string', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'C-AI3 Value'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'C-AI4 Label'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/string', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'C-AI4 Value'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'C-AI5 Label'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/string', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'C-AI5 Value'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'C-AI6 Label'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/string', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'C-AI6 Value'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'C-AI7 Label'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/string', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'C-AI7 Value'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'C-AI8 Label'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/string', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'C-AI8 Value'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'C-AO1 Label'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/string', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'C-AO1 Value'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'C-AO2 Label'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/string', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'C-AO2 Value'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'C-AO3 Label'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/string', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'C-AO3 Value'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'C-AO4 Label'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/string', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'C-AO4 Value'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'C-AO5 Label'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/string', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'C-AO5 Value'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'C-AO6 Label'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/string', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'C-AO6 Value'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'C-AO7 Label'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/string', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'C-AO7 Value'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'C-AO8 Label'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/string', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'C-AO8 Value'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'C-DI1 Count'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'C-DI1 Label'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/string', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'C-DI2 Count'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'C-DI2 Label'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/string', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'C-DI3 Count'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'C-DI3 Label'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/string', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'C-DI4 Count'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'C-DI4 Label'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/string', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'C-DI5 Count'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'C-DI5 Label'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/string', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'C-DI6 Count'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'C-DI6 Label'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/string', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'C-DI7 Count'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'C-DI7 Label'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/string', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'C-DI8 Count'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'C-DI8 Label'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/string', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'C-DO1 Count'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'C-DO1 Label'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/string', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'C-DO2 Count'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'C-DO2 Label'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/string', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'C-DO3 Count'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'C-DO3 Label'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/string', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'C-DO4 Count'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'C-DO4 Label'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/string', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'C-DO5 Count'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'C-DO5 Label'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/string', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'C-DO6 Count'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'C-DO6 Label'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/string', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'C-DO7 Count'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'C-DO7 Label'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/string', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'C-DO8 Count'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'C-DO8 Label'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/string', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Current Apparent RMS'

EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/ampere', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Fundamental Current Angle G'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Fundamental Current Magnitude G'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Fundamental Voltage Angle N-G'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Fundamental Voltage Magnitude N-G'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Max Crest Factor G'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Max Current Angle Negative Sequence'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Max Current Angle Positive Sequence'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Max Current Angle Zero Sequence'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Max Current Apparent RMS'

EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/ampere', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Max Current Magnitude Negative Sequence'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Max Current Magnitude Positive Sequence'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Max Current Magnitude Zero Sequence'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Max Displacement Power Factor Total'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Max Fundamental Current Angle A'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Max Fundamental Current Angle B'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Max Fundamental Current Angle C'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Max Fundamental Current Angle G'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Max Fundamental Current Angle N'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Max Fundamental Current Magnitude G'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Max Fundamental Voltage Angle N-G'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Max Fundamental Voltage Magnitude A-B or A-N'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Max Fundamental Voltage Magnitude B-C or B-N'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Max Fundamental Voltage Magnitude C-A or C-N'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Max Fundamental Voltage Magnitude N-G'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Max Harmonic Current A'

EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/ampere', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Max Harmonic Current B'

EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/ampere', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Max Harmonic Current C'

EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/ampere', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Max Harmonic Current N'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Max Harmonic Voltage A-N or A-B'

EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/volt', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Max Harmonic Voltage B-N or B-C'

EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/volt', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Max Harmonic Voltage C-N or C-A'

EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/volt', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Max Sequence Currents Unbalance'

EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Max Sequence Voltages Unbalance'

EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Maximum Temperature Celsius'

EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/degreecelsius', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/temperature', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Max THD Current G'

EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Max THD Voltage N-G'

EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Max Total Demand Distortion'

EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Max Voltage Angle Negative Sequence'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Max Voltage Angle Positive Sequence'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Max Voltage Angle Zero Sequence'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Max Voltage Magnitude Negative Sequence'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Max Voltage Magnitude Positive Sequence'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Max Voltage Magnitude Zero Sequence'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Min Crest Factor G'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Min Current Angle Negative Sequence'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Min Current Angle Positive Sequence'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Min Current Angle Zero Sequence'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Min Current Apparent RMS'

EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/ampere', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Min Current Magnitude Negative Sequence'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Min Current Magnitude Positive Sequence'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Min Current Magnitude Zero Sequence'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Min Displacement Power Factor Total'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Min Fundamental Current Angle A'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Min Fundamental Current Angle B'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Min Fundamental Current Angle C'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Min Fundamental Current Angle G'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Min Fundamental Current Angle N'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Min Fundamental Current Magnitude G'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Min Fundamental Voltage Angle N-G'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Min Fundamental Voltage Magnitude A-B or A-N'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Min Fundamental Voltage Magnitude B-C or B-N'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Min Fundamental Voltage Magnitude C-A or C-N'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Min Fundamental Voltage Magnitude N-G'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Min Harmonic Current A'

EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/ampere', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Min Harmonic Current B'

EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/ampere', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Min Harmonic Current C'

EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/ampere', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Min Harmonic Current N'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Min Harmonic Voltage A-N or A-B'

EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/volt', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Min Harmonic Voltage B-N or B-C'

EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/volt', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Min Harmonic Voltage C-N or C-A'

EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/volt', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Min Sequence Currents Unbalance'

EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Min Sequence Voltages Unbalance'

EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Minimum Temperature Celsius'

EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/degreecelsius', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/temperature', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Min THD Current G'

EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Min THD Voltage N-G'

EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Min Total Demand Distortion'

EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Min Voltage Angle Negative Sequence'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Min Voltage Angle Positive Sequence'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Min Voltage Angle Zero Sequence'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Min Voltage Magnitude Negative Sequence'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Min Voltage Magnitude Positive Sequence'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Min Voltage Magnitude Zero Sequence'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Temperature Celsius'

EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/degreecelsius', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/temperature', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'THD Voltage N-G'

EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Total Demand Distortion'

EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'
----------------------------------------------------------------------------
SET @measurement = N'A-S1 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'A-S2 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'A-S3 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'A-S4 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'A-R0 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'A-R1 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'A-R2 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'A-R3 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'B-S1 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'B-S2 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'B-S3 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'B-S4 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'B-R0 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'B-R1 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'B-R2 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'B-R3 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'C-DI1 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'C-DI2 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'C-DI3 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'C-DI4 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'C-DI5 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'C-DI6 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'C-DI7 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'C-DI8 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'C-DO1 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'C-DO2 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'C-DO3 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'C-DO4 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'C-DO5 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'C-DO6 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'C-DO7 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'C-DO8 Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
-- Micrologic SW Alarm Status - DDI - DD1
-- Generated on 2007-11-21 22:28:15
----------------------------------------------------------------------------
SET @measurement = N'Breaker Between Positions Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Breaker Connected (CE) Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Breaker Disconnected (CD) Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Breaker In Test (CT) Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Long Delay Pickup Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Time Loss (Breaker Comms Module) Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Time Loss (Cradle Comms Module) Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Trip Unit Door Status Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Trip Unit LED Battery Status Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Trip Unit Loss Internal Comms Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Trip Unit Status (SDE) Status'

EXEC spTS_StandardRelationship_Add @measurement, N'format', N'format/boolean', 'Q'

SET @measurement = N'Cost Per Unit - Electricity'

EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'price/currency', N'unit/currencyUSD', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/priceperunit', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Total Cost - Electricity'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/cost', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/currencyusd', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Total Billed Consumption - Electricity'

EXEC spTS_StandardRelationship_Add @measurement, N'aggregation', N'sum', 'L'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/delivered', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/energyreactive', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/val', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/varhour', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Adjustment Factor - Electricity'

EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/number', 'Q'

----------------------------------------------------------------------------
-- DD2 - Compact NSX
-- Generated on 2008-05-02 13:26:12
----------------------------------------------------------------------------
SET @measurement = N'Fundamental Power Factor Phase A'

EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/powerfactor', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Fundamental Power Factor Phase B'

EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/powerfactor', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Fundamental Power Factor Phase C'

EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/powerfactor', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Fundamental Power Factor Total'

EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/powerfactor', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Load Profile 0 to 49 Percent'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Load Profile 50 to 79 Percent'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Load Profile 80 to 89 Percent'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Load Profile 90 to 100 Percent'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Locked Rotor Coefficient'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Locked Rotor Motor Protection Trip'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Locked Rotor Pickup Value'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Locked Rotor Time Delay'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Locked Rotor Trip Counter'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Locked Rotor Trip Enabled'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Locked Rotor Trip Enabled -Bool'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Max Fundamental Power Factor Phase A'

EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/powerfactor', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Max Fundamental Power Factor Phase B'

EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/powerfactor', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Max Fundamental Power Factor Phase C'

EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/powerfactor', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Max Fundamental Power Factor Total'

EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/powerfactor', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Min Fundamental Power Factor Phase A'

EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/powerfactor', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Min Fundamental Power Factor Phase B'

EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/powerfactor', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Min Fundamental Power Factor Phase C'

EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/powerfactor', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Min Fundamental Power Factor Total'

EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/powerfactor', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Nominal Voltage'

EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/volt', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'Previous Locked Rotor Coefficient Pickup Value'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Previous Locked Rotor Time Delay'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Previous Locked Rotor Trip Enabled'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Temp Profile Below -30 C'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

----------------------------------------------------------------------------
SET @measurement = N'Temp Profile Above +100 C'

EXEC spTS_StandardRelationship_Add @measurement, N'undefined', N'', 'L'

--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==
-- Corsica - 2009-01-09
-- 100ms entries, added to provide metadata that is required by the report controls.
----------------------------------------------------------------------------
SET @measurement = N'100ms Current A'

EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/an', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/ampere', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'100ms Current B'

EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/bn', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/ampere', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'100ms Current C'

EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/cn', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/ampere', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'100ms Current N'

EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/neutral', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/ampere', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'100ms Current E'

EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/ground', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/ampere', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'100ms Current Avg'

EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/lnAvg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/current', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/ampere', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'100ms Voltage A-B'

EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/ab', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/volt', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'100ms Voltage B-C'

EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/bc', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/volt', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'100ms Voltage C-A'

EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/ca', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/volt', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'100ms Voltage A-N'

EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/an', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/volt', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'100ms Voltage B-N'

EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/bn', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/volt', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'100ms Voltage C-N'

EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/cn', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/volt', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'100ms Voltage N-E'

EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/neutral', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/volt', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'100ms Voltage L-L Avg'

EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/llAvg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/volt', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'100ms Voltage L-N Avg'

EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/lnAvg', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/voltage', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/volt', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'100ms Real Power A'

EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/an', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/power', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/watt', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'100ms Real Power B'

EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/bn', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/power', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/watt', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'100ms Real Power C'

EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/cn', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/power', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/watt', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'100ms Real Power Total'

EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/power', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/watt', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'100ms Reactive Power A'

EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/an', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/powerreactive', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/var', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'100ms Reactive Power B'

EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/bn', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/powerreactive', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/var', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'100ms Reactive Power C'

EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/cn', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/powerreactive', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/var', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'100ms Reactive Power Total'

EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/powerreactive', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/var', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'100ms Apparent Power A'

EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/an', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/powerapparent', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/va', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'100ms Apparent Power B'

EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/bn', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/powerapparent', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/va', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'100ms Apparent Power C'

EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/cn', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/powerapparent', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/va', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'100ms Apparent Power Total'

EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/powerapparent', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/va', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo', 'Q'

----------------------------------------------------------------------------
SET @measurement = N'100ms Power Factor A'

EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/an', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/powerfactor', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'
----------------------------------------------------------------------------
SET @measurement = N'100ms Power Factor B'

EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/bn', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/powerfactor', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'
----------------------------------------------------------------------------
SET @measurement = N'100ms Power Factor C'

EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/cn', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/powerfactor', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'
----------------------------------------------------------------------------
SET @measurement = N'100ms True Power Factor Total'

EXEC spTS_StandardRelationship_Add @measurement, N'phase', N'phase/total', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'quantity', N'quantity/powerfactor', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/percent', 'Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Mass (kg)'
EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N'Water Mass This Interval (kg)', 'M'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Mass','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'm water','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/kg','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Mass (lb av)'  

EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N'Water Mass This Interval (lb av)', 'M' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Mass','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'm water','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/pound','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Mass (Mlb av)' 
EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N'Water Mass This Interval (Mlb av)', 'M' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Mass','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'm water','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/pound','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Mass (MMlb av)' 
EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N'Water Mass This Interval (MMlb av)', 'M'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Mass','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'm water','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/pound','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Mass (t)'    
EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N'Water Mass This Interval (t)', 'M' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Mass','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'm water','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/tonne','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Mass (sh tn)'  
EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N'Water Mass This Interval (sh tn)', 'M'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Mass','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'm water','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/ton','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Heat Flow (MJ)'   
EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N'Water Heat Flow This Interval (MJ)', 'M' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Heat Flow','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q water','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joule','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Heat Flow (kWh)'   
EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N'Water Heat Flow This Interval (kWh)', 'M' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Heat Flow','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q water','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/watthour','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Heat Flow (J)' 
EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N'Water Heat Flow This Interval (J)', 'M' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Heat Flow','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q water','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joule','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Heat Flow (kJ)'    
EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N'Water Heat Flow This Interval (kJ)', 'M' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q water','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joule','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Heat Flow (GJ)' 
EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N'Water Heat Flow This Interval (GJ)', 'M' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Heat Flow','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q water','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/giga','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joule','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Heat Flow (BTU 59)'  
EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N'Water Heat Flow This Interval (BTU 59)', 'M' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Heat Flow','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q water','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Heat Flow (MBTU 59)' 
EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N'Water Heat Flow This Interval (MBTU 59)', 'M' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Heat Flow','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q water','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Heat Flow (MMBTU 59)'    
EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N'Water Heat Flow This Interval (MMBTU 59)', 'M' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Heat Flow','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q water','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Heat Flow (BTU ISO)' 
EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N'Water Heat Flow This Interval (BTU ISO)', 'M' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Heat Flow','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q water','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuiso','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Heat Flow (MBTU ISO)'
EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N'Water Heat Flow This Interval (MBTU ISO)', 'M'     
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Heat Flow','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q water','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuiso','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Heat Flow (MMBTU ISO)' 
EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N'Water Heat Flow This Interval (MMBTU ISO)', 'M'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Heat Flow','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q water','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuiso','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Heat Flow (tonh)'  
EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N'Water Heat Flow This Interval (tonh)', 'M' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Heat Flow','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q water','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/tonh','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Heat Flow Rate (MJ/s)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Heat Flow Rate','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt water','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joulepersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Heat Flow Rate (J/s)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Heat Flow Rate','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt water','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joulepersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Heat Flow Rate (kJ/s)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Heat Flow Rate','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt water','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joulepersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Heat Flow Rate (BTU 59/h)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Heat Flow Rate','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt water','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59perhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Heat Flow Rate (MBTU 59/h)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Heat Flow Rate','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt water','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59perhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Heat Flow Rate (MMBTU 59/h)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Heat Flow Rate','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt water','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59perhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Heat Flow Rate (BTU ISO/h)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Heat Flow Rate','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt water','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuisoperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Heat Flow Rate (MBTU ISO/h)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Heat Flow Rate','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt water','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuisoperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Heat Flow Rate (MMBTU ISO/h)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Heat Flow Rate','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt water','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuisoperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Volume (m%5E3)'   
EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N'Air Volume This Interval (m%5E3)', 'M' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Volume','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V air','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeter','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Volume (Ccf)'  
EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N'Air Volume This Interval (Ccf)', 'M' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Volume','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V air','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/hecta','Q' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfoot','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Volume (Mcf)'
EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N'Air Volume This Interval (Mcf)', 'M'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Volume','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V air','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfoot','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Volume (MMcf)' 
EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N'Air Volume This Interval (MMcf)', 'M' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Volume','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V air','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfoot','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Volume (scf)'  
EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N'Air Volume This Interval (scf)', 'M' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Volume','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V air','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/standardcubicfoot','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Volume (Cscf)' 
EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N'Air Volume This Interval (Cscf)', 'M' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Volume','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V air','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/hecta','Q' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/standardcubicfoot','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Volume (Mscf)' 
EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N'Air Volume This Interval (Mscf)', 'M' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Volume','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V air','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/standardcubicfoot','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Volume (MMscf)'  
EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N'Air Volume This Interval (MMscf)', 'M'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Volume','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V air','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/standardcubicfoot','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Mass Previous Day Total (kg)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Mass Previous Day Total','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'm water prev day','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/kg','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Mass Previous Day Total (lb av)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Mass Previous Day Total','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'm water prev day','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/pound','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Mass Previous Day Total (Mlb av)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Mass Previous Day Total','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'm water prev day','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/pound','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Mass Previous Day Total (MMlb av)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Mass Previous Day Total','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'm water prev day','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/pound','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Mass Previous Day Total (t)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Mass Previous Day Total','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'm water prev day','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/tonne','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Mass Previous Day Total (sh tn)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Mass Previous Day Total','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'm water prev day','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/ton','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Mass Current Day Total (kg)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Mass Current Day Total','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'm water current day','L'     
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/kg','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Mass Current Day Total (lb av)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Mass Current Day Total','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'm water current day','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/pound','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Mass Current Day Total (Mlb av)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Mass Current Day Total','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'm water current day','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/pound','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Mass Current Day Total (MMlb av)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Mass Current Day Total','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'm water current day','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/pound','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Mass Current Day Total (t)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Mass Current Day Total','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'm water current day','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/tonne','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Mass Current Day Total (sh tn)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Mass Current Day Total','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'm water current day','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/ton','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Mass Flow Rate (kg/s)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Mass Flow Rate','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dm/dt water','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/kgpersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Mass Flow Rate (kg/h)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Mass Flow Rate','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dm/dt water','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/kgperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Mass Flow Rate (lb av/h)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Mass Flow Rate','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dm/dt water','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/poundperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Mass Flow Rate (t/h)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Mass Flow Rate','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dm/dt water','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/tonneperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Mass Flow Rate (sh tn/h)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Mass Flow Rate','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dm/dt water','L'     
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/tonperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Mass Flow Rate Hourly Average (kg/s)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Mass Flow Rate Hourly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dm/dt water hourly av','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/kgpersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Mass Flow Rate Hourly Average (kg/h)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Mass Flow Rate Hourly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dm/dt water hourly av','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/kgperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Mass Flow Rate Hourly Average (lb av/h)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Mass Flow Rate Hourly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dm/dt water hourly av','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/poundperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Mass Flow Rate Hourly Average (t/h)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Mass Flow Rate Hourly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dm/dt water hourly av','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/tonneperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Mass Flow Rate Hourly Average (sh tn/h)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Mass Flow Rate Hourly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dm/dt water hourly av','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/tonperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Mass Flow Rate Daily Average (kg/s)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Mass Flow Rate Daily Average','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dm/dt water daily av','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/kgpersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Mass Flow Rate Daily Average (kg/h)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Mass Flow Rate Daily Average','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dm/dt water daily av','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/kgperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Mass Flow Rate Daily Average (lb av/h)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Mass Flow Rate Daily Average','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dm/dt water daily av','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/poundperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Mass Flow Rate Daily Average (t/h)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Mass Flow Rate Daily Average','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dm/dt water daily av','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/tonneperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Mass Flow Rate Daily Average (sh tn/h)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Mass Flow Rate Daily Average','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dm/dt water daily av','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/tonperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Mass Flow Rate Weekly Average (kg/s)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Mass Flow Rate Weekly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dm/dt water weekly av','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/kgpersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Mass Flow Rate Weekly Average (kg/h)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Mass Flow Rate Weekly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dm/dt water weekly av','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/kgperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Mass Flow Rate Weekly Average (lb av/h)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Mass Flow Rate Weekly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dm/dt water weekly av','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/poundperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Mass Flow Rate Weekly Average (t/h)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Mass Flow Rate Weekly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dm/dt water weekly av','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/tonneperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Mass Flow Rate Weekly Average (sh tn/h)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Mass Flow Rate Weekly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dm/dt water weekly av','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/tonperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Mass Flow Rate Monthly Average (kg/s)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Mass Flow Rate Monthly Average','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dm/dt water monthly av','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/kgpersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Mass Flow Rate Monthly Average (kg/h)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Mass Flow Rate Monthly Average','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dm/dt water monthly av','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/kgperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Mass Flow Rate Monthly Average (lb av/h)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Mass Flow Rate Monthly Average','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dm/dt water monthly av','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/poundperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Mass Flow Rate Monthly Average (t/h)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Mass Flow Rate Monthly Average','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dm/dt water monthly av','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/tonneperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Mass Flow Rate Monthly Average (sh tn/h)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Mass Flow Rate Monthly Average','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dm/dt water monthly av','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/tonperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Mass Flow Rate Max (kg/s)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Mass Flow Rate Max','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dm/dt water max','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/kgpersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Mass Flow Rate Min (kg/s)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Mass Flow Rate Min','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dm/dt water min','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/kgpersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Mass Flow Rate Max (kg/h)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Mass Flow Rate Max','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dm/dt water max','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/kgperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Mass Flow Rate Min (kg/h)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Mass Flow Rate Min','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dm/dt water min','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/kgperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Mass Flow Rate Max (t/h)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Mass Flow Rate Max','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dm/dt water max','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/tonneperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Mass Flow Rate Min (t/h)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Mass Flow Rate Min','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dm/dt water min','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/tonneperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Mass Flow Rate Max (lb av/h)'	
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Mass Flow Rate Max','L'	
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dm/dt water max','L'	
	
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/poundperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Mass Flow Rate Min (lb av/h)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Mass Flow Rate Min','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dm/dt water min','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/poundperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Mass Flow Rate Max (sh tn/h)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Mass Flow Rate Max','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dm/dt water max','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/tonperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Mass Flow Rate Min (sh tn/h)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Mass Flow Rate Min','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dm/dt water min','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/tonperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Heat Flow Previous Day Total (MJ)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Heat Flow Previous Day Total','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q water prev day','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joule','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Heat Flow Previous Day Total (kWh)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Heat Flow Previous Day Total','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q water prev day','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/watthour','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Heat Flow Previous Day Total (J)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Heat Flow Previous Day Total','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q water prev day','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joule','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Heat Flow Previous Day Total (kJ)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Heat Flow Previous Day Total','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q water prev day','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joule','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Heat Flow Previous Day Total (GJ)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Heat Flow Previous Day Total','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q water prev day','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/giga','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joule','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Heat Flow Previous Day Total (BTU 59)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Heat Flow Previous Day Total','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q water prev day','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Heat Flow Previous Day Total (MBTU 59)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Heat Flow Previous Day Total','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q water prev day','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Heat Flow Previous Day Total (MMBTU 59)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Heat Flow Previous Day Total','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q water prev day','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Heat Flow Previous Day Total (BTU ISO)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Heat Flow Previous Day Total','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q water prev day','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuiso','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Heat Flow Previous Day Total (MBTU ISO)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Heat Flow Previous Day Total','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q water prev day','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuiso','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Heat Flow Previous Day Total (MMBTU ISO)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Heat Flow Previous Day Total','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q water prev day','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuiso','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Heat Flow Previous Day Total (tonh)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Heat Flow Previous Day Total','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q water prev day','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/tonh','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Heat Flow Current Day Total (MJ)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Heat Flow Current Day Total','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q water current day','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joule','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Heat Flow Current Day Total (kWh)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Heat Flow Current Day Total','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q water current day','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/watthour','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Heat Flow Current Day Total (J)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Heat Flow Current Day Total','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q water current day','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joule','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Heat Flow Current Day Total (kJ)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Heat Flow Current Day Total','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q water current day','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joule','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Heat Flow Current Day Total (GJ)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Heat Flow Current Day Total','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q water current day','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/giga','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joule','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Heat Flow Current Day Total (BTU 59)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Heat Flow Current Day Total','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q water current day','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Heat Flow Current Day Total (MBTU 59)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Heat Flow Current Day Total','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q water current day','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Heat Flow Current Day Total (MMBTU 59)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Heat Flow Current Day Total','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q water current day','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Heat Flow Current Day Total (BTU ISO)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Heat Flow Current Day Total','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q water current day','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuiso','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Heat Flow Current Day Total (MBTU ISO)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Heat Flow Current Day Total','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q water current day','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuiso','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Heat Flow Current Day Total (MMBTU ISO)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Heat Flow Current Day Total','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q water current day','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuiso','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Heat Flow Current Day Total (tonh)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Heat Flow Current Day Total','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q water current day','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/tonh','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Volume Previous Day Total (m%5E3)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Volume Previous Day Total','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V air prev day','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeter','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Volume Previous Day Total (cf)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Volume Previous Day Total','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V air prev day','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfoot','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Volume Previous Day Total (Ccf)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Volume Previous Day Total','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V air prev day','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/hecta','Q' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfoot','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Volume Previous Day Total (Mcf)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Volume Previous Day Total','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V air prev day','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfoot','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Volume Previous Day Total (MMcf)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Volume Previous Day Total','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V air prev day','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfoot','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Volume Previous Day Total (scf)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Volume Previous Day Total','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V air prev day','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/standardcubicfoot','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Volume Previous Day Total (Cscf)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Volume Previous Day Total','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V air prev day','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/hecta','Q' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/standardcubicfoot','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Volume Previous Day Total (Mscf)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Volume Previous Day Total','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V air prev day','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/standardcubicfoot','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Volume Previous Day Total (MMscf)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Volume Previous Day Total','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V air prev day','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/standardcubicfoot','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Volume Current Day Total (m%5E3)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Volume Current Day Total','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V air current day','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeter','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Volume Current Day Total (cf)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Volume Current Day Total','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V air current day','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfoot','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Volume Current Day Total (Ccf)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Volume Current Day Total','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V air current day','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/hecta','Q' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfoot','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Volume Current Day Total (Mcf)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Volume Current Day Total','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V air current day','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfoot','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Volume Current Day Total (MMcf)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Volume Current Day Total','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V air current day','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfoot','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Volume Current Day Total (scf)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Volume Current Day Total','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V air current day','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/standardcubicfoot','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Volume Current Day Total (Cscf)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Volume Current Day Total','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V air current day','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/hecta','Q' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/standardcubicfoot','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Volume Current Day Total (Mscf)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Volume Current Day Total','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V air current day','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/standardcubicfoot','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Volume Current Day Total (MMscf)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Volume Current Day Total','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V air current day','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/standardcubicfoot','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Heat Flow (MJ)'  

EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N' Air Heat Flow This Interval (MJ)', 'M' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Heat Flow','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q air','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joule','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Heat Flow (J)'   
EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N' Air Heat Flow This Interval (J)', 'M' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Heat Flow','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q air','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joule','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Heat Flow (kJ)' 
EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N' Air Heat Flow This Interval (kJ)', 'M'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Heat Flow','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q air','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joule','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Heat Flow (GJ)'  
EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N' Air Heat Flow This Interval (GJ)', 'M' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Heat Flow','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q air','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/giga','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joule','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Heat Flow (BTU 59)'    
EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N' Air Heat Flow This Interval (BTU 59)', 'M' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Heat Flow','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q air','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Heat Flow (MBTU 59)'   
EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N' Air Heat Flow This Interval (MBTU 59)', 'M'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Heat Flow','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q air','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Heat Flow (MMBTU 59)'  
EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N' Air Heat Flow This Interval (MMBTU 59)', 'M'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Heat Flow','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q air','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Heat Flow (BTU ISO)'  

EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N' Air Heat Flow This Interval (BTU ISO)', 'M'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Heat Flow','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q air','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuiso','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Heat Flow (MBTU ISO)'  
EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N' Air Heat Flow This Interval (MBTU ISO)', 'M' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Heat Flow','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q air','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuiso','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Heat Flow (MMBTU ISO)' 

EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N' Air Heat Flow This Interval (MMBTU ISO)', 'M' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Heat Flow','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q air','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuiso','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Heat Flow Previous Day Total (MJ)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Heat Flow Previous Day Total','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q air prev day','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joule','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Heat Flow Previous Day Total (J)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Heat Flow Previous Day Total','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q air prev day','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joule','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Heat Flow Previous Day Total (kJ)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Heat Flow Previous Day Total','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q air prev day','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joule','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Heat Flow Previous Day Total (GJ)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Heat Flow Previous Day Total','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q air prev day','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/giga','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joule','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Heat Flow Previous Day Total (BTU 59)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Heat Flow Previous Day Total','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q air prev day','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Heat Flow Previous Day Total (MBTU 59)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Heat Flow Previous Day Total','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q air prev day','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Heat Flow Previous Day Total (MMBTU 59)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Heat Flow Previous Day Total','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q air prev day','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Heat Flow Previous Day Total (BTU ISO)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Heat Flow Previous Day Total','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q air prev day','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuiso','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Heat Flow Previous Day Total (MBTU ISO)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Heat Flow Previous Day Total','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q air prev day','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuiso','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Heat Flow Previous Day Total (MMBTU ISO)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Heat Flow Previous Day Total','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q air prev day','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuiso','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Heat Flow Current Day Total (MJ)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Heat Flow Current Day Total','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q air current day','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joule','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Heat Flow Current Day Total (J)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Heat Flow Current Day Total','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q air current day','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joule','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Heat Flow Current Day Total (kJ)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Heat Flow Current Day Total','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q air current day','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joule','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Heat Flow Current Day Total (GJ)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Heat Flow Current Day Total','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q air current day','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/giga','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joule','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Heat Flow Current Day Total (BTU 59)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Heat Flow Current Day Total','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q air current day','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Heat Flow Current Day Total (MBTU 59)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Heat Flow Current Day Total','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q air current day','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Heat Flow Current Day Total (MMBTU 59)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Heat Flow Current Day Total','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q air current day','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Heat Flow Current Day Total (BTU ISO)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Heat Flow Current Day Total','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q air current day','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuiso','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Heat Flow Current Day Total (MBTU ISO)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Heat Flow Current Day Total','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q air current day','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuiso','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Heat Flow Current Day Total (MMBTU ISO)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Heat Flow Current Day Total','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q air current day','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuiso','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Heat Flow Rate (MJ/s)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Heat Flow Rate','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt air','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joulepersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Heat Flow Rate (J/s)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Heat Flow Rate','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt air','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joulepersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Heat Flow Rate (kJ/s)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Heat Flow Rate','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt air','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joulepersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Heat Flow Rate (BTU 59/h)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Heat Flow Rate','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt air','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59perhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Heat Flow Rate (MBTU 59/h)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Heat Flow Rate','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt air','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59perhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Heat Flow Rate (MMBTU 59/h)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Heat Flow Rate','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt air','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59perhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Heat Flow Rate (BTU ISO/h)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Heat Flow Rate','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt air','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuisoperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Heat Flow Rate (MBTU ISO/h)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Heat Flow Rate','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt air','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuisoperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Heat Flow Rate (MMBTU ISO/h)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Heat Flow Rate','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt air','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuisoperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Heat Flow Rate Hourly Average (MJ/s)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Heat Flow Rate Hourly Average','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt air hourly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joulepersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Heat Flow Rate Hourly Average (J/s)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Heat Flow Rate Hourly Average','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt air hourly av','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joulepersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Heat Flow Rate Hourly Average (kJ/s)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Heat Flow Rate Hourly Average','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt air hourly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joulepersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Heat Flow Rate Hourly Average (BTU 59/h)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Heat Flow Rate Hourly Average','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt air hourly av','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59perhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Heat Flow Rate Hourly Average (MBTU 59/h)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Heat Flow Rate Hourly Average','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt air hourly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59perhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Heat Flow Rate Hourly Average (MMBTU 59/h)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Heat Flow Rate Hourly Average','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt air hourly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59perhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Heat Flow Rate Hourly Average (BTU ISO/h)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Heat Flow Rate Hourly Average','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt air hourly av','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuisoperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Heat Flow Rate Hourly Average (MBTU ISO/h)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Heat Flow Rate Hourly Average','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt air hourly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuisoperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Heat Flow Rate Hourly Average (MMBTU ISO/h)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Heat Flow Rate Hourly Average','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt air hourly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuisoperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Heat Flow Rate Daily Average (MJ/s)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Heat Flow Rate Daily Average','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt air daily av','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joulepersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Heat Flow Rate Daily Average (J/s)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Heat Flow Rate Daily Average','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt air daily av','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joulepersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Heat Flow Rate Daily Average (kJ/s)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Heat Flow Rate Daily Average','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt air daily av','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joulepersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Heat Flow Rate Daily Average (BTU 59/h)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Heat Flow Rate Daily Average','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt air daily av','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59perhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Heat Flow Rate Daily Average (MBTU 59/h)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Heat Flow Rate Daily Average','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt air daily av','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59perhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Heat Flow Rate Daily Average (MMBTU 59/h)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Heat Flow Rate Daily Average','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt air daily av','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59perhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Heat Flow Rate Daily Average (BTU ISO/h)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Heat Flow Rate Daily Average','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt air daily av','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuisoperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Heat Flow Rate Daily Average (MBTU ISO/h)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Heat Flow Rate Daily Average','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt air daily av','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuisoperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Heat Flow Rate Daily Average (MMBTU ISO/h)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Heat Flow Rate Daily Average','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt air daily av','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuisoperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Heat Flow Rate Weekly Average (MJ/s)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Heat Flow Rate Weekly Average','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt air weekly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joulepersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Heat Flow Rate Weekly Average (J/s)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Heat Flow Rate Weekly Average','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt air weekly av','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joulepersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Heat Flow Rate Weekly Average (kJ/s)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Heat Flow Rate Weekly Average','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt air weekly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joulepersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Heat Flow Rate Weekly Average (BTU 59/h)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Heat Flow Rate Weekly Average','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt air weekly av','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59perhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Heat Flow Rate Weekly Average (MBTU 59/h)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Heat Flow Rate Weekly Average','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt air weekly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59perhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Heat Flow Rate Weekly Average (MMBTU 59/h)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Heat Flow Rate Weekly Average','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt air weekly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59perhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Heat Flow Rate Weekly Average (BTU ISO/h)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Heat Flow Rate Weekly Average','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt air weekly av','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuisoperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Heat Flow Rate Weekly Average (MBTU ISO/h)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Heat Flow Rate Weekly Average','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt air weekly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuisoperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Heat Flow Rate Weekly Average (MMBTU ISO/h)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Heat Flow Rate Weekly Average','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt air weekly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuisoperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Heat Flow Rate Monthly Average (MJ/s)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Heat Flow Rate Monthly Average','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt air monthly av','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joulepersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Heat Flow Rate Monthly Average (J/s)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Heat Flow Rate Monthly Average','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt air monthly av','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joulepersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Heat Flow Rate Monthly Average (kJ/s)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Heat Flow Rate Monthly Average','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt air monthly av','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joulepersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Heat Flow Rate Monthly Average (BTU 59/h)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Heat Flow Rate Monthly Average','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt air monthly av','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59perhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Heat Flow Rate Monthly Average (MBTU 59/h)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Heat Flow Rate Monthly Average','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt air monthly av','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59perhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Heat Flow Rate Monthly Average (MMBTU 59/h)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Heat Flow Rate Monthly Average','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt air monthly av','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59perhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Heat Flow Rate Monthly Average (BTU ISO/h)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Heat Flow Rate Monthly Average','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt air monthly av','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuisoperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Heat Flow Rate Monthly Average (MBTU ISO/h)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Heat Flow Rate Monthly Average','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt air monthly av','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuisoperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Heat Flow Rate Monthly Average (MMBTU ISO/h)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Heat Flow Rate Monthly Average','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt air monthly av','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuisoperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Heat Flow Rate Max (MJ/s)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Heat Flow Rate Max','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt air max','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joulepersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Heat Flow Rate Min (MJ/s)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Heat Flow Rate Min','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt air min','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joulepersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Heat Flow Rate Max (J/s)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Heat Flow Rate Max','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt air max','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joulepersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Heat Flow Rate Min (J/s)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Heat Flow Rate Min','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt air min','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joulepersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Heat Flow Rate Max (kJ/s)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Heat Flow Rate Max','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt air max','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joulepersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Heat Flow Rate Min (kJ/s)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Heat Flow Rate Min','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt air min','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joulepersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Heat Flow Rate Max (BTU 59/h)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Heat Flow Rate Max','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt air max','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59perhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Heat Flow Rate Min (BTU 59/h)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Heat Flow Rate Min','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt air min','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59perhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Heat Flow Rate Max (MBTU 59/h)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Heat Flow Rate Max','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt air max','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59perhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Heat Flow Rate Min (MBTU 59/h)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Heat Flow Rate Min','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt air min','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59perhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Heat Flow Rate Max (MMBTU 59/h)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Heat Flow Rate Max','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt air max','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59perhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Heat Flow Rate Min (MMBTU 59/h)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Heat Flow Rate Min','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt air min','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59perhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Heat Flow Rate Max (BTU ISO/h)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Heat Flow Rate Max','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt air max','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuisoperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Heat Flow Rate Min (BTU ISO/h)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Heat Flow Rate Min','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt air min','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuisoperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Heat Flow Rate Max (MBTU ISO/h)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Heat Flow Rate Max','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt air max','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuisoperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Heat Flow Rate Min (MBTU ISO/h)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Heat Flow Rate Min','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt air min','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuisoperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Heat Flow Rate Max (MMBTU ISO/h)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Heat Flow Rate Max','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt air max','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuisoperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Heat Flow Rate Min (MMBTU ISO/h)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Heat Flow Rate Min','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt air min','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuisoperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Energy Flow Rate (MJ/s)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Energy Flow Rate','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt natgas','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joulepersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Energy Flow Rate (J/s)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Energy Flow Rate','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt natgas','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joulepersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Energy Flow Rate (kJ/s)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Energy Flow Rate','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt natgas','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joulepersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Energy Flow Rate (BTU 59/h)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Energy Flow Rate','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt natgas','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59perhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Energy Flow Rate (MBTU 59/h)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Energy Flow Rate','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt natgas','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59perhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Energy Flow Rate (MMBTU 59/h)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Energy Flow Rate','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt natgas','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59perhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Energy Flow Rate (BTU ISO/h)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Energy Flow Rate','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt natgas','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuisoperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Energy Flow Rate (MBTU ISO/h)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Energy Flow Rate','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt natgas','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuisoperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Energy Flow Rate (MMBTU ISO/h)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Energy Flow Rate','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt natgas','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuisoperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Energy Flow Rate Hourly Average (MJ/s)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Energy Flow Rate Hourly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt natgas hourly av','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joulepersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Energy Flow Rate Hourly Average (J/s)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Energy Flow Rate Hourly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt natgas hourly av','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joulepersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Energy Flow Rate Hourly Average (kJ/s)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Energy Flow Rate Hourly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt natgas hourly av','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joulepersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Energy Flow Rate Hourly Average (BTU 59/h)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Energy Flow Rate Hourly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt natgas hourly av','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59perhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Energy Flow Rate Hourly Average (MBTU 59/h)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Energy Flow Rate Hourly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt natgas hourly av','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59perhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Energy Flow Rate Hourly Average (MMBTU 59/h)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Energy Flow Rate Hourly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt natgas hourly av','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59perhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Energy Flow Rate Hourly Average (BTU ISO/h)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Energy Flow Rate Hourly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt natgas hourly av','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuisoperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Energy Flow Rate Hourly Average (MBTU ISO/h)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Energy Flow Rate Hourly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt natgas hourly av','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuisoperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Energy Flow Rate Hourly Average (MMBTU ISO/h)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Energy Flow Rate Hourly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt natgas hourly av','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuisoperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Energy Flow Rate Daily Average (MJ/s)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Energy Flow Rate Daily Average','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt natgas daily av','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joulepersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Energy Flow Rate Daily Average (J/s)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Energy Flow Rate Daily Average','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt natgas daily av','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joulepersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Energy Flow Rate Daily Average (kJ/s)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Energy Flow Rate Daily Average','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt natgas daily av','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joulepersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Energy Flow Rate Daily Average (BTU 59/h)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Energy Flow Rate Daily Average','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt natgas daily av','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59perhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Energy Flow Rate Daily Average (MBTU 59/h)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Energy Flow Rate Daily Average','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt natgas daily av','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59perhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Energy Flow Rate Daily Average (MMBTU 59/h)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Energy Flow Rate Daily Average','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt natgas daily av','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59perhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Energy Flow Rate Daily Average (BTU ISO/h)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Energy Flow Rate Daily Average','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt natgas daily av','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuisoperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Energy Flow Rate Daily Average (MBTU ISO/h)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Energy Flow Rate Daily Average','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt natgas daily av','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuisoperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Energy Flow Rate Daily Average (MMBTU ISO/h)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Energy Flow Rate Daily Average','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt natgas daily av','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuisoperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Energy Flow Rate Weekly Average (MJ/s)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Energy Flow Rate Weekly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt natgas weekly av','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joulepersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Energy Flow Rate Weekly Average (J/s)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Energy Flow Rate Weekly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt natgas weekly av','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joulepersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Energy Flow Rate Weekly Average (kJ/s)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Energy Flow Rate Weekly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt natgas weekly av','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joulepersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Energy Flow Rate Weekly Average (BTU 59/h)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Energy Flow Rate Weekly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt natgas weekly av','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59perhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Energy Flow Rate Weekly Average (MBTU 59/h)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Energy Flow Rate Weekly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt natgas weekly av','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59perhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Energy Flow Rate Weekly Average (MMBTU 59/h)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Energy Flow Rate Weekly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt natgas weekly av','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59perhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Energy Flow Rate Weekly Average (BTU ISO/h)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Energy Flow Rate Weekly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt natgas weekly av','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuisoperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Energy Flow Rate Weekly Average (MBTU ISO/h)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Energy Flow Rate Weekly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt natgas weekly av','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuisoperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Energy Flow Rate Weekly Average (MMBTU ISO/h)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Energy Flow Rate Weekly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt natgas weekly av','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuisoperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Energy Flow Rate Monthly Average (MJ/s)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Energy Flow Rate Monthly Average','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt natgas monthly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joulepersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Energy Flow Rate Monthly Average (J/s)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Energy Flow Rate Monthly Average','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt natgas monthly av','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joulepersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Energy Flow Rate Monthly Average (kJ/s)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Energy Flow Rate Monthly Average','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt natgas monthly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joulepersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Energy Flow Rate Monthly Average (BTU 59/h)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Energy Flow Rate Monthly Average','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt natgas monthly av','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59perhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Energy Flow Rate Monthly Average (MBTU 59/h)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Energy Flow Rate Monthly Average','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt natgas monthly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59perhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Energy Flow Rate Monthly Average (MMBTU 59/h)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Energy Flow Rate Monthly Average','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt natgas monthly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59perhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Energy Flow Rate Monthly Average (BTU ISO/h)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Energy Flow Rate Monthly Average','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt natgas monthly av','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuisoperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Energy Flow Rate Monthly Average (MBTU ISO/h)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Energy Flow Rate Monthly Average','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt natgas monthly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuisoperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Energy Flow Rate Monthly Average (MMBTU ISO/h)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Energy Flow Rate Monthly Average','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt natgas monthly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuisoperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Energy Flow Rate Max (MJ/s)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Energy Flow Rate Max','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt natgas max','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joulepersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Energy Flow Rate Min (MJ/s)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Energy Flow Rate Min','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt natgas min','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joulepersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Energy Flow Rate Max (J/s)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Energy Flow Rate Max','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt natgas max','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joulepersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Energy Flow Rate Min (J/s)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Energy Flow Rate Min','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt natgas min','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joulepersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Energy Flow Rate Max (kJ/s)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Energy Flow Rate Max','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt natgas max','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joulepersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Energy Flow Rate Min (kJ/s)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Energy Flow Rate Min','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt natgas min','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joulepersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Energy Flow Rate Max (BTU 59/h)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Energy Flow Rate Max','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt natgas max','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59perhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Energy Flow Rate Min (BTU 59/h)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Energy Flow Rate Min','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt natgas min','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59perhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Energy Flow Rate Max (MBTU 59/h)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Energy Flow Rate Max','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt natgas max','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59perhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Energy Flow Rate Min (MBTU 59/h)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Energy Flow Rate Min','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt natgas min','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59perhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Energy Flow Rate Max (MMBTU 59/h)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Energy Flow Rate Max','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt natgas max','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59perhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Energy Flow Rate Min (MMBTU 59/h)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Energy Flow Rate Min','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt natgas min','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59perhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Energy Flow Rate Max (BTU ISO/h)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Energy Flow Rate Max','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt natgas max','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuisoperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Energy Flow Rate Min (BTU ISO/h)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Energy Flow Rate Min','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt natgas min','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuisoperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Energy Flow Rate Max (MBTU ISO/h)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Energy Flow Rate Max','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt natgas max','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuisoperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Energy Flow Rate Min (MBTU ISO/h)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Energy Flow Rate Min','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt natgas min','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuisoperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Energy Flow Rate Max (MMBTU ISO/h)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Energy Flow Rate Max','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt natgas max','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuisoperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Energy Flow Rate Min (MMBTU ISO/h)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Energy Flow Rate Min','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt natgas min','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuisoperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Volume (m%5E3)'  

EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N'Steam Volume This Interval (m%5E3)', 'M' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Volume','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V steam','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeter','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Volume (cf)' 

EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N'Steam Volume This Interval (cf)', 'M' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Volume','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V steam','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfoot','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Volume (Ccf)'    

EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N'Steam Volume This Interval (Ccf)', 'M' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Volume','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V steam','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/hecta','Q' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfoot','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Volume (Mcf)'    
EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N'Steam Volume This Interval (Mcf)', 'M' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Volume','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V steam','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfoot','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Volume (MMcf)' 
EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N'Steam Volume This Interval (MMcf)', 'M'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Volume','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V steam','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfoot','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Volume Previous Day Total (m%5E3)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Volume Previous Day Total','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V steam prev day','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeter','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Volume Previous Day Total (cf)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Volume Previous Day Total','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V steam prev day','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfoot','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Volume Previous Day Total (Ccf)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Volume Previous Day Total','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V steam prev day','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/hecta','Q' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfoot','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Volume Previous Day Total (Mcf)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Volume Previous Day Total','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V steam prev day','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfoot','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Volume Previous Day Total (MMcf)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Volume Previous Day Total','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V steam prev day','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfoot','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Volume Current Day Total (m%5E3)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Volume Current Day Total','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V steam current day','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeter','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Volume Current Day Total (cf)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Volume Current Day Total','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V steam current day','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfoot','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Volume Current Day Total (Ccf)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Volume Current Day Total','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V steam current day','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/hecta','Q' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfoot','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Volume Current Day Total (Mcf)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Volume Current Day Total','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V steam current day','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfoot','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Volume Current Day Total (MMcf)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Volume Current Day Total','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V steam current day','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfoot','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Volume Incremental (Mscf)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Volume Incremental','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V steam incr','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/standardcubicfoot','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Volume Incremental (MMscf)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Volume Incremental','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V steam incr','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/standardcubicfoot','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Volume Flow Rate (m%5E3/s)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Volume Flow Rate','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt steam','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterpersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Volume Flow Rate (m%5E3/min)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Volume Flow Rate','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt steam','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterpermin','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Volume Flow Rate (m%5E3/h)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Volume Flow Rate','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt steam','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Volume Flow Rate (cf/s)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Volume Flow Rate','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt steam','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootpersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Volume Flow Rate (cf/min)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Volume Flow Rate','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt steam','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootpermin','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Volume Flow Rate (cf/h)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Volume Flow Rate','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt steam','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootperhr','Q'
---------------------------------------------------------------- 




SET @measurement = N'Steam Volume Flow Rate Hourly Average (m%5E3/s)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Volume Flow Rate Hourly Average','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt steam hourly av','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterpersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Volume Flow Rate Hourly Average (m%5E3/min)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Volume Flow Rate Hourly Average','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt steam hourly av','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterpermin','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Volume Flow Rate Hourly Average (m%5E3/h)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Volume Flow Rate Hourly Average','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt steam hourly av','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Volume Flow Rate Hourly Average (cf/s)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Volume Flow Rate Hourly Average','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt steam hourly av','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootpersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Volume Flow Rate Hourly Average (cf/min)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Volume Flow Rate Hourly Average','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt steam hourly av','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootpermin','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Volume Flow Rate Hourly Average (cf/h)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Volume Flow Rate Hourly Average','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt steam hourly av','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Volume Flow Rate Daily Average (m%5E3/s)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Volume Flow Rate Daily Average','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt steam daily av','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterpersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Volume Flow Rate Daily Average (m%5E3/min)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Volume Flow Rate Daily Average','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt steam daily av','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterpermin','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Volume Flow Rate Daily Average (m%5E3/h)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Volume Flow Rate Daily Average','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt steam daily av','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Volume Flow Rate Daily Average (cf/s)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Volume Flow Rate Daily Average','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt steam daily av','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootpersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Volume Flow Rate Daily Average (cf/min)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Volume Flow Rate Daily Average','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt steam daily av','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootpermin','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Volume Flow Rate Daily Average (cf/h)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Volume Flow Rate Daily Average','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt steam daily av','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Volume Flow Rate Weekly Average (m%5E3/s)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Volume Flow Rate Weekly Average','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt steam weekly av','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterpersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Volume Flow Rate Weekly Average (m%5E3/min)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Volume Flow Rate Weekly Average','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt steam weekly av','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterpermin','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Volume Flow Rate Weekly Average (m%5E3/h)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Volume Flow Rate Weekly Average','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt steam weekly av','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Volume Flow Rate Weekly Average (cf/s)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Volume Flow Rate Weekly Average','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt steam weekly av','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootpersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Volume Flow Rate Weekly Average (cf/min)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Volume Flow Rate Weekly Average','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt steam weekly av','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootpermin','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Volume Flow Rate Weekly Average (cf/h)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Volume Flow Rate Weekly Average','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt steam weekly av','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Volume Flow Rate Monthly Average (m%5E3/s)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Volume Flow Rate Monthly Average','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt steam monthly av','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterpersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Volume Flow Rate Monthly Average (m%5E3/min)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Volume Flow Rate Monthly Average','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt steam monthly av','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterpermin','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Volume Flow Rate Monthly Average (m%5E3/h)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Volume Flow Rate Monthly Average','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt steam monthly av','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Volume Flow Rate Monthly Average (cf/s)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Volume Flow Rate Monthly Average','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt steam monthly av','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootpersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Volume Flow Rate Monthly Average (cf/min)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Volume Flow Rate Monthly Average','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt steam monthly av','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootpermin','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Volume Flow Rate Monthly Average (cf/h)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Volume Flow Rate Monthly Average','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt steam monthly av','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Volume Flow Rate Max (m%5E3/s)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Volume Flow Rate Max','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt steam max','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterpersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Volume Flow Rate Min (m%5E3/s)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Volume Flow Rate Min','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt steam min','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterpersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Volume Flow Rate Max (m%5E3/min)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Volume Flow Rate Max','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt steam max','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterpermin','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Volume Flow Rate Min (m%5E3/min)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Volume Flow Rate Min','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt steam min','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterpermin','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Volume Flow Rate Max (m%5E3/h)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Volume Flow Rate Max','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt steam max','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Volume Flow Rate Min (m%5E3/h)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Volume Flow Rate Min','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt steam min','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Volume Flow Rate Max (cf/s)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Volume Flow Rate Max','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt steam max','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootpersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Volume Flow Rate Min (cf/s)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Volume Flow Rate Min','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt steam min','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootpersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Volume Flow Rate Max (cf/min)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Volume Flow Rate Max','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt steam max','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootpermin','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Volume Flow Rate Min (cf/min)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Volume Flow Rate Min','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt steam min','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootpermin','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Volume Flow Rate Max (cf/h)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Volume Flow Rate Max','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt steam max','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Volume Flow Rate Min (cf/h)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Volume Flow Rate Min','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt steam min','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Heat Flow Previous Day Total (MJ)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Heat Flow Previous Day Total','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q steam prev day','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joule','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Heat Flow Previous Day Total (J)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Heat Flow Previous Day Total','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q steam prev day','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joule','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Heat Flow Previous Day Total (kJ)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Heat Flow Previous Day Total','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q steam prev day','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joule','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Heat Flow Previous Day Total (GJ)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Heat Flow Previous Day Total','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q steam prev day','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/giga','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joule','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Heat Flow Previous Day Total (BTU 59)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Heat Flow Previous Day Total','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q steam prev day','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Heat Flow Previous Day Total (MBTU 59)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Heat Flow Previous Day Total','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q steam prev day','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Heat Flow Previous Day Total (MMBTU 59)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Heat Flow Previous Day Total','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q steam prev day','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Heat Flow Previous Day Total (BTU ISO)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Heat Flow Previous Day Total','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q steam prev day','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuiso','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Heat Flow Previous Day Total (MBTU ISO)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Heat Flow Previous Day Total','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q steam prev day','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuiso','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Heat Flow Previous Day Total (MMBTU ISO)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Heat Flow Previous Day Total','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q steam prev day','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuiso','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Heat Flow Current Day Total (MJ)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Heat Flow Current Day Total','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q steam current day','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joule','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Heat Flow Current Day Total (J)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Heat Flow Current Day Total','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q steam current day','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joule','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Heat Flow Current Day Total (kJ)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Heat Flow Current Day Total','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q steam current day','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joule','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Heat Flow Current Day Total (GJ)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Heat Flow Current Day Total','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q steam current day','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/giga','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joule','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Heat Flow Current Day Total (BTU 59)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Heat Flow Current Day Total','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q steam current day','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Heat Flow Current Day Total (MBTU 59)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Heat Flow Current Day Total','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q steam current day','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Heat Flow Current Day Total (MMBTU 59)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Heat Flow Current Day Total','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q steam current day','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Heat Flow Current Day Total (BTU ISO)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Heat Flow Current Day Total','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q steam current day','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuiso','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Heat Flow Current Day Total (MBTU ISO)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Heat Flow Current Day Total','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q steam current day','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuiso','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Heat Flow Current Day Total (MMBTU ISO)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Heat Flow Current Day Total','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q steam current day','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuiso','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Heat Flow Rate (MJ/s)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Heat Flow Rate','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt steam','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joulepersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Heat Flow Rate (J/s)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Heat Flow Rate','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt steam','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joulepersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Heat Flow Rate (kJ/s)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Heat Flow Rate','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt steam','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joulepersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Heat Flow Rate (BTU 59/h)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Heat Flow Rate','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt steam','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59perhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Heat Flow Rate (MBTU 59/h)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Heat Flow Rate','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt steam','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59perhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Heat Flow Rate (MMBTU 59/h)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Heat Flow Rate','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt steam','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59perhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Heat Flow Rate (BTU ISO/h)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Heat Flow Rate','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt steam','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuisoperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Heat Flow Rate (MBTU ISO/h)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Heat Flow Rate','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt steam','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuisoperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Heat Flow Rate (MMBTU ISO/h)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Heat Flow Rate','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt steam','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuisoperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Wastewater Mass (kg)' 

EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N'Wastewater Mass This Interval (kg)', 'M'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Mass','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'm wastewater','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/kg','Q'
---------------------------------------------------------------- 
SET @measurement = N'Wastewater Mass (lb av)' 
EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N'Wastewater Mass This Interval (lb av)', 'M'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Mass','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'm wastewater','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/pound','Q'
---------------------------------------------------------------- 
SET @measurement = N'Wastewater Mass (Mlb av)'    
EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N'Wastewater Mass This Interval (Mlb av)', 'M'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Mass','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'm wastewater','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/pound','Q'
---------------------------------------------------------------- 
SET @measurement = N'Wastewater Mass (MMlb av)'   
EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N'Wastewater Mass This Interval (MMlb av)', 'M'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Mass','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'm wastewater','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/pound','Q'
---------------------------------------------------------------- 
SET @measurement = N'Wastewater Mass (t)'   
EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N'Wastewater Mass This Interval (t)', 'M'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Mass','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'm wastewater','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/tonne','Q'
---------------------------------------------------------------- 
SET @measurement = N'Wastewater Mass (sh tn)'   
EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N'Wastewater Mass This Interval (sh tn)', 'M'                       
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Mass','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'm wastewater','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/ton','Q'
---------------------------------------------------------------- 
SET @measurement = N'Wastewater Mass Previous Day Total (kg)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Mass Previous Day Total','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'm wastewater prev day','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/kg','Q'
---------------------------------------------------------------- 
SET @measurement = N'Wastewater Mass Previous Day Total (lb av)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Mass Previous Day Total','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'm wastewater prev day','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/pound','Q'
---------------------------------------------------------------- 
SET @measurement = N'Wastewater Mass Previous Day Total (Mlb av)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Mass Previous Day Total','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'm wastewater prev day','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/pound','Q'
---------------------------------------------------------------- 
SET @measurement = N'Wastewater Mass Previous Day Total (MMlb av)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Mass Previous Day Total','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'm wastewater prev day','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/pound','Q'
---------------------------------------------------------------- 
SET @measurement = N'Wastewater Mass Previous Day Total (t)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Mass Previous Day Total','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'm wastewater prev day','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/tonne','Q'
---------------------------------------------------------------- 
SET @measurement = N'Wastewater Mass Previous Day Total (sh tn)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Mass Previous Day Total','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'm wastewater prev day','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/ton','Q'
---------------------------------------------------------------- 
SET @measurement = N'Wastewater Mass Current Day Total (kg)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Mass Current Day Total','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'm wastewater current day','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/kg','Q'
---------------------------------------------------------------- 
SET @measurement = N'Wastewater Mass Current Day Total (lb av)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Mass Current Day Total','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'm wastewater current day','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/pound','Q'
---------------------------------------------------------------- 
SET @measurement = N'Wastewater Mass Current Day Total (Mlb av)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Mass Current Day Total','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'm wastewater current day','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/pound','Q'
---------------------------------------------------------------- 
SET @measurement = N'Wastewater Mass Current Day Total (MMlb av)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Mass Current Day Total','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'm wastewater current day','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/pound','Q'
---------------------------------------------------------------- 
SET @measurement = N'Wastewater Mass Current Day Total (t)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Mass Current Day Total','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'm wastewater current day','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/tonne','Q'
---------------------------------------------------------------- 
SET @measurement = N'Wastewater Mass Current Day Total (sh tn)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Mass Current Day Total','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'm wastewater current day','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/ton','Q'
---------------------------------------------------------------- 
SET @measurement = N'Wastewater Mass Flow Rate (kg/s)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Mass Flow Rate','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dm/dt wastewater','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/kgpersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Wastewater Mass Flow Rate (kg/h)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Mass Flow Rate','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dm/dt wastewater','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/kgperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Wastewater Mass Flow Rate (lb av/h)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Mass Flow Rate','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dm/dt wastewater','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/poundperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Wastewater Mass Flow Rate (t/h)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Mass Flow Rate','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dm/dt wastewater','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/tonneperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Wastewater Mass Flow Rate (sh tn/h)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Mass Flow Rate','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dm/dt wastewater','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/tonperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Wastewater Mass Flow Rate Hourly Average (kg/s)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Mass Flow Rate Hourly Average','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dm/dt wastewater hourly av','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/kgpersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Wastewater Mass Flow Rate Hourly Average (kg/h)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Mass Flow Rate Hourly Average','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dm/dt wastewater hourly av','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/kgperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Wastewater Mass Flow Rate Hourly Average (lb av/h)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Mass Flow Rate Hourly Average','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dm/dt wastewater hourly av','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/poundperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Wastewater Mass Flow Rate Hourly Average (t/h)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Mass Flow Rate Hourly Average','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dm/dt wastewater hourly av','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/tonneperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Wastewater Mass Flow Rate Hourly Average (sh tn/h)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Mass Flow Rate Hourly Average','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dm/dt wastewater hourly av','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/tonperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Wastewater Mass Flow Rate Daily Average (kg/s)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Mass Flow Rate Daily Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dm/dt wastewater daily av','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/kgpersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Wastewater Mass Flow Rate Daily Average (kg/h)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Mass Flow Rate Daily Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dm/dt wastewater daily av','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/kgperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Wastewater Mass Flow Rate Daily Average (lb av/h)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Mass Flow Rate Daily Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dm/dt wastewater daily av','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/poundperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Wastewater Mass Flow Rate Daily Average (t/h)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Mass Flow Rate Daily Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dm/dt wastewater daily av','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/tonneperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Wastewater Mass Flow Rate Daily Average (sh tn/h)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Mass Flow Rate Daily Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dm/dt wastewater daily av','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/tonperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Wastewater Mass Flow Rate Weekly Average (kg/s)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Mass Flow Rate Weekly Average','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dm/dt wastewater weekly av','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/kgpersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Wastewater Mass Flow Rate Weekly Average (kg/h)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Mass Flow Rate Weekly Average','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dm/dt wastewater weekly av','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/kgperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Wastewater Mass Flow Rate Weekly Average (lb av/h)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Mass Flow Rate Weekly Average','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dm/dt wastewater weekly av','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/poundperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Wastewater Mass Flow Rate Weekly Average (t/h)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Mass Flow Rate Weekly Average','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dm/dt wastewater weekly av','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/tonneperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Wastewater Mass Flow Rate Weekly Average (sh tn/h)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Mass Flow Rate Weekly Average','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dm/dt wastewater weekly av','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/tonperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Wastewater Mass Flow Rate Monthly Average (kg/s)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Mass Flow Rate Monthly Average','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dm/dt wastewater monthly av','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/kgpersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Wastewater Mass Flow Rate Monthly Average (kg/h)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Mass Flow Rate Monthly Average','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dm/dt wastewater monthly av','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/kgperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Wastewater Mass Flow Rate Monthly Average (lb av/h)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Mass Flow Rate Monthly Average','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dm/dt wastewater monthly av','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/poundperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Wastewater Mass Flow Rate Monthly Average (t/h)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Mass Flow Rate Monthly Average','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dm/dt wastewater monthly av','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/tonneperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Wastewater Mass Flow Rate Monthly Average (sh tn/h)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Mass Flow Rate Monthly Average','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dm/dt wastewater monthly av','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/tonperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Wastewater Mass Flow Rate Max (kg/s)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Mass Flow Rate Max','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dm/dt wastewater max','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/kgpersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Wastewater Mass Flow Rate Min (kg/s)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Mass Flow Rate Min','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dm/dt wastewater min','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/kgpersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Wastewater Mass Flow Rate Max (kg/h)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Mass Flow Rate Max','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dm/dt wastewater max','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/kgperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Wastewater Mass Flow Rate Min (kg/h)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Mass Flow Rate Min','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dm/dt wastewater min','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/kgperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Wastewater Mass Flow Rate Max (t/h)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Mass Flow Rate Max','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dm/dt wastewater max','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/tonneperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Wastewater Mass Flow Rate Min (t/h)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Mass Flow Rate Min','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dm/dt wastewater min','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/tonneperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Wastewater Mass Flow Rate Max (lb av/h)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Mass Flow Rate Max','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dm/dt wastewater max','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/poundperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Wastewater Mass Flow Rate Min (lb av/h)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Mass Flow Rate Min','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dm/dt wastewater min','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/poundperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Wastewater Mass Flow Rate Max (sh tn/h)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Mass Flow Rate Max','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dm/dt wastewater max','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/tonperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Wastewater Mass Flow Rate Min (sh tn/h)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Mass Flow Rate Min','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dm/dt wastewater min','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/tonperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Volume (m%5E3)' 
EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N'Water Volume This Interval (m%5E3)', 'M'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V water','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeter','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Volume (L)'  
EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N'Water Volume This Interval (L)', 'M'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V water','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/litre','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Volume (hL)' 
EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N'Water Volume This Interval (hL)', 'M'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V water','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/hecto','Q' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/litre','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Volume (cf)' 
EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N'Water Volume This Interval (cf)', 'M'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V water','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfoot','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Volume (Ccf)' 
EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N'Water Volume This Interval (Ccf)', 'M'     
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V water','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/hecta','Q' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfoot','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Volume (Mcf)'    
EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N'Water Volume This Interval (Mcf)', 'M'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V water','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfoot','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Volume (MMcf)'  
EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N'Water Volume This Interval (MMcf)', 'M'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V water','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfoot','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Volume (gal)'    
EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N'Water Volume This Interval (gal)', 'M'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V water','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/gallon','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Volume Previous Day Total (m%5E3)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Previous Day Total','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V water prev day','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeter','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Volume Previous Day Total (L)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Previous Day Total','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V water prev day','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/litre','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Volume Previous Day Total (hL)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Previous Day Total','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V water prev day','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/hecto','Q' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/litre','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Volume Previous Day Total (cf)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Previous Day Total','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V water prev day','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfoot','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Volume Previous Day Total (Ccf)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Previous Day Total','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V water prev day','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/hecta','Q' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfoot','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Volume Previous Day Total (Mcf)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Previous Day Total','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V water prev day','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfoot','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Volume Previous Day Total (MMcf)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Previous Day Total','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V water prev day','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfoot','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Volume Previous Day Total (gal)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Previous Day Total','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V water prev day','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/gallon','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Volume Current Day Total (m%5E3)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Current Day Total','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V water current day','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeter','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Volume Current Day Total (L)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Current Day Total','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V water current day','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/litre','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Volume Current Day Total (hL)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Current Day Total','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V water current day','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/hecto','Q' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/litre','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Volume Current Day Total (cf)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Current Day Total','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V water current day','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfoot','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Volume Current Day Total (Ccf)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Current Day Total','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V water current day','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/hecta','Q' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfoot','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Volume Current Day Total (Mcf)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Current Day Total','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V water current day','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfoot','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Volume Current Day Total (MMcf)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Current Day Total','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V water current day','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfoot','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Volume Current Day Total (gal)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Current Day Total','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V water current day','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/gallon','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate (m%5E3/s)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt  water','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterpersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate (m%5E3/min)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt  water','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterpermin','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate (m%5E3/h)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt  water','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate (gal/s)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt  water','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/gallonpersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate (gal/min)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt  water','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/gallonpermin','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate (gal/h)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt  water','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/gallonperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate (cf/s)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt  water','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootpersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate (cf/min)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt  water','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootpermin','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate (cf/h)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt  water','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate (L/s)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt  water','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/litrepersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate (L/min)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt  water','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/litrepermin','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate (L/h)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt  water','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/litreperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Hourly Average (m%5E3/s)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Hourly Average','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water hourly av','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterpersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Hourly Average (m%5E3/min)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Hourly Average','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water hourly av','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterpermin','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Hourly Average (m%5E3/h)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Hourly Average','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water hourly av','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Hourly Average (gal/s)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Hourly Average','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water hourly av','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/gallonpersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Hourly Average (gal/min)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Hourly Average','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water hourly av','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/gallonpermin','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Hourly Average (gal/h)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Hourly Average','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water hourly av','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/gallonperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Hourly Average (cf/s)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Hourly Average','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water hourly av','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootpersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Hourly Average (cf/min)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Hourly Average','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water hourly av','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootpermin','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Hourly Average (cf/h)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Hourly Average','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water hourly av','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Hourly Average (L/s)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Hourly Average','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water hourly av','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/litrepersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Hourly Average (L/min)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Hourly Average','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water hourly av','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/litrepermin','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Hourly Average (L/h)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Hourly Average','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water hourly av','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/litreperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Daily Average (m%5E3/s)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Daily Average','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt  water daily av','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterpersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Daily Average (m%5E3/min)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Daily Average','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt  water daily av','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterpermin','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Daily Average (m%5E3/h)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Daily Average','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt  water daily av','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Daily Average (gal/s)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Daily Average','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt  water daily av','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/gallonpersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Daily Average (gal/min)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Daily Average','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt  water daily av','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/gallonpermin','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Daily Average (gal/h)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Daily Average','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt  water daily av','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/gallonperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Daily Average (cf/s)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Daily Average','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt  water daily av','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootpersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Daily Average (cf/min)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Daily Average','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt  water daily av','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootpermin','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Daily Average (cf/h)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Daily Average','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt  water daily av','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Daily Average (L/s)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Daily Average','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt  water daily av','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/litrepersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Daily Average (L/min)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Daily Average','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt  water daily av','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/litrepermin','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Daily Average (L/h)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Daily Average','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt  water daily av','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/litreperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Weekly Average (m%5E3/s)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Weekly Average','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water weekly av','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterpersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Weekly Average (m%5E3/min)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Weekly Average','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water weekly av','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterpermin','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Weekly Average (m%5E3/h)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Weekly Average','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water weekly av','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Weekly Average (gal/s)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Weekly Average','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water weekly av','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/gallonpersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Weekly Average (gal/min)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Weekly Average','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water weekly av','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/gallonpermin','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Weekly Average (gal/h)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Weekly Average','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water weekly av','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/gallonperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Weekly Average (cf/s)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Weekly Average','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water weekly av','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootpersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Weekly Average (cf/min)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Weekly Average','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water weekly av','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootpermin','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Weekly Average (cf/h)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Weekly Average','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water weekly av','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Weekly Average (L/s)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Weekly Average','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water weekly av','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/litrepersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Weekly Average (L/min)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Weekly Average','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water weekly av','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/litrepermin','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Weekly Average (L/h)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Weekly Average','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water weekly av','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/litreperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Monthly Average (m%5E3/s)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Monthly Average','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water monthly av','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterpersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Monthly Average (m%5E3/min)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Monthly Average','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water monthly av','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterpermin','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Monthly Average (m%5E3/h)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Monthly Average','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water monthly av','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Monthly Average (gal/s)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Monthly Average','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water monthly av','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/gallonpersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Monthly Average (gal/min)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Monthly Average','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water monthly av','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/gallonpermin','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Monthly Average (gal/h)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Monthly Average','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water monthly av','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/gallonperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Monthly Average (cf/s)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Monthly Average','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water monthly av','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootpersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Monthly Average (cf/min)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Monthly Average','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water monthly av','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootpermin','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Monthly Average (cf/h)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Monthly Average','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water monthly av','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Monthly Average (L/s)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Monthly Average','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water monthly av','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/litrepersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Monthly Average (L/min)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Monthly Average','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water monthly av','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/litrepermin','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Monthly Average (L/h)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Monthly Average','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water monthly av','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/litreperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Max (m%5E3/s)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Max','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water max','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterpersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Min (m%5E3/s)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Min','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt  water min','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterpersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Max (m%5E3/min)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Max','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water max','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterpermin','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Min (m%5E3/min)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Min','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt  water min','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterpermin','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Max (m%5E3/h)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Max','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water max','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Min (m%5E3/h)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Min','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt  water min','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Max (L/s)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Max','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water max','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/litrepersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Min (L/s)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Min','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt  water min','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/litrepersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Max (L/min)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Max','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water max','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/litrepermin','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Min (L/min)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Min','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt  water min','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/litrepermin','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Max (L/h)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Max','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water max','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/litreperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Min (L/h)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Min','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt  water min','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/litreperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Max (gal/s)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Max','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water max','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/gallonpersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Min (gal/s)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Min','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt  water min','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/gallonpersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Max (gal/min)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Max','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water max','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/gallonpermin','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Min (gal/min)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Min','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt  water min','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/gallonpermin','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Max (gal/h)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Max','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water max','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/gallonperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Min (gal/h)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Min','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt  water min','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/gallonperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Max (cf/s)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Max','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water max','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootpersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Min (cf/s)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Min','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt  water min','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootpersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Max (cf/min)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Max','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water max','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootpermin','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Min (cf/min)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Min','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt  water min','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootpermin','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Max (cf/h)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Max','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water max','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Min (cf/h)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Min','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt  water min','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Heat Flow Rate Hourly Average (MJ/s)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Heat Flow Rate Hourly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt water hourly av','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joulepersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Heat Flow Rate Hourly Average (J/s)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Heat Flow Rate Hourly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt water hourly av','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joulepersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Heat Flow Rate Hourly Average (kJ/s)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Heat Flow Rate Hourly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt water hourly av','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joulepersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Heat Flow Rate Hourly Average (BTU 59/h)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Heat Flow Rate Hourly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt water hourly av','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59perhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Heat Flow Rate Hourly Average (MBTU 59/h)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Heat Flow Rate Hourly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt water hourly av','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59perhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Heat Flow Rate Hourly Average (MMBTU 59/h)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Heat Flow Rate Hourly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt water hourly av','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59perhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Heat Flow Rate Hourly Average (BTU ISO/h)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Heat Flow Rate Hourly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt water hourly av','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuisoperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Heat Flow Rate Hourly Average (MBTU ISO/h)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Heat Flow Rate Hourly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt water hourly av','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuisoperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Heat Flow Rate Hourly Average (MMBTU ISO/h)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Heat Flow Rate Hourly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt water hourly av','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuisoperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Heat Flow Rate Daily Average (MJ/s)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Heat Flow Rate Daily Average','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt water daily av','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joulepersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Heat Flow Rate Daily Average (J/s)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Heat Flow Rate Daily Average','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt water daily av','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joulepersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Heat Flow Rate Daily Average (kJ/s)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Heat Flow Rate Daily Average','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt water daily av','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joulepersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Heat Flow Rate Daily Average (BTU 59/h)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Heat Flow Rate Daily Average','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt water daily av','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59perhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Heat Flow Rate Daily Average (MBTU 59/h)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Heat Flow Rate Daily Average','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt water daily av','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59perhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Heat Flow Rate Daily Average (MMBTU 59/h)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Heat Flow Rate Daily Average','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt water daily av','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59perhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Heat Flow Rate Daily Average (BTU ISO/h)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Heat Flow Rate Daily Average','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt water daily av','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuisoperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Heat Flow Rate Daily Average (MBTU ISO/h)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Heat Flow Rate Daily Average','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt water daily av','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuisoperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Heat Flow Rate Daily Average (MMBTU ISO/h)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Heat Flow Rate Daily Average','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt water daily av','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuisoperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Heat Flow Rate Weekly Average (MJ/s)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Heat Flow Rate Weekly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt water weekly av','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joulepersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Heat Flow Rate Weekly Average (J/s)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Heat Flow Rate Weekly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt water weekly av','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joulepersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Heat Flow Rate Weekly Average (kJ/s)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Heat Flow Rate Weekly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt water weekly av','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joulepersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Heat Flow Rate Weekly Average (BTU 59/h)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Heat Flow Rate Weekly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt water weekly av','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59perhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Heat Flow Rate Weekly Average (MBTU 59/h)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Heat Flow Rate Weekly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt water weekly av','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59perhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Heat Flow Rate Weekly Average (MMBTU 59/h)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Heat Flow Rate Weekly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt water weekly av','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59perhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Heat Flow Rate Weekly Average (BTU ISO/h)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Heat Flow Rate Weekly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt water weekly av','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuisoperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Heat Flow Rate Weekly Average (MBTU ISO/h)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Heat Flow Rate Weekly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt water weekly av','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuisoperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Heat Flow Rate Weekly Average (MMBTU ISO/h)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Heat Flow Rate Weekly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt water weekly av','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuisoperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Heat Flow Rate Monthly Average (MJ/s)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Heat Flow Rate Monthly Average','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt water monthly av','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joulepersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Heat Flow Rate Monthly Average (J/s)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Heat Flow Rate Monthly Average','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt water monthly av','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joulepersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Heat Flow Rate Monthly Average (kJ/s)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Heat Flow Rate Monthly Average','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt water monthly av','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joulepersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Heat Flow Rate Monthly Average (BTU 59/h)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Heat Flow Rate Monthly Average','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt water monthly av','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59perhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Heat Flow Rate Monthly Average (MBTU 59/h)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Heat Flow Rate Monthly Average','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt water monthly av','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59perhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Heat Flow Rate Monthly Average (MMBTU 59/h)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Heat Flow Rate Monthly Average','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt water monthly av','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59perhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Heat Flow Rate Monthly Average (BTU ISO/h)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Heat Flow Rate Monthly Average','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt water monthly av','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuisoperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Heat Flow Rate Monthly Average (MBTU ISO/h)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Heat Flow Rate Monthly Average','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt water monthly av','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuisoperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Heat Flow Rate Monthly Average (MMBTU ISO/h)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Heat Flow Rate Monthly Average','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt water monthly av','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuisoperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Heat Flow Rate Max (MJ/s)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Heat Flow Rate Max','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt water max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joulepersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Heat Flow Rate Min (MJ/s)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Heat Flow Rate Min','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt water min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joulepersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Heat Flow Rate Max (J/s)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Heat Flow Rate Max','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt water max','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joulepersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Heat Flow Rate Min (J/s)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Heat Flow Rate Min','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt water min','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joulepersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Heat Flow Rate Max (kJ/s)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Heat Flow Rate Max','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt water max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joulepersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Heat Flow Rate Min (kJ/s)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Heat Flow Rate Min','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt water min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joulepersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Heat Flow Rate Max (BTU 59/h)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Heat Flow Rate Max','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt water max','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59perhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Heat Flow Rate Min (BTU 59/h)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Heat Flow Rate Min','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt water min','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59perhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Heat Flow Rate Max (MBTU 59/h)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Heat Flow Rate Max','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt water max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59perhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Heat Flow Rate Min (MBTU 59/h)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Heat Flow Rate Min','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt water min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59perhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Heat Flow Rate Max (MMBTU 59/h)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Heat Flow Rate Max','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt water max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59perhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Heat Flow Rate Min (MMBTU 59/h)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Heat Flow Rate Min','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt water min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59perhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Heat Flow Rate Max (BTU ISO/h)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Heat Flow Rate Max','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt water max','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuisoperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Heat Flow Rate Min (BTU ISO/h)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Heat Flow Rate Min','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt water min','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuisoperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Heat Flow Rate Max (MBTU ISO/h)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Heat Flow Rate Max','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt water max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuisoperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Heat Flow Rate Min (MBTU ISO/h)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Heat Flow Rate Min','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt water min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuisoperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Heat Flow Rate Max (MMBTU ISO/h)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Heat Flow Rate Max','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt water max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuisoperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Heat Flow Rate Min (MMBTU ISO/h)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Heat Flow Rate Min','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt water min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuisoperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Temperature Supply (deg C)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Temperature Supply','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'? water supply','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/degreecelsius','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Temperature Supply (deg F)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Temperature Supply','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'? water supply','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/degreefahrenheit','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Temperature Supply Hourly Average (deg C)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Temperature Supply Hourly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'? water supply hourly av','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/degreecelsius','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Temperature Supply Hourly Average (deg F)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Temperature Supply Hourly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'? water supply hourly av','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/degreefahrenheit','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Temperature Supply Daily Average (deg C)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Temperature Supply Daily Average','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'? water supply daily av','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/degreecelsius','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Temperature Supply Daily Average (deg F)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Temperature Supply Daily Average','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'? water supply daily av','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/degreefahrenheit','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Temperature Supply Weekly Average (deg C)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Temperature Supply Weekly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'? water supply weekly av','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/degreecelsius','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Temperature Supply Weekly Average (deg F)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Temperature Supply Weekly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'? water supply weekly av','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/degreefahrenheit','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Temperature Supply Monthly Average (deg C)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Temperature Supply Monthly Average','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'? water supply monthly av','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/degreecelsius','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Temperature Supply Monthly Average (deg F)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Temperature Supply Monthly Average','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'? water supply monthly av','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/degreefahrenheit','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Temperature Supply Max (deg C)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Temperature Supply Max','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'? water supply max','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/degreecelsius','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Temperature Supply Min (deg C)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Temperature Supply Min','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'? water supply min','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/degreecelsius','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Temperature Supply Max (deg F)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Temperature Supply Max','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'? water supply max','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/degreefahrenheit','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Temperature Supply Min (deg F)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Temperature Supply Min','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'? water supply min','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/degreefahrenheit','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Temperature Return (deg C)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Temperature Return','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'? water return','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/degreecelsius','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Temperature Return (deg F)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Temperature Return','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'? water return','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/degreefahrenheit','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Temperature Return Hourly Average (deg C)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Temperature Return Hourly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'? water return hourly av','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/degreecelsius','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Temperature Return Hourly Average (deg F)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Temperature Return Hourly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'? water return hourly av','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/degreefahrenheit','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Temperature Return Daily Average (deg C)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Temperature Return Daily Average','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'? water return daily av','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/degreecelsius','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Temperature Return Daily Average (deg F)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Temperature Return Daily Average','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'? water return daily av','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/degreefahrenheit','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Temperature Return Weekly Average (deg C)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Temperature Return Weekly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'? water return weekly av','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/degreecelsius','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Temperature Return Weekly Average (deg F)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Temperature Return Weekly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'? water return weekly av','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/degreefahrenheit','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Temperature Return Monthly Average (deg C)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Temperature Return Monthly Average','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'? water return monthly av','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/degreecelsius','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Temperature Return Monthly Average (deg F)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Temperature Return Monthly Average','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'? water return monthly av','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/degreefahrenheit','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Temperature Return Max (deg C)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Temperature Return Max','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'? water return max','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/degreecelsius','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Temperature Return Min (deg C)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Temperature Return Min','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'? water return min','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/degreecelsius','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Temperature Return Max (deg F)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Temperature Return Max','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'? water return max','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/degreefahrenheit','Q'
---------------------------------------------------------------- 
SET @measurement = N'Water Temperature Return Min (deg F)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Temperature Return Min','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'? water return min','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/degreefahrenheit','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Pressure (kPa)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Pressure','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p air','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/pascal','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Pressure (Pa)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Pressure','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p air','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/pascal','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Pressure (bar)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Pressure','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p air','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/bar','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Pressure (in Hg)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Pressure','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p air','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/inhg','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Pressure (N/m%5E2)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Pressure','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p air','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/npersquaremeter','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Pressure Hourly Average (kPa)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Pressure Hourly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p air hourly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/pascal','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Pressure Hourly Average (Pa)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Pressure Hourly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p air hourly av','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/pascal','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Pressure Hourly Average (psi)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Pressure Hourly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p air hourly av','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/psi','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Pressure Hourly Average (bar)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Pressure Hourly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p air hourly av','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/bar','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Pressure Hourly Average (in Hg)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Pressure Hourly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p air hourly av','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/inhg','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Pressure Hourly Average (N/m%5E2)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Pressure Hourly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p air hourly av','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/npersquaremeter','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Pressure Daily Average (kPa)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Pressure Daily Average','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p air daily av','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/pascal','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Pressure Daily Average (Pa)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Pressure Daily Average','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p air daily av','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/pascal','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Pressure Daily Average (psi)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Pressure Daily Average','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p air daily av','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/psi','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Pressure Daily Average (bar)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Pressure Daily Average','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p air daily av','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/bar','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Pressure Daily Average (in Hg)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Pressure Daily Average','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p air daily av','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/inhg','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Pressure Daily Average (N/m%5E2)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Pressure Daily Average','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p air daily av','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/npersquaremeter','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Pressure Weekly Average (kPa)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Pressure Weekly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p air weekly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/pascal','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Pressure Weekly Average (Pa)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Pressure Weekly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p air weekly av','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/pascal','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Pressure Weekly Average (psi)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Pressure Weekly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p air weekly av','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/psi','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Pressure Weekly Average (bar)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Pressure Weekly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p air weekly av','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/bar','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Pressure Weekly Average (in Hg)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Pressure Weekly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p air weekly av','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/inhg','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Pressure Weekly Average (N/m%5E2)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Pressure Weekly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p air weekly av','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/npersquaremeter','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Pressure Monthly Average (kPa)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Pressure Monthly Average','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p air monthly av','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/pascal','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Pressure Monthly Average (Pa)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Pressure Monthly Average','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p air monthly av','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/pascal','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Pressure Monthly Average (psi)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Pressure Monthly Average','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p air monthly av','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/psi','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Pressure Monthly Average (bar)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Pressure Monthly Average','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p air monthly av','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/bar','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Pressure Monthly Average (in Hg)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Pressure Monthly Average','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p air monthly av','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/inhg','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Pressure Monthly Average (N/m%5E2)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Pressure Monthly Average','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p air monthly av','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/npersquaremeter','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Pressure Max (kPa)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Pressure Max','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p air max','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/pascal','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Pressure Min (kPa)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Pressure Min','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p air min','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/pascal','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Pressure Max (Pa)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Pressure Max','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p air max','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/pascal','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Pressure Min (Pa)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Pressure Min','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p air min','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/pascal','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Pressure Max (bar)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Pressure Max','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p air max','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/bar','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Pressure Min (bar)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Pressure Min','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p air min','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/bar','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Pressure Max (N/m%5E2)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Pressure Max','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p air max','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/npersquaremeter','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Pressure Min (N/m%5E2)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Pressure Min','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p air min','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/npersquaremeter','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Pressure Max (psi)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Pressure Max','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p air max','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/psi','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Pressure Min (psi)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Pressure Min','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p air min','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/psi','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Pressure Max (in Hg)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Pressure Max','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p air max','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/inhg','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Pressure Min (in Hg)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Pressure Min','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p air min','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/inhg','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Volume Flow Rate (m%5E3/s)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Volume Flow Rate','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt  air','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterpersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Volume Flow Rate (m%5E3/min)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Volume Flow Rate','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt  air','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterpermin','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Volume Flow Rate (m%5E3/h)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Volume Flow Rate','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt  air','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Volume Flow Rate (cf/s)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Volume Flow Rate','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt  air','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootpersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Volume Flow Rate (cf/min)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Volume Flow Rate','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt  air','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootpermin','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Volume Flow Rate (cf/h)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Volume Flow Rate','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt  air','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Volume Flow Rate (scf/s)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Volume Flow Rate','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt  air','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/standardcubicfootpersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Volume Flow Rate (scf/min)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Volume Flow Rate','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt  air','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/standardcubicfootpermin','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Volume Flow Rate (scf/h)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Volume Flow Rate','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt  air','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/standardcubicfootperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Volume Flow Rate Hourly Average (m%5E3/s)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Volume Flow Rate Hourly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt air hourly av','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterpersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Volume Flow Rate Hourly Average (m%5E3/min)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Volume Flow Rate Hourly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt air hourly av','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterpermin','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Volume Flow Rate Hourly Average (m%5E3/h)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Volume Flow Rate Hourly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt air hourly av','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Volume Flow Rate Hourly Average (cf/s)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Volume Flow Rate Hourly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt air hourly av','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootpersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Volume Flow Rate Hourly Average (cf/min)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Volume Flow Rate Hourly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt air hourly av','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootpermin','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Volume Flow Rate Hourly Average (cf/h)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Volume Flow Rate Hourly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt air hourly av','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Volume Flow Rate Hourly Average (scf/s)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Volume Flow Rate Hourly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt air hourly av','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/standardcubicfootpersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Volume Flow Rate Hourly Average (scf/min)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Volume Flow Rate Hourly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt air hourly av','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/standardcubicfootpermin','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Volume Flow Rate Hourly Average (scf/h)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Volume Flow Rate Hourly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt air hourly av','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/standardcubicfootperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Volume Flow Rate Daily Average (m%5E3/s)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Volume Flow Rate Daily Average','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt  air daily av','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterpersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Volume Flow Rate Daily Average (m%5E3/min)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Volume Flow Rate Daily Average','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt  air daily av','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterpermin','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Volume Flow Rate Daily Average (m%5E3/h)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Volume Flow Rate Daily Average','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt  air daily av','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Volume Flow Rate Daily Average (cf/s)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Volume Flow Rate Daily Average','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt  air daily av','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootpersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Volume Flow Rate Daily Average (cf/min)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Volume Flow Rate Daily Average','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt  air daily av','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootpermin','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Volume Flow Rate Daily Average (cf/h)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Volume Flow Rate Daily Average','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt  air daily av','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Volume Flow Rate Daily Average (scf/s)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Volume Flow Rate Daily Average','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt  air daily av','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/standardcubicfootpersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Volume Flow Rate Daily Average (scf/min)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Volume Flow Rate Daily Average','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt  air daily av','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/standardcubicfootpermin','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Volume Flow Rate Daily Average (scf/h)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Volume Flow Rate Daily Average','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt  air daily av','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/standardcubicfootperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Volume Flow Rate Weekly Average (m%5E3/s)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Volume Flow Rate Weekly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt air weekly av','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterpersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Volume Flow Rate Weekly Average (m%5E3/min)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Volume Flow Rate Weekly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt air weekly av','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterpermin','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Volume Flow Rate Weekly Average (m%5E3/h)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Volume Flow Rate Weekly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt air weekly av','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Volume Flow Rate Weekly Average (cf/s)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Volume Flow Rate Weekly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt air weekly av','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootpersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Volume Flow Rate Weekly Average (cf/min)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Volume Flow Rate Weekly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt air weekly av','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootpermin','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Volume Flow Rate Weekly Average (cf/h)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Volume Flow Rate Weekly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt air weekly av','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Volume Flow Rate Weekly Average (scf/s)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Volume Flow Rate Weekly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt air weekly av','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/standardcubicfootpersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Volume Flow Rate Weekly Average (scf/min)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Volume Flow Rate Weekly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt air weekly av','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/standardcubicfootpermin','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Volume Flow Rate Weekly Average (scf/h)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Volume Flow Rate Weekly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt air weekly av','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/standardcubicfootperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Volume Flow Rate Monthly Average (m%5E3/s)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Volume Flow Rate Monthly Average','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt air monthly av','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterpersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Volume Flow Rate Monthly Average (m%5E3/min)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Volume Flow Rate Monthly Average','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt air monthly av','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterpermin','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Volume Flow Rate Monthly Average (m%5E3/h)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Volume Flow Rate Monthly Average','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt air monthly av','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Volume Flow Rate Monthly Average (cf/s)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Volume Flow Rate Monthly Average','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt air monthly av','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootpersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Volume Flow Rate Monthly Average (cf/min)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Volume Flow Rate Monthly Average','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt air monthly av','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootpermin','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Volume Flow Rate Monthly Average (cf/h)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Volume Flow Rate Monthly Average','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt air monthly av','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Volume Flow Rate Monthly Average (scf/s)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Volume Flow Rate Monthly Average','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt air monthly av','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/standardcubicfootpersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Volume Flow Rate Monthly Average (scf/min)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Volume Flow Rate Monthly Average','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt air monthly av','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/standardcubicfootpermin','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Volume Flow Rate Monthly Average (scf/h)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Volume Flow Rate Monthly Average','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt air monthly av','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/standardcubicfootperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Volume Flow Rate Max (m%5E3/s)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Volume Flow Rate Max','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt air max','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterpersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Volume Flow Rate Min (m%5E3/s)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Volume Flow Rate Min','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt  air min','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterpersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Volume Flow Rate Max (m%5E3/min)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Volume Flow Rate Max','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt air max','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterpermin','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Volume Flow Rate Min (m%5E3/min)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Volume Flow Rate Min','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt  air min','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterpermin','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Volume Flow Rate Max (m%5E3/h)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Volume Flow Rate Max','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt air max','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Volume Flow Rate Min (m%5E3/h)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Volume Flow Rate Min','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt  air min','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Volume Flow Rate Max (cf/s)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Volume Flow Rate Max','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt air max','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootpersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Volume Flow Rate Min (cf/s)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Volume Flow Rate Min','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt  air min','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootpersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Volume Flow Rate Max (cf/min)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Volume Flow Rate Max','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt air max','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootpermin','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Volume Flow Rate Min (cf/min)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Volume Flow Rate Min','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt  air min','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootpermin','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Volume Flow Rate Max (cf/h)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Volume Flow Rate Max','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt air max','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Volume Flow Rate Min (cf/h)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Volume Flow Rate Min','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt  air min','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Volume Flow Rate Max (scf/s)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Volume Flow Rate Max','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt air max','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/standardcubicfootpersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Volume Flow Rate Min (scf/s)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Volume Flow Rate Min','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt  air min','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/standardcubicfootpersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Volume Flow Rate Max (scf/min)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Volume Flow Rate Max','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt air max','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/standardcubicfootpermin','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Volume Flow Rate Min (scf/min)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Volume Flow Rate Min','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt  air min','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/standardcubicfootpermin','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Volume Flow Rate Max (scf/h)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Volume Flow Rate Max','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt air max','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/standardcubicfootperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Volume Flow Rate Min (scf/h)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Volume Flow Rate Min','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt  air min','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/standardcubicfootperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Temperature (deg C)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Temperature','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'? air','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/degreecelsius','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Temperature (deg F)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Temperature','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'? air','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/degreefahrenheit','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Temperature Hourly Average (deg C)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Temperature Hourly Average','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'? air hourly av','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/degreecelsius','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Temperature Hourly Average (deg F)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Temperature Hourly Average','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'? air hourly av','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/degreefahrenheit','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Temperature Daily Average (deg C)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Temperature Daily Average','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'? air daily av','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/degreecelsius','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Temperature Daily Average (deg F)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Temperature Daily Average','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'? air daily av','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/degreefahrenheit','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Temperature Weekly Average (deg C)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Temperature Weekly Average','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'? air weekly av','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/degreecelsius','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Temperature Weekly Average (deg F)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Temperature Weekly Average','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'? air weekly av','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/degreefahrenheit','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Temperature Monthly Average (deg C)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Temperature Monthly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'? air monthly av','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/degreecelsius','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Temperature Monthly Average (deg F)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Temperature Monthly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'? air monthly av','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/degreefahrenheit','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Temperature Max (deg C)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Temperature Max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'? air max','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/degreecelsius','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Temperature Min (deg C)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Temperature Min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'? air min','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/degreecelsius','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Temperature Max (deg F)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Temperature Max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'? air max','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/degreefahrenheit','Q'
---------------------------------------------------------------- 
SET @measurement = N'Air Temperature Min (deg F)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Temperature Min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'? air min','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/degreefahrenheit','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Volume (m%5E3)'  
EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N'Natural Gas Volume This Interval (m%5E3)', 'M'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Volume','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V natgas','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeter','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Volume (cf)' 
EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N'Natural Gas Volume This Interval (cf)', 'M' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Volume','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V natgas','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfoot','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Volume (Ccf)'    
EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N'Natural Gas Volume This Interval (Ccf)', 'M' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Volume','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V natgas','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/hecta','Q' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfoot','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Volume (Mcf)'   
EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N'Natural Gas Volume This Interval (Mcf)', 'M'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Volume','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V natgas','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfoot','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Volume (MMcf)'   
EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N'Natural Gas Volume This Interval (MMcf)', 'M' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Volume','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V natgas','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfoot','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Volume (scf)'    
EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N'Natural Gas Volume This Interval (scf)', 'M' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Volume','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V natgas','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/standardcubicfoot','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Volume (Cscf)'  
EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N'Natural Gas Volume This Interval (Cscf)', 'M'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Volume','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V natgas','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/hecta','Q' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/standardcubicfoot','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Volume (Mscf)'   
EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N'Natural Gas Volume This Interval (Mscf)', 'M' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Volume','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V natgas','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/standardcubicfoot','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Volume (MMscf)'  
EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N'Natural Gas Volume This Interval (MMscf)', 'M' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Volume','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V natgas','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/standardcubicfoot','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Volume Current Day Total (m%5E3)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Volume Current Day Total','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V natgas current day','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeter','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Volume Current Day Total (cf)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Volume Current Day Total','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V natgas current day','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfoot','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Volume Current Day Total (Ccf)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Volume Current Day Total','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V natgas current day','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/hecta','Q' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfoot','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Volume Current Day Total (Mcf)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Volume Current Day Total','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V natgas current day','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfoot','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Volume Current Day Total (MMcf)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Volume Current Day Total','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V natgas current day','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfoot','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Volume Current Day Total (scf)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Volume Current Day Total','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V natgas current day','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/standardcubicfoot','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Volume Current Day Total (Cscf)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Volume Current Day Total','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V natgas current day','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/hecta','Q' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/standardcubicfoot','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Volume Current Day Total (Mscf)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Volume Current Day Total','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V natgas current day','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/standardcubicfoot','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Volume Current Day Total (MMscf)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Volume Current Day Total','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V natgas current day','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/standardcubicfoot','Q'
---------------------------------------------------------------- 

SET @measurement = N'Natural Gas Energy Flow (MJ)'  
EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N'Natural Gas Energy Flow This Interval (MJ)', 'M'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Energy Flow','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q natgas','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joule','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Energy Flow (J)'   
EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N'Natural Gas Energy Flow This Interval (J)', 'M' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Energy Flow','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q natgas','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joule','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Energy Flow (kJ)'  
EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N'Natural Gas Energy Flow This Interval (kJ)', 'M' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Energy Flow','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q natgas','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joule','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Energy Flow (GJ)' 
EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N'Natural Gas Energy Flow This Interval (GJ)', 'M'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Energy Flow','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q natgas','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/giga','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joule','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Energy Flow (BTU 59)'    
EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N'Natural Gas Energy Flow This Interval (BTU 59)', 'M' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Energy Flow','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q natgas','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Energy Flow (MBTU 59)'   
EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N'Natural Gas Energy Flow This Interval (MBTU 59)', 'M' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Energy Flow','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q natgas','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Energy Flow (MMBTU 59)'  
EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N'Natural Gas Energy Flow This Interval (MMBTU 59)', 'M' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Energy Flow','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q natgas','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Energy Flow (BTU ISO)'  
 
EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N'Natural Gas Energy Flow This Interval (BTU ISO)', 'M' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Energy Flow','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q natgas','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuiso','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Energy Flow (MBTU ISO)' 
EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N'Natural Gas Energy Flow This Interval (MBTU ISO)', 'M'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Energy Flow','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q natgas','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuiso','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Energy Flow (MMBTU ISO)' 
EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N'Natural Gas Energy Flow This Interval (MMBTU ISO)', 'M' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Energy Flow','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q natgas','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuiso','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Energy Flow (thm)' 
EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N'Natural Gas Energy Flow This Interval (thm)', 'M' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Energy Flow','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q natgas','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/thm','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Energy Flow Previous Day Total (MJ)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Energy Flow Previous Day Total','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q natgas prev day','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joule','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Energy Flow Previous Day Total (J)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Energy Flow Previous Day Total','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q natgas prev day','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joule','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Energy Flow Previous Day Total (kJ)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Energy Flow Previous Day Total','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q natgas prev day','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joule','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Energy Flow Previous Day Total (GJ)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Energy Flow Previous Day Total','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q natgas prev day','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/giga','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joule','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Energy Flow Previous Day Total (BTU 59)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Energy Flow Previous Day Total','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q natgas prev day','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Energy Flow Previous Day Total (MBTU 59)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Energy Flow Previous Day Total','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q natgas prev day','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Energy Flow Previous Day Total (MMBTU 59)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Energy Flow Previous Day Total','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q natgas prev day','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Energy Flow Previous Day Total (BTU ISO)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Energy Flow Previous Day Total','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q natgas prev day','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuiso','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Energy Flow Previous Day Total (MBTU ISO)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Energy Flow Previous Day Total','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q natgas prev day','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuiso','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Energy Flow Previous Day Total (MMBTU ISO)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Energy Flow Previous Day Total','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q natgas prev day','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuiso','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Energy Flow Previous Day Total (thm)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Energy Flow Previous Day Total','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q natgas prev day','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/thm','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Energy Flow Current Day Total (MJ)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Energy Flow Current Day Total','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q natgas current day','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joule','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Energy Flow Current Day Total (J)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Energy Flow Current Day Total','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q natgas current day','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joule','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Energy Flow Current Day Total (kJ)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Energy Flow Current Day Total','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q natgas current day','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joule','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Energy Flow Current Day Total (GJ)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Energy Flow Current Day Total','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q natgas current day','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/giga','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joule','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Energy Flow Current Day Total (BTU 59)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Energy Flow Current Day Total','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q natgas current day','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Energy Flow Current Day Total (MBTU 59)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Energy Flow Current Day Total','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q natgas current day','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Energy Flow Current Day Total (MMBTU 59)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Energy Flow Current Day Total','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q natgas current day','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Energy Flow Current Day Total (BTU ISO)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Energy Flow Current Day Total','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q natgas current day','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuiso','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Energy Flow Current Day Total (MBTU ISO)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Energy Flow Current Day Total','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q natgas current day','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuiso','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Energy Flow Current Day Total (MMBTU ISO)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Energy Flow Current Day Total','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q natgas current day','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuiso','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Energy Flow Current Day Total (thm)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Energy Flow Current Day Total','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q natgas current day','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/thm','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Volume Flow Rate (m%5E3/s)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Volume Flow Rate','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt natgas','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterpersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Volume Flow Rate (m%5E3/min)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Volume Flow Rate','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt natgas','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterpermin','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Volume Flow Rate (m%5E3/h)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Volume Flow Rate','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt natgas','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Volume Flow Rate (cf/s)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Volume Flow Rate','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt natgas','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootpersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Volume Flow Rate (cf/min)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Volume Flow Rate','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt natgas','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootpermin','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Volume Flow Rate (cf/h)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Volume Flow Rate','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt natgas','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Volume Flow Rate (scf/s)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Volume Flow Rate','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt natgas','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/standardcubicfootpersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Volume Flow Rate (scf/min)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Volume Flow Rate','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt natgas','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/standardcubicfootpermin','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Volume Flow Rate (scf/h)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Volume Flow Rate','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt natgas','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/standardcubicfootperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Volume Flow Rate Hourly Average (m%5E3/s)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Volume Flow Rate Hourly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt natgas hourly av','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterpersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Volume Flow Rate Hourly Average (m%5E3/min)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Volume Flow Rate Hourly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt natgas hourly av','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterpermin','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Volume Flow Rate Hourly Average (m%5E3/h)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Volume Flow Rate Hourly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt natgas hourly av','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Volume Flow Rate Hourly Average (cf/s)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Volume Flow Rate Hourly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt natgas hourly av','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootpersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Volume Flow Rate Hourly Average (cf/min)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Volume Flow Rate Hourly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt natgas hourly av','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootpermin','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Volume Flow Rate Hourly Average (cf/h)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Volume Flow Rate Hourly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt natgas hourly av','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Volume Flow Rate Hourly Average (scf/s)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Volume Flow Rate Hourly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt natgas hourly av','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/standardcubicfootpersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Volume Flow Rate Hourly Average (scf/min)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Volume Flow Rate Hourly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt natgas hourly av','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/standardcubicfootpermin','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Volume Flow Rate Hourly Average (scf/h)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Volume Flow Rate Hourly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt natgas hourly av','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/standardcubicfootperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Volume Flow Rate Daily Average (m%5E3/s)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Volume Flow Rate Daily Average','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt  natgas daily av','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterpersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Volume Flow Rate Daily Average (m%5E3/min)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Volume Flow Rate Daily Average','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt  natgas daily av','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterpermin','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Volume Flow Rate Daily Average (m%5E3/h)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Volume Flow Rate Daily Average','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt  natgas daily av','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Volume Flow Rate Daily Average (cf/s)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Volume Flow Rate Daily Average','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt  natgas daily av','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootpersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Volume Flow Rate Daily Average (cf/min)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Volume Flow Rate Daily Average','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt  natgas daily av','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootpermin','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Volume Flow Rate Daily Average (cf/h)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Volume Flow Rate Daily Average','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt  natgas daily av','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Volume Flow Rate Daily Average (scf/s)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Volume Flow Rate Daily Average','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt  natgas daily av','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/standardcubicfootpersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Volume Flow Rate Daily Average (scf/min)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Volume Flow Rate Daily Average','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt  natgas daily av','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/standardcubicfootpermin','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Volume Flow Rate Daily Average (scf/h)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Volume Flow Rate Daily Average','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt  natgas daily av','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/standardcubicfootperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Volume Flow Rate Weekly Average (m%5E3/s)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Volume Flow Rate Weekly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt natgas weekly av','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterpersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Volume Flow Rate Weekly Average (m%5E3/min)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Volume Flow Rate Weekly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt natgas weekly av','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterpermin','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Volume Flow Rate Weekly Average (m%5E3/h)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Volume Flow Rate Weekly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt natgas weekly av','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Volume Flow Rate Weekly Average (cf/s)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Volume Flow Rate Weekly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt natgas weekly av','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootpersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Volume Flow Rate Weekly Average (cf/min)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Volume Flow Rate Weekly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt natgas weekly av','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootpermin','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Volume Flow Rate Weekly Average (cf/h)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Volume Flow Rate Weekly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt natgas weekly av','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Volume Flow Rate Weekly Average (scf/s)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Volume Flow Rate Weekly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt natgas weekly av','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/standardcubicfootpersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Volume Flow Rate Weekly Average (scf/min)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Volume Flow Rate Weekly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt natgas weekly av','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/standardcubicfootpermin','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Volume Flow Rate Weekly Average (scf/h)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Volume Flow Rate Weekly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt natgas weekly av','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/standardcubicfootperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Volume Flow Rate Monthly Average (m%5E3/s)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Volume Flow Rate Monthly Average','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt natgas monthly av','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterpersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Volume Flow Rate Monthly Average (m%5E3/min)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Volume Flow Rate Monthly Average','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt natgas monthly av','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterpermin','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Volume Flow Rate Monthly Average (m%5E3/h)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Volume Flow Rate Monthly Average','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt natgas monthly av','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Volume Flow Rate Monthly Average (cf/s)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Volume Flow Rate Monthly Average','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt natgas monthly av','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootpersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Volume Flow Rate Monthly Average (cf/min)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Volume Flow Rate Monthly Average','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt natgas monthly av','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootpermin','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Volume Flow Rate Monthly Average (cf/h)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Volume Flow Rate Monthly Average','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt natgas monthly av','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Volume Flow Rate Monthly Average (scf/s)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Volume Flow Rate Monthly Average','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt natgas monthly av','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/standardcubicfootpersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Volume Flow Rate Monthly Average (scf/min)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Volume Flow Rate Monthly Average','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt natgas monthly av','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/standardcubicfootpermin','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Volume Flow Rate Monthly Average (scf/h)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Volume Flow Rate Monthly Average','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt natgas monthly av','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/standardcubicfootperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Volume Flow Rate Max (m%5E3/s)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Volume Flow Rate Max','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt natgas max','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterpersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Volume Flow Rate Min (m%5E3/s)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Volume Flow Rate Min','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt  natgas min','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterpersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Volume Flow Rate Max (m%5E3/min)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Volume Flow Rate Max','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt natgas max','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterpermin','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Volume Flow Rate Min (m%5E3/min)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Volume Flow Rate Min','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt  natgas min','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterpermin','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Volume Flow Rate Max (m%5E3/h)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Volume Flow Rate Max','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt natgas max','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Volume Flow Rate Min (m%5E3/h)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Volume Flow Rate Min','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt  natgas min','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Volume Flow Rate Max (cf/s)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Volume Flow Rate Max','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt natgas max','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootpersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Volume Flow Rate Min (cf/s)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Volume Flow Rate Min','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt  natgas min','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootpersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Volume Flow Rate Max (cf/min)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Volume Flow Rate Max','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt natgas max','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootpermin','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Volume Flow Rate Min (cf/min)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Volume Flow Rate Min','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt  natgas min','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootpermin','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Volume Flow Rate Max (cf/h)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Volume Flow Rate Max','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt natgas max','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Volume Flow Rate Min (cf/h)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Volume Flow Rate Min','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt  natgas min','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Volume Flow Rate Max (scf/s)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Volume Flow Rate Max','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt natgas max','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/standardcubicfootpersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Volume Flow Rate Min (scf/s)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Volume Flow Rate Min','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt  natgas min','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/standardcubicfootpersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Volume Flow Rate Max (scf/min)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Volume Flow Rate Max','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt natgas max','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/standardcubicfootpermin','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Volume Flow Rate Min (scf/min)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Volume Flow Rate Min','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt  natgas min','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/standardcubicfootpermin','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Volume Flow Rate Max (scf/h)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Volume Flow Rate Max','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt natgas max','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/standardcubicfootperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Volume Flow Rate Min (scf/h)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Volume Flow Rate Min','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt  natgas min','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/standardcubicfootperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Pressure (kPa)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Pressure','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p natgas','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/pascal','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Pressure (Pa)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Pressure','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p natgas','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/pascal','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Pressure (psi)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Pressure','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p natgas','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/psi','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Pressure (bar)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Pressure','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p natgas','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/bar','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Pressure (in Hg)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Pressure','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p natgas','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/inhg','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Pressure (N/m%5E2)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Pressure','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p natgas','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/npersquaremeter','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Pressure Hourly Average (kPa)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Pressure Hourly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p natgas hourly av','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/pascal','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Pressure Hourly Average (Pa)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Pressure Hourly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p natgas hourly av','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/pascal','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Pressure Hourly Average (psi)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Pressure Hourly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p natgas hourly av','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/psi','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Pressure Hourly Average (bar)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Pressure Hourly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p natgas hourly av','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/bar','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Pressure Hourly Average (in Hg)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Pressure Hourly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p natgas hourly av','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/inhg','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Pressure Hourly Average (N/m%5E2)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Pressure Hourly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p natgas hourly av','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/npersquaremeter','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Pressure Daily Average (kPa)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Pressure Daily Average','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p natgas daily av','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/pascal','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Pressure Daily Average (Pa)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Pressure Daily Average','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p natgas daily av','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/pascal','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Pressure Daily Average (psi)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Pressure Daily Average','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p natgas daily av','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/psi','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Pressure Daily Average (bar)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Pressure Daily Average','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p natgas daily av','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/bar','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Pressure Daily Average (in Hg)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Pressure Daily Average','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p natgas daily av','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/inhg','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Pressure Daily Average (N/m%5E2)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Pressure Daily Average','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p natgas daily av','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/npersquaremeter','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Pressure Weekly Average (kPa)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Pressure Weekly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p natgas weekly av','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/pascal','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Pressure Weekly Average (Pa)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Pressure Weekly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p natgas weekly av','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/pascal','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Pressure Weekly Average (psi)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Pressure Weekly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p natgas weekly av','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/psi','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Pressure Weekly Average (bar)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Pressure Weekly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p natgas weekly av','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/bar','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Pressure Weekly Average (in Hg)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Pressure Weekly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p natgas weekly av','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/inhg','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Pressure Weekly Average (N/m%5E2)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Pressure Weekly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p natgas weekly av','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/npersquaremeter','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Pressure Monthly Average (kPa)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Pressure Monthly Average','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p natgas monthly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/pascal','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Pressure Monthly Average (Pa)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Pressure Monthly Average','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p natgas monthly av','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/pascal','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Pressure Monthly Average (psi)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Pressure Monthly Average','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p natgas monthly av','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/psi','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Pressure Monthly Average (bar)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Pressure Monthly Average','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p natgas monthly av','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/bar','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Pressure Monthly Average (in Hg)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Pressure Monthly Average','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p natgas monthly av','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/inhg','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Pressure Monthly Average (N/m%5E2)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Pressure Monthly Average','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p natgas monthly av','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/npersquaremeter','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Pressure Max (kPa)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Pressure Max','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p natgas max','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/pascal','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Pressure Min (kPa)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Pressure Min','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p natgas min','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/pascal','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Pressure Max (Pa)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Pressure Max','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p natgas max','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/pascal','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Pressure Min (Pa)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Pressure Min','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p natgas min','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/pascal','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Pressure Max (bar)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Pressure Max','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p natgas max','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/bar','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Pressure Min (bar)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Pressure Min','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p natgas min','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/bar','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Pressure Max (N/m%5E2)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Pressure Max','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p natgas max','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/npersquaremeter','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Pressure Min (N/m%5E2)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Pressure Min','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p natgas min','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/npersquaremeter','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Pressure Max (psi)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Pressure Max','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p natgas max','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/psi','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Pressure Min (psi)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Pressure Min','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p natgas min','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/psi','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Pressure Max (in Hg)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Pressure Max','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p natgas max','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/inhg','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Pressure Min (in Hg)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Pressure Min','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p natgas min','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/inhg','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Mass (kg)'   

EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N'Steam Mass This Interval (kg)', 'M'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Mass','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'm steam','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/kg','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Mass (lb av)'  
EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N'Steam Mass This Interval (lb av)', 'M'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Mass','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'm steam','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/pound','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Mass (MMlb av)'    
EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N'Steam Mass This Interval (MMlb av)', 'M'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Mass','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'm steam','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/pound','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Mass (t)'    
EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N'Steam Mass This Interval (t)', 'M'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Mass','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'm steam','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/tonne','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Mass (sh tn)'    
EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N'Steam Mass This Interval (sh tn)', 'M'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Mass','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'm steam','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/ton','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Mass Previous Day Total (kg)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Mass Previous Day Total','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'm steam prev day','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/kg','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Mass Previous Day Total (lb av)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Mass Previous Day Total','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'm steam prev day','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/pound','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Mass Previous Day Total (Mlb av)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Mass Previous Day Total','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'm steam prev day','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/pound','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Mass Previous Day Total (MMlb av)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Mass Previous Day Total','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'm steam prev day','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/pound','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Mass Previous Day Total (t)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Mass Previous Day Total','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'm steam prev day','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/tonne','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Mass Previous Day Total (sh tn)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Mass Previous Day Total','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'm steam prev day','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/ton','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Mass Current Day Total (kg)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Mass Current Day Total','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'm steam current day','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/kg','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Mass Current Day Total (lb av)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Mass Current Day Total','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'm steam current day','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/pound','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Mass Current Day Total (Mlb av)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Mass Current Day Total','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'm steam current day','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/pound','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Mass Current Day Total (MMlb av)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Mass Current Day Total','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'm steam current day','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/pound','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Mass Current Day Total (t)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Mass Current Day Total','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'm steam current day','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/tonne','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Mass Current Day Total (sh tn)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Mass Current Day Total','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'm steam current day','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/ton','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Mass Flow Rate (kg/s)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Mass Flow Rate','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dm/dt steam','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/kgpersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Mass Flow Rate (kg/h)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Mass Flow Rate','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dm/dt steam','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/kgperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Mass Flow Rate (lb av/h)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Mass Flow Rate','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dm/dt steam','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/poundperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Mass Flow Rate (t/h)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Mass Flow Rate','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dm/dt steam','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/tonneperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Mass Flow Rate (sh tn/h)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Mass Flow Rate','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dm/dt steam','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/tonperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Mass Flow Rate Hourly Average (kg/s)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Mass Flow Rate Hourly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dm/dt steam hourly av','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/kgpersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Mass Flow Rate Hourly Average (kg/h)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Mass Flow Rate Hourly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dm/dt steam hourly av','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/kgperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Mass Flow Rate Hourly Average (lb av/h)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Mass Flow Rate Hourly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dm/dt steam hourly av','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/poundperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Mass Flow Rate Hourly Average (t/h)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Mass Flow Rate Hourly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dm/dt steam hourly av','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/tonneperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Mass Flow Rate Hourly Average (sh tn/h)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Mass Flow Rate Hourly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dm/dt steam hourly av','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/tonperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Mass Flow Rate Daily Average (kg/s)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Mass Flow Rate Daily Average','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dm/dt steam daily av','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/kgpersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Mass Flow Rate Daily Average (kg/h)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Mass Flow Rate Daily Average','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dm/dt steam daily av','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/kgperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Mass Flow Rate Daily Average (lb av/h)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Mass Flow Rate Daily Average','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dm/dt steam daily av','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/poundperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Mass Flow Rate Daily Average (t/h)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Mass Flow Rate Daily Average','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dm/dt steam daily av','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/tonneperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Mass Flow Rate Daily Average (sh tn/h)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Mass Flow Rate Daily Average','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dm/dt steam daily av','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/tonperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Mass Flow Rate Weekly Average (kg/s)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Mass Flow Rate Weekly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dm/dt steam weekly av','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/kgpersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Mass Flow Rate Weekly Average (kg/h)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Mass Flow Rate Weekly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dm/dt steam weekly av','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/kgperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Mass Flow Rate Weekly Average (lb av/h)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Mass Flow Rate Weekly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dm/dt steam weekly av','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/poundperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Mass Flow Rate Weekly Average (t/h)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Mass Flow Rate Weekly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dm/dt steam weekly av','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/tonneperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Mass Flow Rate Weekly Average (sh tn/h)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Mass Flow Rate Weekly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dm/dt steam weekly av','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/tonperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Mass Flow Rate Monthly Average (kg/s)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Mass Flow Rate Monthly Average','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dm/dt steam monthly av','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/kgpersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Mass Flow Rate Monthly Average (kg/h)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Mass Flow Rate Monthly Average','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dm/dt steam monthly av','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/kgperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Mass Flow Rate Monthly Average (lb av/h)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Mass Flow Rate Monthly Average','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dm/dt steam monthly av','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/poundperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Mass Flow Rate Monthly Average (t/h)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Mass Flow Rate Monthly Average','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dm/dt steam monthly av','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/tonneperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Mass Flow Rate Monthly Average (sh tn/h)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Mass Flow Rate Monthly Average','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dm/dt steam monthly av','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/tonperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Mass Flow Rate Max (kg/s)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Mass Flow Rate Max','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dm/dt steam max','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/kgpersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Mass Flow Rate Min (kg/s)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Mass Flow Rate Min','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dm/dt steam min','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/kgpersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Mass Flow Rate Max (kg/h)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Mass Flow Rate Max','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dm/dt steam max','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/kgperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Mass Flow Rate Min (kg/h)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Mass Flow Rate Min','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dm/dt steam min','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/kgperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Mass Flow Rate Max (t/h)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Mass Flow Rate Max','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dm/dt steam max','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/tonneperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Mass Flow Rate Min (t/h)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Mass Flow Rate Min','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dm/dt steam min','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/tonneperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Mass Flow Rate Max (lb av/h)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Mass Flow Rate Max','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dm/dt steam max','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/poundperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Mass Flow Rate Min (lb av/h)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Mass Flow Rate Min','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dm/dt steam min','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/poundperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Mass Flow Rate Max (sh tn/h)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Mass Flow Rate Max','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dm/dt steam max','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/tonperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Mass Flow Rate Min (sh tn/h)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Mass Flow Rate Min','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dm/dt steam min','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/tonperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Heat Flow (MJ)'    
EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N'Steam Heat Flow This Interval (MJ)', 'M'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Heat Flow','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q steam','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joule','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Heat Flow (J)' 
EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N'Steam Heat Flow This Interval (J)', 'M'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Heat Flow','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q steam','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joule','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Heat Flow (kJ)'
EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N'Steam Heat Flow This Interval (kJ)', 'M'       
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Heat Flow','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q steam','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joule','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Heat Flow (GJ)'  
EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N'Steam Heat Flow This Interval (GJ)', 'M'     
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Heat Flow','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q steam','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/giga','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joule','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Heat Flow (BTU 59)' 
EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N'Steam Heat Flow This Interval (BTU 59)', 'M'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Heat Flow','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q steam','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Heat Flow (MBTU 59)' 
EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N'Steam Heat Flow This Interval (MBTU 59)', 'M'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Heat Flow','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q steam','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Heat Flow (MMBTU 59)'   
EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N'Steam Heat Flow This Interval (MMBTU 59)', 'M'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Heat Flow','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q steam','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Heat Flow (BTU ISO)' 
EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N'Steam Heat Flow This Interval (BTU ISO)', 'M'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Heat Flow','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q steam','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuiso','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Heat Flow (MBTU ISO)'    
EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N'Steam Heat Flow This Interval (MBTU ISO)', 'M'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Heat Flow','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q steam','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuiso','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Heat Flow (MMBTU ISO)'   
EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N'Steam Heat Flow This Interval (MMBTU ISO)', 'M'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Heat Flow','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q steam','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuiso','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Heat Flow Rate Hourly Average (MJ/s)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Heat Flow Rate Hourly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt steam hourly av','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joulepersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Heat Flow Rate Hourly Average (J/s)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Heat Flow Rate Hourly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt steam hourly av','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joulepersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Heat Flow Rate Hourly Average (kJ/s)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Heat Flow Rate Hourly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt steam hourly av','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joulepersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Heat Flow Rate Hourly Average (BTU 59/h)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Heat Flow Rate Hourly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt steam hourly av','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59perhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Heat Flow Rate Hourly Average (MBTU 59/h)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Heat Flow Rate Hourly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt steam hourly av','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59perhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Heat Flow Rate Hourly Average (MMBTU 59/h)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Heat Flow Rate Hourly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt steam hourly av','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59perhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Heat Flow Rate Hourly Average (BTU ISO/h)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Heat Flow Rate Hourly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt steam hourly av','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuisoperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Heat Flow Rate Hourly Average (MBTU ISO/h)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Heat Flow Rate Hourly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt steam hourly av','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuisoperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Heat Flow Rate Hourly Average (MMBTU ISO/h)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Heat Flow Rate Hourly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt steam hourly av','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuisoperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Heat Flow Rate Daily Average (MJ/s)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Heat Flow Rate Daily Average','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt steam daily av','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joulepersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Heat Flow Rate Daily Average (J/s)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Heat Flow Rate Daily Average','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt steam daily av','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joulepersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Heat Flow Rate Daily Average (kJ/s)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Heat Flow Rate Daily Average','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt steam daily av','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joulepersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Heat Flow Rate Daily Average (BTU 59/h)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Heat Flow Rate Daily Average','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt steam daily av','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59perhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Heat Flow Rate Daily Average (MBTU 59/h)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Heat Flow Rate Daily Average','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt steam daily av','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59perhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Heat Flow Rate Daily Average (MMBTU 59/h)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Heat Flow Rate Daily Average','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt steam daily av','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59perhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Heat Flow Rate Daily Average (BTU ISO/h)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Heat Flow Rate Daily Average','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt steam daily av','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuisoperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Heat Flow Rate Daily Average (MBTU ISO/h)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Heat Flow Rate Daily Average','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt steam daily av','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuisoperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Heat Flow Rate Daily Average (MMBTU ISO/h)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Heat Flow Rate Daily Average','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt steam daily av','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuisoperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Heat Flow Rate Weekly Average (MJ/s)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Heat Flow Rate Weekly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt steam weekly av','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joulepersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Heat Flow Rate Weekly Average (J/s)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Heat Flow Rate Weekly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt steam weekly av','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joulepersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Heat Flow Rate Weekly Average (kJ/s)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Heat Flow Rate Weekly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt steam weekly av','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joulepersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Heat Flow Rate Weekly Average (BTU 59/h)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Heat Flow Rate Weekly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt steam weekly av','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59perhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Heat Flow Rate Weekly Average (MBTU 59/h)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Heat Flow Rate Weekly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt steam weekly av','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59perhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Heat Flow Rate Weekly Average (MMBTU 59/h)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Heat Flow Rate Weekly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt steam weekly av','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59perhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Heat Flow Rate Weekly Average (BTU ISO/h)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Heat Flow Rate Weekly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt steam weekly av','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuisoperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Heat Flow Rate Weekly Average (MBTU ISO/h)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Heat Flow Rate Weekly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt steam weekly av','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuisoperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Heat Flow Rate Weekly Average (MMBTU ISO/h)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Heat Flow Rate Weekly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt steam weekly av','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuisoperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Heat Flow Rate Monthly Average (MJ/s)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Heat Flow Rate Monthly Average','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt steam monthly av','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joulepersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Heat Flow Rate Monthly Average (J/s)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Heat Flow Rate Monthly Average','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt steam monthly av','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joulepersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Heat Flow Rate Monthly Average (kJ/s)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Heat Flow Rate Monthly Average','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt steam monthly av','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joulepersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Heat Flow Rate Monthly Average (BTU 59/h)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Heat Flow Rate Monthly Average','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt steam monthly av','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59perhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Heat Flow Rate Monthly Average (MBTU 59/h)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Heat Flow Rate Monthly Average','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt steam monthly av','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59perhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Heat Flow Rate Monthly Average (MMBTU 59/h)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Heat Flow Rate Monthly Average','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt steam monthly av','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59perhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Heat Flow Rate Monthly Average (BTU ISO/h)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Heat Flow Rate Monthly Average','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt steam monthly av','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuisoperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Heat Flow Rate Monthly Average (MBTU ISO/h)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Heat Flow Rate Monthly Average','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt steam monthly av','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuisoperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Heat Flow Rate Monthly Average (MMBTU ISO/h)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Heat Flow Rate Monthly Average','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt steam monthly av','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuisoperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Heat Flow Rate Max  (MJ/s)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Heat Flow Rate Max ','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt steam max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joulepersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Heat Flow Rate Min (MJ/s)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Heat Flow Rate Min','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt steam min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joulepersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Heat Flow Rate Max  (J/s)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Heat Flow Rate Max ','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt steam max','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joulepersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Heat Flow Rate Min (J/s)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Heat Flow Rate Min','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt steam min','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joulepersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Heat Flow Rate Max  (kJ/s)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Heat Flow Rate Max ','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt steam max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joulepersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Heat Flow Rate Min (kJ/s)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Heat Flow Rate Min','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt steam min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joulepersec','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Heat Flow Rate Max  (BTU 59/h)'	
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Heat Flow Rate Max ','L'	
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt steam max','L'	
	
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59perhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Heat Flow Rate Min (BTU 59/h)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Heat Flow Rate Min','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt steam min','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59perhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Heat Flow Rate Max  (MBTU 59/h)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Heat Flow Rate Max ','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt steam max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59perhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Heat Flow Rate Min (MBTU 59/h)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Heat Flow Rate Min','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt steam min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59perhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Heat Flow Rate Max  (MMBTU 59/h)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Heat Flow Rate Max ','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt steam max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59perhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Heat Flow Rate Min (MMBTU 59/h)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Heat Flow Rate Min','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt steam min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59perhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Heat Flow Rate Max  (BTU ISO/h)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Heat Flow Rate Max ','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt steam max','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuisoperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Heat Flow Rate Min (BTU ISO/h)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Heat Flow Rate Min','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt steam min','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuisoperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Heat Flow Rate Max  (MBTU ISO/h)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Heat Flow Rate Max ','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt steam max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuisoperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Heat Flow Rate Min (MBTU ISO/h)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Heat Flow Rate Min','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt steam min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuisoperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Heat Flow Rate Max  (MMBTU ISO/h)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Heat Flow Rate Max ','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt steam max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuisoperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Heat Flow Rate Min (MMBTU ISO/h)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Heat Flow Rate Min','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt steam min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuisoperhr','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Temperature (deg C)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Temperature','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'? steam','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/degreecelsius','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Temperature (deg F)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Temperature','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'? steam','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/degreefahrenheit','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Temperature Hourly Average (deg C)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Temperature Hourly Average','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'? steam hourly av','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/degreecelsius','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Temperature Hourly Average (deg F)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Temperature Hourly Average','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'? steam hourly av','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/degreefahrenheit','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Temperature Weekly Average (deg C)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Temperature Weekly Average','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'? steam weekly av','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/degreecelsius','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Temperature Weekly Average (deg F)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Temperature Weekly Average','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'? steam weekly av','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/degreefahrenheit','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Temperature Daily Average (deg C)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Temperature Daily Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'? steam daily av','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/degreecelsius','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Temperature Daily Average (deg F)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Temperature Daily Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'? steam daily av','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/degreefahrenheit','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Temperature Monthly Average (deg C)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Temperature Monthly Average','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'? steam monthly av','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/degreecelsius','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Temperature Monthly Average (deg F)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Temperature Monthly Average','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'? steam monthly av','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/degreefahrenheit','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Temperature Max (deg C)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Temperature Max','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'? steam max','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/degreecelsius','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Temperature Min (deg C)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Temperature Min','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'? steam min','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/degreecelsius','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Temperature Max (deg F)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Temperature Max','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'? steam max','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/degreefahrenheit','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Temperature Min (deg F)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Temperature Min','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'? steam min','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/degreefahrenheit','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Pressure (kPa)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Pressure','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p steam','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/pascal','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Pressure (Pa)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Pressure','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p steam','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/pascal','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Pressure (bar)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Pressure','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p steam','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/bar','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Pressure (in Hg)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Pressure','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p steam','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/inhg','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Pressure (N/m%5E2)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Pressure','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p steam','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/npersquaremeter','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Pressure Hourly Average (kPa)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Pressure Hourly Average','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p steam hourly av','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/pascal','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Pressure Hourly Average (Pa)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Pressure Hourly Average','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p steam hourly av','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/pascal','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Pressure Hourly Average (psi)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Pressure Hourly Average','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p steam hourly av','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/psi','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Pressure Hourly Average (bar)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Pressure Hourly Average','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p steam hourly av','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/bar','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Pressure Hourly Average (in Hg)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Pressure Hourly Average','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p steam hourly av','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/inhg','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Pressure Hourly Average (N/m%5E2)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Pressure Hourly Average','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p steam hourly av','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/npersquaremeter','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Pressure Daily Average (kPa)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Pressure Daily Average','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p steam daily av','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/pascal','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Pressure Daily Average (Pa)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Pressure Daily Average','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p steam daily av','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/pascal','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Pressure Daily Average (psi)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Pressure Daily Average','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p steam daily av','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/psi','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Pressure Daily Average (bar)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Pressure Daily Average','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p steam daily av','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/bar','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Pressure Daily Average (in Hg)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Pressure Daily Average','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p steam daily av','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/inhg','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Pressure Daily Average (N/m%5E2)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Pressure Daily Average','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p steam daily av','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/npersquaremeter','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Pressure Weekly Average (kPa)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Pressure Weekly Average','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p steam weekly av','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/pascal','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Pressure Weekly Average (Pa)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Pressure Weekly Average','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p steam weekly av','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/pascal','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Pressure Weekly Average (psi)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Pressure Weekly Average','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p steam weekly av','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/psi','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Pressure Weekly Average (bar)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Pressure Weekly Average','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p steam weekly av','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/bar','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Pressure Weekly Average (in Hg)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Pressure Weekly Average','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p steam weekly av','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/inhg','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Pressure Weekly Average (N/m%5E2)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Pressure Weekly Average','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p steam weekly av','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/npersquaremeter','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Pressure Monthly Average (kPa)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Pressure Monthly Average','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p steam monthly av','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/pascal','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Pressure Monthly Average (Pa)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Pressure Monthly Average','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p steam monthly av','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/pascal','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Pressure Monthly Average (psi)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Pressure Monthly Average','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p steam monthly av','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/psi','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Pressure Monthly Average (bar)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Pressure Monthly Average','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p steam monthly av','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/bar','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Pressure Monthly Average (in Hg)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Pressure Monthly Average','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p steam monthly av','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/inhg','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Pressure Monthly Average (N/m%5E2)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Pressure Monthly Average','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p steam monthly av','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/npersquaremeter','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Pressure Max  (kPa)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Pressure Max ','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p steam max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/pascal','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Pressure Min (kPa)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Pressure Min','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p steam min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/pascal','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Pressure Max  (Pa)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Pressure Max ','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p steam max','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/pascal','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Pressure Min (Pa)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Pressure Min','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p steam min','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/pascal','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Pressure Max  (bar)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Pressure Max ','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p steam max','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/bar','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Pressure Min (bar)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Pressure Min','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p steam min','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/bar','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Pressure Max  (N/m%5E2)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Pressure Max ','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p steam max','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/npersquaremeter','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Pressure Min (N/m%5E2)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Pressure Min','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p steam min','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/npersquaremeter','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Pressure Max  (psi)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Pressure Max ','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p steam max','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/psi','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Pressure Min (psi)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Pressure Min','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p steam min','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/psi','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Pressure Max  (in Hg)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Pressure Max ','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p steam max','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/inhg','Q'
---------------------------------------------------------------- 
SET @measurement = N'Steam Pressure Min (in Hg)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Pressure Min','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p steam min','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/inhg','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Volume Previous Day Total (m%5E3)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Volume Previous Day Total','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V natgas prev day','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeter','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Volume Previous Day Total (cf)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Volume Previous Day Total','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V natgas prev day','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfoot','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Volume Previous Day Total (Ccf)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Volume Previous Day Total','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V natgas prev day','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/hecta','Q' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfoot','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Volume Previous Day Total (Mcf)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Volume Previous Day Total','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V natgas prev day','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfoot','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Volume Previous Day Total (MMcf)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Volume Previous Day Total','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V natgas prev day','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfoot','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Volume Previous Day Total (scf)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Volume Previous Day Total','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V natgas prev day','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/standardcubicfoot','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Volume Previous Day Total (Cscf)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Volume Previous Day Total','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V natgas prev day','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/hecta','Q' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/standardcubicfoot','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Volume Previous Day Total (Mscf)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Volume Previous Day Total','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V natgas prev day','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/standardcubicfoot','Q'
---------------------------------------------------------------- 
SET @measurement = N'Natural Gas Volume Previous Day Total (MMscf)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Volume Previous Day Total','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V natgas prev day','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/standardcubicfoot','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Last Interval (m%5E3)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Last Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V water last int','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeter','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Last Interval (L)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Last Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V water last int','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/litre','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Last Interval (hL)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Last Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V water last int','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/hecto','Q' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/litre','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume This Interval (L)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume This Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V water this int','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/litre','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume This Interval (hL)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume This Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V water this int','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/hecto','Q' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/litre','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume This Interval (m%5E3)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume This Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V water this int','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeter','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Last Interval (cf)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Last Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V water last int','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfoot','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Last Interval (Ccf)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Last Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V water last int','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/hecta','Q' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfoot','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Last Interval (Mcf)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Last Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V water last int','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfoot','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Last Interval (MMcf)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Last Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V water last int','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfoot','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Last Interval (gal)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Last Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V water last int','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/gallon','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume This Interval (cf)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume This Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V water this int','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfoot','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume This Interval (Ccf)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume This Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V water this int','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/hecta','Q' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfoot','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume This Interval (Mcf)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume This Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V water this int','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfoot','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume This Interval (MMcf)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume This Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V water this int','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfoot','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume This Interval (gal)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume This Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V water this int','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/gallon','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate 15 Minute Average (m%5E3/s)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water 15 min av','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterpersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate 15 Minute Average (m%5E3/min)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water 15 min av','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterpermin','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate 15 Minute Average (m%5E3/h)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water 15 min av','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate 15 Minute Average (L/s)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water 15 min av','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/litrepersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate 15 Minute Average (L/min)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water 15 min av','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/litrepermin','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate 15 Minute Average (L/h)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water 15 min av','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/litreperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate 15 Minute Average (gal/s)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water 15 min av','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/gallonpersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate 15 Minute Average (gal/min)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water 15 min av','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/gallonpermin','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate 15 Minute Average (gal/h)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water 15 min av','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/gallonperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate 15 Minute Average (cf/s)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water 15 min av','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootpersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate 15 Minute Average (cf/min)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water 15 min av','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootpermin','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate 15 Minute Average (cf/h)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water 15 min av','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Pressure (kPa)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Pressure','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p water','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/pascal','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Pressure (Pa)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Pressure','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p water','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/pascal','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Pressure (bar)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Pressure','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p water','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/bar','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Pressure (N/m%5E2)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Pressure','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p water','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/npersquaremeter','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Pressure 15 Minute Average (kPa)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Pressure 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p water 15 min av','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/pascal','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Pressure 15 Minute Average (Pa)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Pressure 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p water 15 min av','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/pascal','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Pressure 15 Minute Average (bar)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Pressure 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p water 15 min av','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/bar','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Pressure 15 Minute Average (N/m%5E2)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Pressure 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p water 15 min av','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/npersquaremeter','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Pressure Daily Average (kPa)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Pressure Daily Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p water daily av','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/pascal','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Pressure Daily Average (Pa)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Pressure Daily Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p water daily av','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/pascal','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Pressure Daily Average (bar)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Pressure Daily Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p water daily av','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/bar','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Pressure Daily Average (N/m%5E2)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Pressure Daily Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p water daily av','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/npersquaremeter','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Pressure Hourly Average (kPa)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Pressure Hourly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p water hourly av','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/pascal','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Pressure Hourly Average (Pa)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Pressure Hourly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p water hourly av','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/pascal','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Pressure Hourly Average (bar)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Pressure Hourly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p water hourly av','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/bar','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Pressure Hourly Average (N/m%5E2)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Pressure Hourly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p water hourly av','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/npersquaremeter','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Pressure Max (kPa)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Pressure Max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p water max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/pascal','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Pressure Max (Pa)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Pressure Max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p water max','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/pascal','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Pressure Max (bar)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Pressure Max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p water max','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/bar','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Pressure Max (N/m%5E2)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Pressure Max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p water max','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/npersquaremeter','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Pressure Min (kPa)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Pressure Min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p water min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/pascal','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Pressure Min (Pa)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Pressure Min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p water min','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/pascal','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Pressure Min (bar)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Pressure Min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p water min','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/bar','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Pressure Min (N/m%5E2)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Pressure Min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p water min','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/npersquaremeter','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Pressure Monthly Average (kPa)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Pressure Monthly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p water monthly av','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/pascal','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Pressure Monthly Average (Pa)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Pressure Monthly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p water monthly av','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/pascal','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Pressure Monthly Average (bar)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Pressure Monthly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p water monthly av','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/bar','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Pressure Monthly Average (N/m%5E2)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Pressure Monthly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p water monthly av','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/npersquaremeter','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Pressure Return (kPa)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Pressure Return','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p water return','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/pascal','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Pressure Return (Pa)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Pressure Return','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p water return','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/pascal','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Pressure Return (bar)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Pressure Return','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p water return','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/bar','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Pressure Return (N/m%5E2)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Pressure Return','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p water return','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/npersquaremeter','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Pressure Return 15 Minute Average (kPa)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Pressure Return 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p water return 15 min av','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/pascal','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Pressure Return 15 Minute Average (Pa)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Pressure Return 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p water return 15 min av','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/pascal','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Pressure Return 15 Minute Average (bar)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Pressure Return 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p water return 15 min av','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/bar','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Pressure Return 15 Minute Average (N/m%5E2)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Pressure Return 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p water return 15 min av','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/npersquaremeter','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Pressure Return Daily Average (kPa)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Pressure Return Daily Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p water return daily av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/pascal','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Pressure Return Daily Average (Pa)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Pressure Return Daily Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p water return daily av','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/pascal','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Pressure Return Daily Average (bar)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Pressure Return Daily Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p water return daily av','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/bar','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Pressure Return Daily Average (N/m%5E2)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Pressure Return Daily Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p water return daily av','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/npersquaremeter','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Pressure Return Hourly Average (kPa)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Pressure Return Hourly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p water return hourly av','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/pascal','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Pressure Return Hourly Average (Pa)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Pressure Return Hourly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p water return hourly av','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/pascal','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Pressure Return Hourly Average (bar)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Pressure Return Hourly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p water return hourly av','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/bar','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Pressure Return Hourly Average (N/m%5E2)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Pressure Return Hourly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p water return hourly av','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/npersquaremeter','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Pressure Return Max (kPa)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Pressure Return Max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p water return max','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/pascal','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Pressure Return Max (Pa)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Pressure Return Max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p water return max','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/pascal','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Pressure Return Max (bar)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Pressure Return Max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p water return max','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/bar','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Pressure Return Max (N/m%5E2)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Pressure Return Max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p water return max','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/npersquaremeter','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Pressure Return Min (kPa)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Pressure Return Min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p water return min','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/pascal','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Pressure Return Min (Pa)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Pressure Return Min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p water return min','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/pascal','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Pressure Return Min (bar)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Pressure Return Min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p water return min','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/bar','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Pressure Return Min (N/m%5E2)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Pressure Return Min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p water return min','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/npersquaremeter','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Pressure Return Monthly Average (kPa)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Pressure Return Monthly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p water return monthly av','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/pascal','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Pressure Return Monthly Average (Pa)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Pressure Return Monthly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p water return monthly av','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/pascal','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Pressure Return Monthly Average (bar)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Pressure Return Monthly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p water return monthly av','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/bar','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Pressure Return Monthly Average (N/m%5E2)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Pressure Return Monthly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p water return monthly av','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/npersquaremeter','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Pressure Return Weekly Average (kPa)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Pressure Return Weekly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p water return weekly av','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/pascal','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Pressure Return Weekly Average (Pa)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Pressure Return Weekly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p water return weekly av','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/pascal','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Pressure Return Weekly Average (bar)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Pressure Return Weekly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p water return weekly av','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/bar','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Pressure Return Weekly Average (N/m%5E2)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Pressure Return Weekly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p water return weekly av','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/npersquaremeter','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Pressure Supply (kPa)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Pressure Supply','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p water supply','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/pascal','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Pressure Supply (Pa)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Pressure Supply','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p water supply','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/pascal','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Pressure Supply (bar)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Pressure Supply','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p water supply','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/bar','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Pressure Supply (N/m%5E2)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Pressure Supply','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p water supply','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/npersquaremeter','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Pressure Supply 15 Minute Average (kPa)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Pressure Supply 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p water supply 15 min av','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/pascal','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Pressure Supply 15 Minute Average (Pa)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Pressure Supply 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p water supply 15 min av','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/pascal','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Pressure Supply 15 Minute Average (bar)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Pressure Supply 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p water supply 15 min av','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/bar','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Pressure Supply 15 Minute Average (N/m%5E2)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Pressure Supply 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p water supply 15 min av','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/npersquaremeter','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Pressure Supply Daily Average (kPa)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Pressure Supply Daily Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p water supply daily av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/pascal','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Pressure Supply Daily Average (Pa)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Pressure Supply Daily Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p water supply daily av','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/pascal','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Pressure Supply Daily Average (bar)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Pressure Supply Daily Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p water supply daily av','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/bar','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Pressure Supply Daily Average (N/m%5E2)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Pressure Supply Daily Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p water supply daily av','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/npersquaremeter','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Pressure Supply Hourly Average (kPa)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Pressure Supply Hourly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p water supply hourly av','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/pascal','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Pressure Supply Hourly Average (Pa)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Pressure Supply Hourly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p water supply hourly av','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/pascal','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Pressure Supply Hourly Average (bar)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Pressure Supply Hourly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p water supply hourly av','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/bar','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Pressure Supply Hourly Average (N/m%5E2)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Pressure Supply Hourly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p water supply hourly av','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/npersquaremeter','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Pressure Supply Max (kPa)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Pressure Supply Max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p water supply max','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/pascal','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Pressure Supply Max (Pa)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Pressure Supply Max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p water supply max','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/pascal','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Pressure Supply Max (bar)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Pressure Supply Max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p water supply max','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/bar','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Pressure Supply Max (N/m%5E2)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Pressure Supply Max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p water supply max','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/npersquaremeter','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Pressure Supply Min (kPa)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Pressure Supply Min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p water supply min','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/pascal','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Pressure Supply Min (Pa)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Pressure Supply Min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p water supply min','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/pascal','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Pressure Supply Min (bar)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Pressure Supply Min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p water supply min','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/bar','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Pressure Supply Min (N/m%5E2)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Pressure Supply Min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p water supply min','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/npersquaremeter','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Pressure Supply Monthly Average (kPa)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Pressure Supply Monthly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p water supply monthly av','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/pascal','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Pressure Supply Monthly Average (Pa)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Pressure Supply Monthly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p water supply monthly av','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/pascal','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Pressure Supply Monthly Average (bar)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Pressure Supply Monthly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p water supply monthly av','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/bar','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Pressure Supply Monthly Average (N/m%5E2)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Pressure Supply Monthly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p water supply monthly av','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/npersquaremeter','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Pressure Supply Weekly Average (kPa)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Pressure Supply Weekly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p water supply weekly av','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/pascal','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Pressure Supply Weekly Average (Pa)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Pressure Supply Weekly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p water supply weekly av','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/pascal','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Pressure Supply Weekly Average (bar)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Pressure Supply Weekly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p water supply weekly av','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/bar','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Pressure Supply Weekly Average (N/m%5E2)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Pressure Supply Weekly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p water supply weekly av','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/npersquaremeter','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Pressure Weekly Average (kPa)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Pressure Weekly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p water weekly av','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/pascal','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Pressure Weekly Average (Pa)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Pressure Weekly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p water weekly av','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/pascal','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Pressure Weekly Average (bar)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Pressure Weekly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p water weekly av','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/bar','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Pressure Weekly Average (N/m%5E2)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Pressure Weekly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p water weekly av','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/npersquaremeter','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Pressure (psi)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Pressure','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p water','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/psi','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Pressure (in Hg)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Pressure','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p water','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/inhg','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Pressure 15 Minute Average (psi)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Pressure 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p water 15 min av','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/psi','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Pressure 15 Minute Average (in Hg)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Pressure 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p water 15 min av','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/inhg','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Pressure Daily Average (psi)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Pressure Daily Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p water daily av','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/psi','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Pressure Daily Average (in Hg)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Pressure Daily Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p water daily av','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/inhg','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Pressure Hourly Average (psi)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Pressure Hourly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p water hourly av','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/psi','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Pressure Hourly Average (in Hg)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Pressure Hourly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p water hourly av','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/inhg','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Pressure Max (psi)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Pressure Max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p water max','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/psi','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Pressure Max (in Hg)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Pressure Max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p water max','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/inhg','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Pressure Min (psi)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Pressure Min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p water min','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/psi','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Pressure Min (in Hg)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Pressure Min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p water min','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/inhg','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Pressure Monthly Average (psi)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Pressure Monthly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p water monthly av','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/psi','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Pressure Monthly Average (in Hg)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Pressure Monthly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p water monthly av','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/inhg','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Pressure Return (psi)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Pressure Return','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p water return','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/psi','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Pressure Return (in Hg)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Pressure Return','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p water return','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/inhg','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Pressure Return 15 Minute Average (psi)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Pressure Return 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p water return 15 min av','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/psi','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Pressure Return 15 Minute Average (in Hg)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Pressure Return 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p water return 15 min av','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/inhg','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Pressure Return Daily Average (psi)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Pressure Return Daily Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p water return daily av','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/psi','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Pressure Return Daily Average (in Hg)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Pressure Return Daily Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p water return daily av','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/inhg','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Pressure Return Hourly Average (psi)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Pressure Return Hourly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p water return hourly av','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/psi','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Pressure Return Hourly Average (in Hg)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Pressure Return Hourly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p water return hourly av','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/inhg','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Pressure Return Max (psi)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Pressure Return Max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p water return max','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/psi','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Pressure Return Max (in Hg)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Pressure Return Max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p water return max','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/inhg','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Pressure Return Min (psi)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Pressure Return Min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p water return min','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/psi','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Pressure Return Min (in Hg)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Pressure Return Min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p water return min','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/inhg','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Pressure Return Monthly Average (psi)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Pressure Return Monthly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p water return monthly av','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/psi','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Pressure Return Monthly Average (in Hg)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Pressure Return Monthly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p water return monthly av','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/inhg','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Pressure Return Weekly Average (psi)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Pressure Return Weekly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p water return weekly av','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/psi','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Pressure Return Weekly Average (in Hg)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Pressure Return Weekly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p water return weekly av','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/inhg','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Pressure Supply (psi)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Pressure Supply','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p water supply','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/psi','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Pressure Supply (in Hg)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Pressure Supply','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p water supply','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/inhg','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Pressure Supply 15 Minute Average (psi)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Pressure Supply 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p water supply 15 min av','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/psi','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Pressure Supply 15 Minute Average (in Hg)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Pressure Supply 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p water supply 15 min av','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/inhg','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Pressure Supply Daily Average (psi)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Pressure Supply Daily Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p water supply daily av','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/psi','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Pressure Supply Daily Average (in Hg)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Pressure Supply Daily Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p water supply daily av','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/inhg','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Pressure Supply Hourly Average (psi)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Pressure Supply Hourly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p water supply hourly av','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/psi','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Pressure Supply Hourly Average (in Hg)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Pressure Supply Hourly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p water supply hourly av','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/inhg','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Pressure Supply Max (psi)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Pressure Supply Max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p water supply max','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/psi','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Pressure Supply Max (in Hg)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Pressure Supply Max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p water supply max','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/inhg','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Pressure Supply Min (psi)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Pressure Supply Min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p water supply min','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/psi','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Pressure Supply Min (in Hg)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Pressure Supply Min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p water supply min','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/inhg','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Pressure Supply Monthly Average (psi)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Pressure Supply Monthly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p water supply monthly av','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/psi','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Pressure Supply Monthly Average (in Hg)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Pressure Supply Monthly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p water supply monthly av','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/inhg','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Pressure Supply Weekly Average (psi)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Pressure Supply Weekly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p water supply weekly av','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/psi','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Pressure Supply Weekly Average (in Hg)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Pressure Supply Weekly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p water supply weekly av','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/inhg','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Pressure Weekly Average (psi)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Pressure Weekly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p water weekly av','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/psi','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Pressure Weekly Average (in Hg)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Pressure Weekly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p water weekly av','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/inhg','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Temperature Return 15 Minute Average (deg C)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Temperature Return 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'? water return 15 min av','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/degreecelsius','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Temperature Return 15 Minute Average (deg F)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Temperature Return 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'? water return 15 min av','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/degreefahrenheit','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Temperature Supply 15 Minute Average (deg C)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Temperature Supply 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'? water supply 15 min av','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/degreecelsius','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Temperature Supply 15 Minute Average (deg F)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Temperature Supply 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'? water supply 15 min av','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/degreefahrenheit','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Temperature (deg C)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Temperature','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'? water','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/degreecelsius','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Temperature 15 Minute Average (deg C)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Temperature 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'? water 15 min av','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/degreecelsius','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Temperature Daily Average (deg C)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Temperature Daily Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'? water daily av','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/degreecelsius','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Temperature Hourly Average (deg C)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Temperature Hourly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'? water hourly av','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/degreecelsius','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Temperature Max (deg C)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Temperature Max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'? water max','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/degreecelsius','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Temperature Min (deg C)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Temperature Min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'? water min','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/degreecelsius','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Temperature Monthly Average (deg C)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Temperature Monthly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'? water monthly av','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/degreecelsius','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Temperature Weekly Average (deg C)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Temperature Weekly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'? water weekly av','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/degreecelsius','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Temperature (deg F)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Temperature','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'? water','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/degreefahrenheit','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Temperature 15 Minute Average (deg F)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Temperature 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'? water 15 min av','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/degreefahrenheit','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Temperature Daily Average (deg F)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Temperature Daily Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'? water daily av','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/degreefahrenheit','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Temperature Hourly Average (deg F)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Temperature Hourly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'? water hourly av','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/degreefahrenheit','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Temperature Max (deg F)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Temperature Max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'? water max','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/degreefahrenheit','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Temperature Min (deg F)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Temperature Min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'? water min','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/degreefahrenheit','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Temperature Monthly Average (deg F)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Temperature Monthly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'? water monthly av','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/degreefahrenheit','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Temperature Weekly Average (deg F)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Temperature Weekly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'? water weekly av','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/degreefahrenheit','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Mass Last Interval (kg)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Mass Last Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'm water last int','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/kg','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Mass Last Interval (t)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Mass Last Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'm water last int','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/tonne','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Mass This Interval (kg)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Mass This Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'm water this int','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/kg','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Mass This Interval (t)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Mass This Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'm water this int','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/tonne','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Mass Last Interval (lb av)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Mass Last Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'm water last int','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/pound','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Mass Last Interval (Mlb av)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Mass Last Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'm water last int','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/pound','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Mass Last Interval (MMlb av)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Mass Last Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'm water last int','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/pound','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Mass This Interval (lb av)'	
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Mass This Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'm water this int','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/pound','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Mass This Interval (Mlb av)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Mass This Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'm water this int','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/pound','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Mass This Interval (MMlb av)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Mass This Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'm water this int','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/pound','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Mass Flow Rate 15 Minute Average (kg/s)'	
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Mass Flow Rate 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dm/dt water 15 min av','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/kgpersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Mass Flow Rate 15 Minute Average (kg/h)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Mass Flow Rate 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dm/dt water 15 min av','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/kgperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Mass Flow Rate 15 Minute Average (t/h)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Mass Flow Rate 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dm/dt water 15 min av','L'       
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/tonneperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Mass Flow Rate 15 Minute Average (lb av/h)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Mass Flow Rate 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dm/dt water 15 min av','L'       
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/poundperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Mass Flow Rate 15 Minute Average (sh tn/h)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Mass Flow Rate 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dm/dt water 15 min av','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/tonperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Heat Flow Last Interval (MJ)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Heat Flow Last Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q water last int','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joule','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Heat Flow Last Interval (kWh)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Heat Flow Last Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q water last int','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/watthour','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Heat Flow Last Interval (J)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Heat Flow Last Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q water last int','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joule','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Heat Flow Last Interval (kJ)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Heat Flow Last Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q water last int','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joule','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Heat Flow Last Interval (GJ)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Heat Flow Last Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q water last int','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/giga','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joule','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Heat Flow This Interval (MJ)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Heat Flow This Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q water this int','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joule','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Heat Flow This Interval (kWh)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Heat Flow This Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q water this int','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/watthour','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Heat Flow This Interval (J)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Heat Flow This Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q water this int','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joule','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Heat Flow This Interval (kJ)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Heat Flow This Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q water this int','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joule','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Heat Flow This Interval (GJ)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Heat Flow This Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q water this int','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/giga','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joule','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Heat Flow Last Interval (BTU 59)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Heat Flow Last Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q water last int','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Heat Flow Last Interval (MBTU 59)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Heat Flow Last Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q water last int','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Heat Flow Last Interval (MMBTU 59)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Heat Flow Last Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q water last int','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Heat Flow Last Interval (BTU ISO)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Heat Flow Last Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q water last int','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuiso','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Heat Flow Last Interval (MBTU ISO)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Heat Flow Last Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q water last int','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuiso','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Heat Flow Last Interval (MMBTU ISO)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Heat Flow Last Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q water last int','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuiso','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Heat Flow Last Interval (tonh)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Heat Flow Last Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q water last int','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/tonh','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Heat Flow This Interval (BTU 59)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Heat Flow This Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q water this int','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Heat Flow This Interval (MBTU 59)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Heat Flow This Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q water this int','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Heat Flow This Interval (MMBTU 59)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Heat Flow This Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q water this int','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Heat Flow This Interval (BTU ISO)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Heat Flow This Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q water this int','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuiso','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Heat Flow This Interval (MBTU ISO)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Heat Flow This Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q water this int','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuiso','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Heat Flow This Interval (MMBTU ISO)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Heat Flow This Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q water this int','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuiso','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Heat Flow This Interval (tonh)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Heat Flow This Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q water this int','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/tonh','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Heat Flow Rate 15 Minute Average (MJ/s)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Heat Flow Rate 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt water 15 min av','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joulepersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Heat Flow Rate 15 Minute Average (J/s)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Heat Flow Rate 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt water 15 min av','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joulepersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Heat Flow Rate 15 Minute Average (kJ/s)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Heat Flow Rate 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt water 15 min av','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joulepersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Heat Flow Rate 15 Minute Average (BTU 59/h)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Heat Flow Rate 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt water 15 min av','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59perhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Heat Flow Rate 15 Minute Average (MBTU 59/h)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Heat Flow Rate 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt water 15 min av','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59perhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Heat Flow Rate 15 Minute Average (MMBTU 59/h)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Heat Flow Rate 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt water 15 min av','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59perhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Heat Flow Rate 15 Minute Average (BTU ISO/h)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Heat Flow Rate 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt water 15 min av','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuisoperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Heat Flow Rate 15 Minute Average (MBTU ISO/h)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Heat Flow Rate 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt water 15 min av','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuisoperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Heat Flow Rate 15 Minute Average (MMBTU ISO/h)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Heat Flow Rate 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt water 15 min av','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuisoperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Wastewater Mass Last Interval (kg)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Mass Last Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'm wastewater last int','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/kg','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Wastewater Mass Last Interval (t)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Mass Last Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'm wastewater last int','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/tonne','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Wastewater Mass This Interval (kg)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Mass This Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'm wastewater this int','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/kg','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Wastewater Mass This Interval (t)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Mass This Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'm wastewater this int','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/tonne','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Wastewater Mass Last Interval (lb av)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Mass Last Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'm wastewater last int','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/pound','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Wastewater Mass Last Interval (Mlb av)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Mass Last Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'm wastewater last int','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/pound','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Wastewater Mass Last Interval (MMlb av)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Mass Last Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'm wastewater last int','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/pound','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Wastewater Mass This Interval (lb av)'	
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Mass This Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'm wastewater this int','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/pound','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Wastewater Mass This Interval (Mlb av)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Mass This Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'm wastewater this int','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/pound','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Wastewater Mass This Interval (MMlb av)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Mass This Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'm wastewater this int','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/pound','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Wastewater Mass Flow Rate 15 Minute Average (kg/s)'	
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Mass Flow Rate 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dm/dt wastewater 15 min av','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/kgpersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Wastewater Mass Flow Rate 15 Minute Average (kg/h)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Mass Flow Rate 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dm/dt wastewater 15 min av','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/kgperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Wastewater Mass Flow Rate 15 Minute Average (t/h)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Mass Flow Rate 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dm/dt wastewater 15 min av','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/tonneperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Wastewater Mass Flow Rate 15 Minute Average (lb av/h)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Mass Flow Rate 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dm/dt wastewater 15 min av','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/poundperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Wastewater Mass Flow Rate 15 Minute Average (sh tn/h)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Mass Flow Rate 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dm/dt wastewater 15 min av','L'      
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/tonperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Wastewater Volume (m%5E3)' 
EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N'Wastewater Volume This Interval (m%5E3)', 'M'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Volume','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V wastewater','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeter','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Wastewater Volume (L)' 
EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N'Wastewater Volume This Interval (L)', 'M'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Volume','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V wastewater','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/litre','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Wastewater Volume (hL)'    
EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N'Wastewater Volume This Interval (hL)', 'M'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Volume','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V wastewater','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/hecto','Q' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/litre','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Wastewater Volume Current Day Total (m%5E3)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Volume Current Day Total','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V wastewater current day','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeter','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Wastewater Volume Current Day Total (L)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Volume Current Day Total','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V wastewater current day','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/litre','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Wastewater Volume Current Day Total (hL)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Volume Current Day Total','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V wastewater current day','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/hecto','Q' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/litre','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Wastewater Volume Flow Rate (m%5E3/min)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Volume Flow Rate','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt  wastewater','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterpermin','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Wastewater Volume Flow Rate (m%5E3/h)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Volume Flow Rate','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt  wastewater','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Wastewater Volume Flow Rate (L/s)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Volume Flow Rate','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt  wastewater','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/litrepersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Wastewater Volume Flow Rate (L/min)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Volume Flow Rate','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt  wastewater','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/litrepermin','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Wastewater Volume Flow Rate (L/h)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Volume Flow Rate','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt  wastewater','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/litreperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Wastewater Volume Flow Rate (m%5E3/s)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Volume Flow Rate','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt  wastewater','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterpersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Wastewater Volume Flow Rate 15 Minute Average (m%5E3/s)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Volume Flow Rate 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt wastewater 15 min av','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterpersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Wastewater Volume Flow Rate 15 Minute Average (m%5E3/min)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Volume Flow Rate 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt wastewater 15 min av','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterpermin','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Wastewater Volume Flow Rate 15 Minute Average (m%5E3/h)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Volume Flow Rate 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt wastewater 15 min av','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Wastewater Volume Flow Rate 15 Minute Average (L/s)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Volume Flow Rate 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt wastewater 15 min av','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/litrepersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Wastewater Volume Flow Rate 15 Minute Average (L/min)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Volume Flow Rate 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt wastewater 15 min av','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/litrepermin','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Wastewater Volume Flow Rate 15 Minute Average (L/h)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Volume Flow Rate 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt wastewater 15 min av','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/litreperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Wastewater Volume Flow Rate Daily Average (m%5E3/min)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Volume Flow Rate Daily Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt  wastewater daily av','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterpermin','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Wastewater Volume Flow Rate Daily Average (m%5E3/h)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Volume Flow Rate Daily Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt  wastewater daily av','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Wastewater Volume Flow Rate Daily Average (L/s)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Volume Flow Rate Daily Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt  wastewater daily av','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/litrepersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Wastewater Volume Flow Rate Daily Average (L/min)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Volume Flow Rate Daily Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt  wastewater daily av','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/litrepermin','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Wastewater Volume Flow Rate Daily Average (L/h)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Volume Flow Rate Daily Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt  wastewater daily av','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/litreperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Wastewater Volume Flow Rate Daily Average (m%5E3/s)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Volume Flow Rate Daily Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt  wastewater daily av','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterpersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Wastewater Volume Flow Rate Hourly Average (m%5E3/min)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Volume Flow Rate Hourly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt wastewater hourly av','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterpermin','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Wastewater Volume Flow Rate Hourly Average (m%5E3/h)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Volume Flow Rate Hourly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt wastewater hourly av','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Wastewater Volume Flow Rate Hourly Average (L/s)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Volume Flow Rate Hourly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt wastewater hourly av','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/litrepersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Wastewater Volume Flow Rate Hourly Average (L/min)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Volume Flow Rate Hourly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt wastewater hourly av','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/litrepermin','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Wastewater Volume Flow Rate Hourly Average (L/h)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Volume Flow Rate Hourly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt wastewater hourly av','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/litreperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Wastewater Volume Flow Rate Hourly Average (m%5E3/s)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Volume Flow Rate Hourly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt wastewater hourly av','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterpersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Wastewater Volume Flow Rate Max (m%5E3/min)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Volume Flow Rate Max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt wastewater max','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterpermin','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Wastewater Volume Flow Rate Max (m%5E3/h)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Volume Flow Rate Max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt wastewater max','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Wastewater Volume Flow Rate Max (L/s)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Volume Flow Rate Max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt wastewater max','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/litrepersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Wastewater Volume Flow Rate Max (L/min)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Volume Flow Rate Max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt wastewater max','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/litrepermin','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Wastewater Volume Flow Rate Max (L/h)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Volume Flow Rate Max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt wastewater max','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/litreperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Wastewater Volume Flow Rate Max (m%5E3/s)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Volume Flow Rate Max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt wastewater max','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterpersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Wastewater Volume Flow Rate Min (m%5E3/min)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Volume Flow Rate Min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt  wastewater min','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterpermin','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Wastewater Volume Flow Rate Min (m%5E3/h)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Volume Flow Rate Min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt  wastewater min','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Wastewater Volume Flow Rate Min (L/s)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Volume Flow Rate Min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt  wastewater min','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/litrepersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Wastewater Volume Flow Rate Min (L/min)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Volume Flow Rate Min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt  wastewater min','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/litrepermin','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Wastewater Volume Flow Rate Min (L/h)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Volume Flow Rate Min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt  wastewater min','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/litreperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Wastewater Volume Flow Rate Min (m%5E3/s)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Volume Flow Rate Min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt  wastewater min','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterpersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Wastewater Volume Flow Rate Monthly Average (m%5E3/min)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Volume Flow Rate Monthly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt wastewater monthly av','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterpermin','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Wastewater Volume Flow Rate Monthly Average (m%5E3/h)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Volume Flow Rate Monthly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt wastewater monthly av','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Wastewater Volume Flow Rate Monthly Average (L/s)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Volume Flow Rate Monthly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt wastewater monthly av','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/litrepersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Wastewater Volume Flow Rate Monthly Average (L/min)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Volume Flow Rate Monthly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt wastewater monthly av','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/litrepermin','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Wastewater Volume Flow Rate Monthly Average (L/h)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Volume Flow Rate Monthly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt wastewater monthly av','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/litreperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Wastewater Volume Flow Rate Monthly Average (m%5E3/s)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Volume Flow Rate Monthly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt wastewater monthly av','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterpersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Wastewater Volume Flow Rate Weekly Average (m%5E3/min)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Volume Flow Rate Weekly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt wastewater weekly av','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterpermin','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Wastewater Volume Flow Rate Weekly Average (m%5E3/h)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Volume Flow Rate Weekly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt wastewater weekly av','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Wastewater Volume Flow Rate Weekly Average (L/s)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Volume Flow Rate Weekly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt wastewater weekly av','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/litrepersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Wastewater Volume Flow Rate Weekly Average (L/min)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Volume Flow Rate Weekly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt wastewater weekly av','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/litrepermin','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Wastewater Volume Flow Rate Weekly Average (L/h)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Volume Flow Rate Weekly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt wastewater weekly av','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/litreperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Wastewater Volume Flow Rate Weekly Average (m%5E3/s)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Volume Flow Rate Weekly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt wastewater weekly av','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterpersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Wastewater Volume Last Interval (m%5E3)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Volume Last Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V wastewater last int','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeter','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Wastewater Volume Last Interval (L)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Volume Last Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V wastewater last int','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/litre','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Wastewater Volume Last Interval (hL)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Volume Last Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V wastewater last int','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/hecto','Q' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/litre','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Wastewater Volume Previous Day Total (m%5E3)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Volume Previous Day Total','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V wastewater prev day','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeter','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Wastewater Volume Previous Day Total (L)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Volume Previous Day Total','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V wastewater prev day','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/litre','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Wastewater Volume Previous Day Total (hL)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Volume Previous Day Total','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V wastewater prev day','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/hecto','Q' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/litre','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Wastewater Volume This Interval (m%5E3)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Volume This Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V wastewater this int','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeter','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Wastewater Volume This Interval (L)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Volume This Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V wastewater this int','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/litre','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Wastewater Volume This Interval (hL)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Volume This Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V wastewater this int','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/hecto','Q' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/litre','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Wastewater Volume (cf)'    
EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N'Wastewater Volume This Interval (cf)', 'M'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Volume','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V wastewater','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfoot','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Wastewater Volume (Ccf)'   
EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N'Wastewater Volume This Interval (Ccf)', 'M'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Volume','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V wastewater','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/hecta','Q' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfoot','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Wastewater Volume (Mcf)'   
EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N'Wastewater Volume This Interval (Mcf)', 'M'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Volume','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V wastewater','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfoot','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Wastewater Volume (MMcf)'  
EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N'Wastewater Volume This Interval (MMcf)', 'M'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Volume','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V wastewater','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfoot','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Wastewater Volume (gal)'   
EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N'Wastewater Volume This Interval (gal)', 'M'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Volume','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V wastewater','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/gallon','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Wastewater Volume Current Day Total (cf)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Volume Current Day Total','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V wastewater current day','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfoot','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Wastewater Volume Current Day Total (Ccf)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Volume Current Day Total','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V wastewater current day','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/hecta','Q' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfoot','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Wastewater Volume Current Day Total (Mcf)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Volume Current Day Total','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V wastewater current day','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfoot','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Wastewater Volume Current Day Total (MMcf)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Volume Current Day Total','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V wastewater current day','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfoot','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Wastewater Volume Current Day Total (gal)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Volume Current Day Total','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V wastewater current day','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/gallon','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Wastewater Volume Flow Rate (gal/s)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Volume Flow Rate','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt  wastewater','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/gallonpersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Wastewater Volume Flow Rate (gal/min)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Volume Flow Rate','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt  wastewater','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/gallonpermin','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Wastewater Volume Flow Rate (gal/h)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Volume Flow Rate','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt  wastewater','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/gallonperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Wastewater Volume Flow Rate (cf/s)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Volume Flow Rate','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt  wastewater','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootpersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Wastewater Volume Flow Rate (cf/min)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Volume Flow Rate','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt  wastewater','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootpermin','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Wastewater Volume Flow Rate (cf/h)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Volume Flow Rate','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt  wastewater','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Wastewater Volume Flow Rate 15 Minute Average (gal/s)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Volume Flow Rate 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt wastewater 15 min av','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/gallonpersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Wastewater Volume Flow Rate 15 Minute Average (gal/min)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Volume Flow Rate 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt wastewater 15 min av','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/gallonpermin','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Wastewater Volume Flow Rate 15 Minute Average (gal/h)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Volume Flow Rate 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt wastewater 15 min av','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/gallonperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Wastewater Volume Flow Rate 15 Minute Average (cf/s)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Volume Flow Rate 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt wastewater 15 min av','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootpersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Wastewater Volume Flow Rate 15 Minute Average (cf/min)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Volume Flow Rate 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt wastewater 15 min av','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootpermin','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Wastewater Volume Flow Rate 15 Minute Average (cf/h)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Volume Flow Rate 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt wastewater 15 min av','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Wastewater Volume Flow Rate Daily Average (gal/s)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Volume Flow Rate Daily Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt  wastewater daily av','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/gallonpersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Wastewater Volume Flow Rate Daily Average (gal/min)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Volume Flow Rate Daily Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt  wastewater daily av','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/gallonpermin','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Wastewater Volume Flow Rate Daily Average (gal/h)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Volume Flow Rate Daily Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt  wastewater daily av','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/gallonperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Wastewater Volume Flow Rate Daily Average (cf/s)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Volume Flow Rate Daily Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt  wastewater daily av','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootpersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Wastewater Volume Flow Rate Daily Average (cf/min)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Volume Flow Rate Daily Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt  wastewater daily av','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootpermin','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Wastewater Volume Flow Rate Daily Average (cf/h)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Volume Flow Rate Daily Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt  wastewater daily av','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Wastewater Volume Flow Rate Hourly Average (gal/s)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Volume Flow Rate Hourly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt wastewater hourly av','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/gallonpersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Wastewater Volume Flow Rate Hourly Average (gal/min)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Volume Flow Rate Hourly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt wastewater hourly av','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/gallonpermin','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Wastewater Volume Flow Rate Hourly Average (gal/h)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Volume Flow Rate Hourly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt wastewater hourly av','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/gallonperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Wastewater Volume Flow Rate Hourly Average (cf/s)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Volume Flow Rate Hourly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt wastewater hourly av','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootpersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Wastewater Volume Flow Rate Hourly Average (cf/min)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Volume Flow Rate Hourly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt wastewater hourly av','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootpermin','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Wastewater Volume Flow Rate Hourly Average (cf/h)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Volume Flow Rate Hourly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt wastewater hourly av','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Wastewater Volume Flow Rate Max (gal/s)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Volume Flow Rate Max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt wastewater max','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/gallonpersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Wastewater Volume Flow Rate Max (gal/min)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Volume Flow Rate Max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt wastewater max','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/gallonpermin','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Wastewater Volume Flow Rate Max (gal/h)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Volume Flow Rate Max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt wastewater max','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/gallonperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Wastewater Volume Flow Rate Max (cf/s)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Volume Flow Rate Max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt wastewater max','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootpersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Wastewater Volume Flow Rate Max (cf/min)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Volume Flow Rate Max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt wastewater max','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootpermin','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Wastewater Volume Flow Rate Max (cf/h)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Volume Flow Rate Max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt wastewater max','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Wastewater Volume Flow Rate Min (gal/s)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Volume Flow Rate Min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt  wastewater min','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/gallonpersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Wastewater Volume Flow Rate Min (gal/min)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Volume Flow Rate Min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt  wastewater min','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/gallonpermin','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Wastewater Volume Flow Rate Min (gal/h)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Volume Flow Rate Min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt  wastewater min','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/gallonperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Wastewater Volume Flow Rate Min (cf/s)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Volume Flow Rate Min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt  wastewater min','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootpersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Wastewater Volume Flow Rate Min (cf/min)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Volume Flow Rate Min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt  wastewater min','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootpermin','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Wastewater Volume Flow Rate Min (cf/h)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Volume Flow Rate Min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt  wastewater min','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Wastewater Volume Flow Rate Monthly Average (gal/s)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Volume Flow Rate Monthly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt wastewater monthly av','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/gallonpersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Wastewater Volume Flow Rate Monthly Average (gal/min)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Volume Flow Rate Monthly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt wastewater monthly av','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/gallonpermin','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Wastewater Volume Flow Rate Monthly Average (gal/h)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Volume Flow Rate Monthly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt wastewater monthly av','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/gallonperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Wastewater Volume Flow Rate Monthly Average (cf/s)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Volume Flow Rate Monthly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt wastewater monthly av','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootpersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Wastewater Volume Flow Rate Monthly Average (cf/min)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Volume Flow Rate Monthly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt wastewater monthly av','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootpermin','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Wastewater Volume Flow Rate Monthly Average (cf/h)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Volume Flow Rate Monthly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt wastewater monthly av','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Wastewater Volume Flow Rate Weekly Average (gal/s)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Volume Flow Rate Weekly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt wastewater weekly av','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/gallonpersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Wastewater Volume Flow Rate Weekly Average (gal/min)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Volume Flow Rate Weekly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt wastewater weekly av','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/gallonpermin','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Wastewater Volume Flow Rate Weekly Average (gal/h)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Volume Flow Rate Weekly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt wastewater weekly av','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/gallonperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Wastewater Volume Flow Rate Weekly Average (cf/s)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Volume Flow Rate Weekly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt wastewater weekly av','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootpersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Wastewater Volume Flow Rate Weekly Average (cf/min)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Volume Flow Rate Weekly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt wastewater weekly av','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootpermin','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Wastewater Volume Flow Rate Weekly Average (cf/h)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Volume Flow Rate Weekly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt wastewater weekly av','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Wastewater Volume Last Interval (cf)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Volume Last Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V wastewater last int','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfoot','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Wastewater Volume Last Interval (Ccf)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Volume Last Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V wastewater last int','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/hecta','Q' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfoot','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Wastewater Volume Last Interval (Mcf)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Volume Last Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V wastewater last int','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfoot','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Wastewater Volume Last Interval (MMcf)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Volume Last Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V wastewater last int','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfoot','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Wastewater Volume Last Interval (gal)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Volume Last Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V wastewater last int','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/gallon','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Wastewater Volume Previous Day Total (cf)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Volume Previous Day Total','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V wastewater prev day','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfoot','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Wastewater Volume Previous Day Total (Ccf)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Volume Previous Day Total','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V wastewater prev day','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/hecta','Q' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfoot','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Wastewater Volume Previous Day Total (Mcf)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Volume Previous Day Total','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V wastewater prev day','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfoot','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Wastewater Volume Previous Day Total (MMcf)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Volume Previous Day Total','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V wastewater prev day','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfoot','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Wastewater Volume Previous Day Total (gal)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Volume Previous Day Total','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V wastewater prev day','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/gallon','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Wastewater Volume This Interval (cf)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Volume This Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V wastewater this int','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfoot','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Wastewater Volume This Interval (Ccf)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Volume This Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V wastewater this int','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/hecta','Q' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfoot','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Wastewater Volume This Interval (Mcf)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Volume This Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V wastewater this int','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfoot','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Wastewater Volume This Interval (MMcf)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Volume This Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V wastewater this int','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfoot','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Wastewater Volume This Interval (gal)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Volume This Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V wastewater this int','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/gallon','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Steam Heat Flow Last Interval (MJ)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Heat Flow Last Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q steam last int','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joule','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Steam Heat Flow Last Interval (J)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Heat Flow Last Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q steam last int','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joule','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Steam Heat Flow Last Interval (kJ)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Heat Flow Last Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q steam last int','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joule','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Steam Heat Flow Last Interval (GJ)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Heat Flow Last Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q steam last int','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/giga','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joule','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Steam Heat Flow This Interval (MJ)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Heat Flow This Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q steam this int','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joule','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Steam Heat Flow This Interval (J)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Heat Flow This Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q steam this int','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joule','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Steam Heat Flow This Interval (kJ)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Heat Flow This Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q steam this int','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joule','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Steam Heat Flow This Interval (GJ)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Heat Flow This Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q steam this int','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/giga','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joule','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Steam Heat Flow Last Interval (BTU 59)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Heat Flow Last Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q steam last int','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Steam Heat Flow Last Interval (MBTU 59)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Heat Flow Last Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q steam last int','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Steam Heat Flow Last Interval (MMBTU 59)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Heat Flow Last Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q steam last int','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Steam Heat Flow Last Interval (BTU ISO)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Heat Flow Last Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q steam last int','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuiso','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Steam Heat Flow Last Interval (MBTU ISO)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Heat Flow Last Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q steam last int','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuiso','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Steam Heat Flow Last Interval (MMBTU ISO)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Heat Flow Last Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q steam last int','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuiso','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Steam Heat Flow This Interval (BTU 59)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Heat Flow This Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q steam this int','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Steam Heat Flow This Interval (MBTU 59)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Heat Flow This Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q steam this int','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Steam Heat Flow This Interval (MMBTU 59)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Heat Flow This Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q steam this int','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Steam Heat Flow This Interval (BTU ISO)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Heat Flow This Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q steam this int','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuiso','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Steam Heat Flow This Interval (MBTU ISO)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Heat Flow This Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q steam this int','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuiso','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Steam Heat Flow This Interval (MMBTU ISO)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Heat Flow This Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q steam this int','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuiso','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Steam Heat Flow Rate 15 Minute Average (MJ/s)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Heat Flow Rate 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt steam 15 min av','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joulepersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Steam Heat Flow Rate 15 Minute Average (J/s)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Heat Flow Rate 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt steam 15 min av','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joulepersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Steam Heat Flow Rate 15 Minute Average (kJ/s)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Heat Flow Rate 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt steam 15 min av','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joulepersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Steam Heat Flow Rate 15 Minute Average (BTU 59/h)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Heat Flow Rate 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt steam 15 min av','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59perhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Steam Heat Flow Rate 15 Minute Average (MBTU 59/h)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Heat Flow Rate 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt steam 15 min av','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59perhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Steam Heat Flow Rate 15 Minute Average (MMBTU 59/h)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Heat Flow Rate 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt steam 15 min av','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59perhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Steam Heat Flow Rate 15 Minute Average (BTU ISO/h)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Heat Flow Rate 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt steam 15 min av','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuisoperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Steam Heat Flow Rate 15 Minute Average (MBTU ISO/h)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Heat Flow Rate 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt steam 15 min av','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuisoperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Steam Heat Flow Rate 15 Minute Average (MMBTU ISO/h)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Heat Flow Rate 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt steam 15 min av','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuisoperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Steam Mass Last Interval (kg)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Mass Last Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'm steam last int','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/kg','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Steam Mass Last Interval (t)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Mass Last Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'm steam last int','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/tonne','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Steam Mass This Interval (t)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Mass This Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'm steam this int','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/tonne','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Steam Mass This Interval (kg)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Mass This Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'm steam this int','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/kg','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Steam Mass Last Interval (lb av)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Mass Last Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'm steam last int','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/pound','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Steam Mass Last Interval (Mlb av)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Mass Last Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'm steam last int','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/pound','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Steam Mass Last Interval (MMlb av)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Mass Last Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'm steam last int','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/pound','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Steam Mass This Interval (lb av)'	
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Mass This Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'm steam this int','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/pound','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Steam Mass This Interval (Mlb av)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Mass This Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'm steam this int','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/pound','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Steam Mass This Interval (MMlb av)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Mass This Interval','L'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'm steam this int','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/pound','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Steam Mass Flow Rate 15 Minute Average (kg/s)'	
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Mass Flow Rate 15 Minute Average','L'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dm/dt steam 15 minute av','L'        
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/kgpersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Steam Mass Flow Rate 15 Minute Average (kg/h)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Mass Flow Rate 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dm/dt steam 15 minute av','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/kgperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Steam Mass Flow Rate 15 Minute Average (t/h)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Mass Flow Rate 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dm/dt steam 15 minute av','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/tonneperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Steam Mass Flow Rate 15 Minute Average (lb av/h)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Mass Flow Rate 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dm/dt steam 15 minute av','L'        
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/poundperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Steam Mass Flow Rate 15 Minute Average (sh tn/h)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Mass Flow Rate 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dm/dt steam 15 minute av','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/tonperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Steam Pressure 15 Minute Average (kPa)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Pressure 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p steam 15 min av','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/pascal','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Steam Pressure 15 Minute Average (Pa)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Pressure 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p steam 15 min av','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/pascal','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Steam Pressure 15 Minute Average (bar)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Pressure 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p steam 15 min av','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/bar','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Steam Pressure 15 Minute Average (N/m%5E2)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Pressure 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p steam 15 min av','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/npersquaremeter','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Steam Pressure 15 Minute Average (psi)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Pressure 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p steam 15 min av','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/psi','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Steam Pressure 15 Minute Average (in Hg)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Pressure 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p steam 15 min av','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/inhg','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Steam Temperature 15 Minute Average (deg C)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Temperature 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'? steam 15 min av','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/degreecelsius','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Steam Temperature 15 Minute Average (deg F)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Temperature 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'? steam 15 min av','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/degreefahrenheit','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Steam Volume Last Interval (m%5E3)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Volume Last Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V steam last int','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeter','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Steam Volume This Interval (m%5E3)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Volume This Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V steam this int','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeter','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Steam Volume Last Interval (cf)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Volume Last Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V steam last int','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfoot','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Steam Volume Last Interval (Ccf)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Volume Last Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V steam last int','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/hecta','Q' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfoot','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Steam Volume Last Interval (Mcf)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Volume Last Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V steam last int','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfoot','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Steam Volume Last Interval (MMcf)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Volume Last Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V steam last int','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfoot','Q'
----------------------------------------------------------------------------------- 

SET @measurement = N'Steam Volume This Interval (cf)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Volume This Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V steam this int','L'    
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfoot','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Steam Volume This Interval (Ccf)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Volume This Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V steam this int','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/hecta','Q' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfoot','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Steam Volume This Interval (Mcf)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Volume This Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V steam this int','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfoot','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Steam Volume This Interval (MMcf)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Volume This Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V steam this int','L'    
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfoot','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Steam Volume Flow Rate 15 Minute Average (m%5E3/s)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Volume Flow Rate 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt steam 15 min av','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterpersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Steam Volume Flow Rate 15 Minute Average (m%5E3/min)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Volume Flow Rate 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt steam 15 min av','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterpermin','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Steam Volume Flow Rate 15 Minute Average (m%5E3/h)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Volume Flow Rate 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt steam 15 min av','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Steam Volume Flow Rate 15 Minute Average (cf/s)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Volume Flow Rate 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt steam 15 min av','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootpersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Steam Volume Flow Rate 15 Minute Average (cf/min)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Volume Flow Rate 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt steam 15 min av','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootpermin','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Steam Volume Flow Rate 15 Minute Average (cf/h)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Volume Flow Rate 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt steam 15 min av','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Natural Gas Energy Flow Last Interval (MJ)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Energy Flow Last Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q natgas last int','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joule','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Natural Gas Energy Flow Last Interval (J)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Energy Flow Last Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q natgas last int','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joule','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Natural Gas Energy Flow Last Interval (kJ)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Energy Flow Last Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q natgas last int','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joule','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Natural Gas Energy Flow Last Interval (GJ)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Energy Flow Last Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q natgas last int','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/giga','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joule','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Natural Gas Energy Flow This Interval (J)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Energy Flow This Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q natgas this int','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joule','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Natural Gas Energy Flow This Interval (kJ)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Energy Flow This Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q natgas this int','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joule','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Natural Gas Energy Flow This Interval (GJ)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Energy Flow This Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q natgas this int','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/giga','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joule','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Natural Gas Energy Flow This Interval (MJ)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Energy Flow This Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q natgas this int','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joule','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Natural Gas Energy Flow Last Interval (BTU 59)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Energy Flow Last Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q natgas last int','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Natural Gas Energy Flow Last Interval (MBTU 59)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Energy Flow Last Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q natgas last int','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Natural Gas Energy Flow Last Interval (MMBTU 59)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Energy Flow Last Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q natgas last int','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Natural Gas Energy Flow Last Interval (BTU ISO)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Energy Flow Last Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q natgas last int','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuiso','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Natural Gas Energy Flow Last Interval (MBTU ISO)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Energy Flow Last Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q natgas last int','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuiso','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Natural Gas Energy Flow Last Interval (MMBTU ISO)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Energy Flow Last Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q natgas last int','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuiso','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Natural Gas Energy Flow Last Interval (thm)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Energy Flow Last Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q natgas last int','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/thm','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Natural Gas Energy Flow This Interval (BTU 59)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Energy Flow This Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q natgas this int','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Natural Gas Energy Flow This Interval (MBTU 59)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Energy Flow This Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q natgas this int','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Natural Gas Energy Flow This Interval (MMBTU 59)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Energy Flow This Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q natgas this int','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Natural Gas Energy Flow This Interval (BTU ISO)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Energy Flow This Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q natgas this int','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuiso','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Natural Gas Energy Flow This Interval (MBTU ISO)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Energy Flow This Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q natgas this int','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuiso','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Natural Gas Energy Flow This Interval (MMBTU ISO)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Energy Flow This Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q natgas this int','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuiso','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Natural Gas Energy Flow This Interval (thm)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Energy Flow This Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q natgas this int','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/thm','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Natural Gas Energy Flow Rate 15 Minute Average (MJ/s)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Energy Flow Rate 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt natgas 15 min av','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joulepersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Natural Gas Energy Flow Rate 15 Minute Average (J/s)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Energy Flow Rate 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt natgas 15 min av','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joulepersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Natural Gas Energy Flow Rate 15 Minute Average (kJ/s)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Energy Flow Rate 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt natgas 15 min av','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joulepersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Natural Gas Energy Flow Rate 15 Minute Average (BTU 59/h)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Energy Flow Rate 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt natgas 15 min av','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59perhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Natural Gas Energy Flow Rate 15 Minute Average (MBTU 59/h)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Energy Flow Rate 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt natgas 15 min av','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59perhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Natural Gas Energy Flow Rate 15 Minute Average (MMBTU 59/h)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Energy Flow Rate 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt natgas 15 min av','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59perhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Natural Gas Energy Flow Rate 15 Minute Average (BTU ISO/h)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Energy Flow Rate 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt natgas 15 min av','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuisoperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Natural Gas Energy Flow Rate 15 Minute Average (MBTU ISO/h)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Energy Flow Rate 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt natgas 15 min av','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuisoperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Natural Gas Energy Flow Rate 15 Minute Average (MMBTU ISO/h)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Energy Flow Rate 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt natgas 15 min av','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuisoperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Natural Gas Volume Last Interval (m%5E3)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Volume Last Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V natgas last int','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeter','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Natural Gas Volume This Interval (m%5E3)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Volume This Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V natgas this int','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeter','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Natural Gas Volume Last Interval (cf)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Volume Last Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V natgas last int','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfoot','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Natural Gas Volume Last Interval (Ccf)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Volume Last Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V natgas last int','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/hecta','Q' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfoot','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Natural Gas Volume Last Interval (Mcf)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Volume Last Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V natgas last int','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfoot','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Natural Gas Volume Last Interval (MMcf)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Volume Last Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V natgas last int','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfoot','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Natural Gas Volume Last Interval (scf)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Volume Last Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V natgas last int','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/standardcubicfoot','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Natural Gas Volume Last Interval (Cscf)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Volume Last Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V natgas last int','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/hecta','Q' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/standardcubicfoot','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Natural Gas Volume Last Interval (Mscf)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Volume Last Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V natgas last int','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/standardcubicfoot','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Natural Gas Volume Last Interval (MMscf)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Volume Last Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V natgas last int','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/standardcubicfoot','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Natural Gas Volume This Interval (cf)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Volume This Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V natgas this int','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfoot','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Natural Gas Volume This Interval (Ccf)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Volume This Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V natgas this int','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/hecta','Q' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfoot','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Natural Gas Volume This Interval (Mcf)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Volume This Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V natgas this int','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfoot','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Natural Gas Volume This Interval (MMcf)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Volume This Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V natgas this int','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfoot','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Natural Gas Volume This Interval (scf)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Volume This Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V natgas this int','L'   
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/standardcubicfoot','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Natural Gas Volume This Interval (Cscf)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Volume This Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V natgas this int','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/hecta','Q' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/standardcubicfoot','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Natural Gas Volume This Interval (Mscf)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Volume This Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V natgas this int','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/standardcubicfoot','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Natural Gas Volume This Interval (MMscf)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Volume This Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V natgas this int','L'   
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/standardcubicfoot','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Natural Gas Volume Flow Rate 15 Minute Average (m%5E3/s)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Volume Flow Rate 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt natgas 15 min av','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterpersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Natural Gas Volume Flow Rate 15 Minute Average (m%5E3/min)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Volume Flow Rate 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt natgas 15 min av','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterpermin','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Natural Gas Volume Flow Rate 15 Minute Average (m%5E3/h)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Volume Flow Rate 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt natgas 15 min av','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Natural Gas Volume Flow Rate 15 Minute Average (cf/s)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Volume Flow Rate 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt natgas 15 min av','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootpersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Natural Gas Volume Flow Rate 15 Minute Average (cf/min)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Volume Flow Rate 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt natgas 15 min av','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootpermin','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Natural Gas Volume Flow Rate 15 Minute Average (cf/h)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Volume Flow Rate 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt natgas 15 min av','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Natural Gas Volume Flow Rate 15 Minute Average (scf/s)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Volume Flow Rate 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt natgas 15 min av','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/standardcubicfootpersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Natural Gas Volume Flow Rate 15 Minute Average (scf/min)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Volume Flow Rate 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt natgas 15 min av','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/standardcubicfootpermin','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Natural Gas Volume Flow Rate 15 Minute Average (scf/h)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Volume Flow Rate 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt natgas 15 min av','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/standardcubicfootperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Air Heat Flow This Interval (MJ)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Heat Flow This Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q air this int','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joule','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Air Heat Flow This Interval (J)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Heat Flow This Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q air this int','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joule','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Air Heat Flow This Interval (kJ)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Heat Flow This Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q air this int','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joule','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Air Heat Flow This Interval (GJ)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Heat Flow This Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q air this int','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/giga','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joule','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Air Heat Flow Last Interval (BTU 59)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Heat Flow Last Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q air last int','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Air Heat Flow Last Interval (MBTU 59)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Heat Flow Last Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q air last int','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Air Heat Flow Last Interval (MMBTU 59)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Heat Flow Last Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q air last int','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Air Heat Flow Last Interval (BTU ISO)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Heat Flow Last Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q air last int','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuiso','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Air Heat Flow Last Interval (MBTU ISO)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Heat Flow Last Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q air last int','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuiso','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Air Heat Flow Last Interval (MMBTU ISO)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Heat Flow Last Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q air last int','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuiso','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Air Heat Flow This Interval (BTU 59)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Heat Flow This Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q air this int','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Air Heat Flow This Interval (MBTU 59)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Heat Flow This Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q air this int','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Air Heat Flow This Interval (MMBTU 59)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Heat Flow This Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q air this int','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Air Heat Flow This Interval (BTU ISO)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Heat Flow This Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q air this int','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuiso','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Air Heat Flow This Interval (MBTU ISO)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Heat Flow This Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q air this int','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuiso','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Air Heat Flow This Interval (MMBTU ISO)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Heat Flow This Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q air this int','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuiso','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Air Heat Flow Rate 15 Minute Average (MJ/s)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Heat Flow Rate 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt air 15 min av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joulepersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Air Heat Flow Rate 15 Minute Average (J/s)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Heat Flow Rate 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt air 15 min av','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joulepersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Air Heat Flow Rate 15 Minute Average (kJ/s)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Heat Flow Rate 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt air 15 min av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joulepersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Air Heat Flow Rate 15 Minute Average (BTU 59/h)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Heat Flow Rate 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt air 15 min av','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59perhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Air Heat Flow Rate 15 Minute Average (MBTU 59/h)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Heat Flow Rate 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt air 15 min av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59perhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Air Heat Flow Rate 15 Minute Average (MMBTU 59/h)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Heat Flow Rate 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt air 15 min av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59perhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Air Heat Flow Rate 15 Minute Average (BTU ISO/h)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Heat Flow Rate 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt air 15 min av','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuisoperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Air Heat Flow Rate 15 Minute Average (MBTU ISO/h)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Heat Flow Rate 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt air 15 min av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuisoperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Air Heat Flow Rate 15 Minute Average (MMBTU ISO/h)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Heat Flow Rate 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dQ/dt air 15 min av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuisoperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Air Pressure 15 Minute Average (kPa)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Pressure 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p air 15 min av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/pascal','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Air Pressure 15 Minute Average (Pa)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Pressure 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p air 15 min av','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/pascal','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Air Pressure 15 Minute Average (bar)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Pressure 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p air 15 min av','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/bar','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Air Pressure 15 Minute Average (N/m%5E2)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Pressure 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p air 15 min av','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/npersquaremeter','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Air Pressure 15 Minute Average (psi)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Pressure 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p air 15 min av','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/psi','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Air Pressure 15 Minute Average (in Hg)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Pressure 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p air 15 min av','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/inhg','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Air Temperature 15 Minute Average (deg C)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Temperature 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'? air 15 min av','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/degreecelsius','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Air Temperature 15 Minute Average (deg F)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Temperature 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'? air 15 min av','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/degreefahrenheit','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Air Volume Last Interval (m%5E3)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Volume Last Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V air last int','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeter','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Air Volume This Interval (m%5E3)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Volume This Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V air this int','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeter','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Air Volume Last Interval (cf)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Volume Last Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V air last int','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfoot','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Air Volume Last Interval (Ccf)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Volume Last Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V air last int','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/hecta','Q' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfoot','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Air Volume Last Interval (Mcf)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Volume Last Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V air last int','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfoot','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Air Volume Last Interval (MMcf)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Volume Last Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V air last int','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfoot','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Air Volume Last Interval (scf)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Volume Last Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V air last int','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/standardcubicfoot','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Air Volume Last Interval (Cscf)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Volume Last Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V air last int','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/hecta','Q' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/standardcubicfoot','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Air Volume Last Interval (Mscf)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Volume Last Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V air last int','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/standardcubicfoot','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Air Volume Last Interval (MMscf)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Volume Last Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V air last int','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/standardcubicfoot','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Air Volume This Interval (cf)' 

EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Volume This Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V air this int','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfoot','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Air Volume This Interval (Ccf)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Volume This Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V air this int','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/hecta','Q' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfoot','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Air Volume This Interval (Mcf)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Volume This Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V air this int','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfoot','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Air Volume This Interval (MMcf)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Volume This Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V air this int','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfoot','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Air Volume This Interval (scf)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Volume This Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V air this int','L'  
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/standardcubicfoot','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Air Volume This Interval (Cscf)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Volume This Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V air this int','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/hecta','Q' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/standardcubicfoot','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Air Volume This Interval (Mscf)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Volume This Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V air this int','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/standardcubicfoot','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Air Volume This Interval (MMscf)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Volume This Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V air this int','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/standardcubicfoot','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Air Volume Flow Rate 15 Minute Average (m%5E3/s)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Volume Flow Rate 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt air 15 min av','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterpersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Air Volume Flow Rate 15 Minute Average (m%5E3/min)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Volume Flow Rate 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt air 15 min av','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterpermin','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Air Volume Flow Rate 15 Minute Average (m%5E3/h)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Volume Flow Rate 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt air 15 min av','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Air Volume Flow Rate 15 Minute Average (cf/s)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Volume Flow Rate 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt air 15 min av','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootpersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Air Volume Flow Rate 15 Minute Average (cf/min)' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Volume Flow Rate 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt air 15 min av','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootpermin','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Air Volume Flow Rate 15 Minute Average (cf/h)'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Volume Flow Rate 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt air 15 min av','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Air Volume Flow Rate 15 Minute Average (scf/s)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Volume Flow Rate 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt air 15 min av','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/standardcubicfootpersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Air Volume Flow Rate 15 Minute Average (scf/min)'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Volume Flow Rate 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt air 15 min av','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/standardcubicfootpermin','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Air Volume Flow Rate 15 Minute Average (scf/h)'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Volume Flow Rate 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt air 15 min av','L' 
    
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/standardcubicfootperhr','Q'

----------------------------------------------------------------------------------- 
SET @measurement = N'Min Water Mass Flow Rate Date Time'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'D/T Min Water Mass Flow Rate','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'DT dm/dt water min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------------- 
SET @measurement = N'Max Water Mass Flow Rate Date Time'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'D/T Max Water Mass Flow Rate','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'DT dm/dt water max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------------- 
SET @measurement = N'Min Air Heat Flow Rate Date Time'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'D/T Min Air Heat Flow Rate','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'DT dQ/dt air min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------------- 
SET @measurement = N'Max Air Heat Flow Rate Date Time'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'D/T Max Air Heat Flow Rate','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'DT dQ/dt air max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------------- 
SET @measurement = N'Min Natural Gas Energy Flow Rate Date Time'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'D/T Min Natural Gas Energy Flow Rate','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'DT dQ/dt natgas min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------------- 
SET @measurement = N'Max Natural Gas Energy Flow Rate Date Time'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'D/T Max Natural Gas Energy Flow Rate','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'DT dQ/dt natgas max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------------- 
SET @measurement = N'Min Steam Volume Flow Rate Date Time'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'D/T Min Steam Volume Flow Rate','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'DT dV/dt steam min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------------- 
SET @measurement = N'Max Steam Volume Flow Rate Date Time'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'D/T Max Steam Volume Flow Rate','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'DT dV/dt steam max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------------- 
SET @measurement = N'Min Wastewater Mass Flow Rate Date Time'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'D/T Min Wastewater Mass Flow Rate','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'DT dm/dt wastewater min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------------- 
SET @measurement = N'Max Wastewater Mass Flow Rate Date Time'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'D/T Max Wastewater Mass Flow Rate','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'DT dm/dt wastewater max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------------- 
SET @measurement = N'Min Water Volume Flow Rate Date Time'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'D/T Min Water Volume Flow Rate','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'DT dV/dt water min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------------- 
SET @measurement = N'Max Water Volume Flow Rate Date Time'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'D/T Max Water Volume Flow Rate','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'DT dV/dt water max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------------- 
SET @measurement = N'Min Water Heat Flow Rate Date Time'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'D/T Min Water Heat Flow Rate','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'DT dQ/dt water min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------------- 
SET @measurement = N'Max Water Heat Flow Rate Date Time'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'D/T Max Water Heat Flow Rate','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'DT dQ/dt water max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------------- 
SET @measurement = N'Min Water Supply Temperature Date Time'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'D/T Min Water Temperature Supply','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'DT T water supply min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------------- 
SET @measurement = N'Max Water Supply Temperature Date Time'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'D/T Max Water Temperature Supply','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'DT T water supply max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------------- 
SET @measurement = N'Min Water Return Temperature Date Time'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'D/T Min Water Temperature Return','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'DT T water return min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------------- 
SET @measurement = N'Max Water Return Temperature Date Time'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'D/T Max Water Temperature Return','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'DT T water return max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------------- 
SET @measurement = N'Min Water Pressure Supply Date Time'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'D/T Min Water Pressure Supply','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'DT p water supply min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------------- 
SET @measurement = N'Max Water Pressure Supply Date Time'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'D/T Max Water Pressure Supply','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'DT p water supply max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------------- 
SET @measurement = N'Min Air Pressure Date Time'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'D/T Min Air Pressure','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'DT p air min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------------- 
SET @measurement = N'Max Air Pressure Date Time'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'D/T Max Air Pressure','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'DT p air max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------------- 
SET @measurement = N'Min Air Volume Flow Rate Date Time'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'D/T Min Air Volume Flow Rate','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'DT dV/dt air min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------------- 
SET @measurement = N'Max Air Volume Flow Rate Date Time'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'D/T Max Air Volume Flow Rate','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'DT dV/dt air max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------------- 
SET @measurement = N'Min Air Temperature Date Time'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'D/T Min Air Temperature','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'DT T air min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------------- 
SET @measurement = N'Max Air Temperature Date Time'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'D/T Max Air Temperature','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'DT T air max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------------- 
SET @measurement = N'Min Natural Gas Volume Flow Rate Date Time'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'D/T Min Natural Gas Volume Flow Rate','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'DT dV/dt natgas min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------------- 
SET @measurement = N'Max Natural Gas Volume Flow Rate Date Time'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'D/T Max Natural Gas Volume Flow Rate','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'DT dV/dt natgas max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------------- 
SET @measurement = N'Min Natural Gas Pressure Date Time'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'D/T Min Natural Gas Pressure','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'DT p natgas min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------------- 
SET @measurement = N'Max Natural Gas Pressure Date Time'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'D/T Max Natural Gas Pressure','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'DT p natgas max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------------- 
SET @measurement = N'Min Steam Mass Flow Rate Date Time'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'D/T Min Steam Mass Flow Rate','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'DT dm/dt steam min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------------- 
SET @measurement = N'Max Steam Mass Flow Rate Date Time'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'D/T Max Steam Mass Flow Rate','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'DT dm/dt steam max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------------- 
SET @measurement = N'Min Steam Heat Flow Rate Date Time'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'D/T Min Steam Heat Flow Rate','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'DT dQ/dt steam min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------------- 
SET @measurement = N'Max Steam Heat Flow Rate Date Time'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'D/T Max Steam Heat Flow Rate','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'DT dQ/dt steam max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------------- 
SET @measurement = N'Min Steam Temperature Date Time'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'D/T Min Steam Temperature','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'DT T steam min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------------- 
SET @measurement = N'Max Steam Temperature Date Time'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'D/T Max Steam Temperature','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'DT T steam max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------------- 
SET @measurement = N'Min Steam Pressure Date Time'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'D/T Min Steam Pressure','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'DT p steam min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------------- 
SET @measurement = N'Max Steam Pressure Date Time'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'D/T Max Steam Pressure','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'DT p steam max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------------- 
SET @measurement = N'Min Wastewater Volume Flow Rate Date Time'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'D/T Min Wastewater Volume Flow Rate','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'DT dV/dt wastewater min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------------- 
SET @measurement = N'Max Wastewater Volume Flow Rate Date Time'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'D/T Max Wastewater Volume Flow Rate','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'DT dV/dt wastewater max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------------- 
SET @measurement = N'Min Water Pressure Return Date Time'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'D/T Min Water Pressure Return','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'DT p water return min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------------- 
SET @measurement = N'Max Water Pressure Return Date Time'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'D/T Max Water Pressure Return','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'DT p water return max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------------- 
SET @measurement = N'Min Water Temperature Date Time'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'D/T Min Water Temperature','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'DT T water min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------------- 
SET @measurement = N'Max Water Temperature Date Time'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'D/T Max Water Temperature','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'DT T water max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------------- 
SET @measurement = N'Min Water Pressure Date Time'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'D/T Min Water Pressure','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'DT p water min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------------- 
SET @measurement = N'Max Water Pressure Date Time'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'D/T Max Water Pressure','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'DT p water max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit', 'Q'

----------------------------------------------------------------------------------- 
SET @measurement = N'Air Heat Flow Last Interval (MJ)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Heat Flow Last Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q air last int','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joule','Q'

----------------------------------------------------------------------------------- 
SET @measurement = N'Natural Gas Pressure 15 Minute Average (kPa)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Pressure 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p natgas 15 min av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/pascal','Q'

----------------------------------------------------------------------------------- 
SET @measurement = N'Water Mass This Interval (sh tn)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Mass This Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'm water this int','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/tonperhr','Q'

----------------------------------------------------------------------------------- 
SET @measurement = N'Wastewater Mass This Interval (sh tn)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Mass This Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'm wastewater this int','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/tonperhr','Q'

-----------------------------------------------------------------------------------  
SET @measurement = N'Steam Mass This Interval (sh tn)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Mass This Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'm steam this int','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/tonperhr','Q'

-----------------------------------------------------------------------------------  
SET @measurement = N'Water Mass Last Interval (sh tn)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Mass Last Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'm water last int','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/tonperhr','Q'

-----------------------------------------------------------------------------------  
SET @measurement = N'Air Heat Flow Last Interval (J)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Heat Flow Last Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q air last int','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joule','Q'

----------------------------------------------------------------------------------- 
SET @measurement = N'Air Heat Flow Last Interval (kJ)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Heat Flow Last Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q air last int','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joule','Q'

----------------------------------------------------------------------------------- 
SET @measurement = N'Air Heat Flow Last Interval (GJ)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Air Heat Flow Last Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'Q air last int','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/giga','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joule','Q'

----------------------------------------------------------------------------------- 
SET @measurement = N'Wastewater Mass Last Interval (sh tn)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Mass Last Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'm wastewater last int','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/tonperhr','Q'

-----------------------------------------------------------------------------------
SET @measurement = N'Natural Gas Pressure 15 Minute Average (Pa)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Pressure 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p natgas 15 min av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/pascal','Q'

----------------------------------------------------------------------------------- 
SET @measurement = N'Natural Gas Pressure 15 Minute Average (psi)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Pressure 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p natgas 15 min av','L'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/psi','Q'

----------------------------------------------------------------------------------- 
SET @measurement = N'Natural Gas Pressure 15 Minute Average (bar)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Pressure 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p natgas 15 min av','L'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/bar','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Natural Gas Pressure 15 Minute Average (in Hg)'
             
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Pressure 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p natgas 15 min av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/inhg','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Natural Gas Pressure 15 Minute Average (N/m%5E2)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Natural Gas Pressure 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'p natgas 15 min av','L'
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/npersquaremeter','Q'
-----------------------------------------------------------------------------------  
SET @measurement = N'Steam Mass Last Interval (sh tn)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Mass Last Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'm steam last int','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/tonperhr','Q'
-----------------------------------------------------------------------------------
-- added for CDM mapping udpates IONE7 Cayman
-----------------------------------------------------------------------------------
SET @measurement = N'Block Demand Current N'

EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/ampere','Q'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'slidingwindow', 'Q'

-----------------------------------------------------------------------------------
SET @measurement = N'Peak Block Demand Current N'

EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/ampere','Q'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'slidingwindow', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'

-----------------------------------------------------------------------------------
SET @measurement = N'Block Demand Apparent Power Predicted'

EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/va','Q'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'slidingwindow', 'Q'

-----------------------------------------------------------------------------------
SET @measurement = N'Block Demand Apparent Power Present'

EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/va','Q'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'slidingwindow', 'Q'

-----------------------------------------------------------------------------------
SET @measurement = N'Peak Thermal Demand Current A'

EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/ampere','Q'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'thermal', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'

-----------------------------------------------------------------------------------
SET @measurement = N'Min Block Demand Active Power'

EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/watt','Q'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'slidingwindow', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/min', 'Q'

-----------------------------------------------------------------------------------
SET @measurement = N'Min Block Demand Reactive Power'

EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/var','Q'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'slidingwindow', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/min', 'Q'

-----------------------------------------------------------------------------------
SET @measurement = N'Thermal Demand Apparent Power Present'

EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/va','Q'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'thermal', 'Q'

-----------------------------------------------------------------------------------
SET @measurement = N'Thermal Demand Apparent Power'

EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/va','Q'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'thermal', 'Q'

-----------------------------------------------------------------------------------
SET @measurement = N'Min Block Demand Apparent Power'

EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/va','Q'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'slidingwindow', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/min', 'Q'

-----------------------------------------------------------------------------------
SET @measurement = N'Block Demand Apparent Power A'

EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/va','Q'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'slidingwindow', 'Q'

-----------------------------------------------------------------------------------
SET @measurement = N'Block Demand Apparent Power B'

EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/va','Q'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'slidingwindow', 'Q'

-----------------------------------------------------------------------------------
SET @measurement = N'Block Demand Apparent Power C'

EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/va','Q'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'slidingwindow', 'Q'

-----------------------------------------------------------------------------------
SET @measurement = N'Peak Thermal Demand Apparent Power'

EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/va','Q'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'thermal', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'

-----------------------------------------------------------------------------------
SET @measurement = N'Thermal Demand Apparent Power Predicted'

EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/va','Q'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'thermal', 'Q'

-----------------------------------------------------------------------------------
SET @measurement = N'Thermal Demand Voltage A-B'

EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/volt','Q'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'thermal', 'Q'

-----------------------------------------------------------------------------------
SET @measurement = N'Thermal Demand Voltage B-C'

EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/volt','Q'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'thermal', 'Q'

-----------------------------------------------------------------------------------
SET @measurement = N'Thermal Demand Voltage C-A'

EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/volt','Q'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'thermal', 'Q'

-----------------------------------------------------------------------------------
SET @measurement = N'Thermal Demand Voltage A-N'

EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/volt','Q'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'thermal', 'Q'

-----------------------------------------------------------------------------------
SET @measurement = N'Thermal Demand Voltage B-N'

EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/volt','Q'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'thermal', 'Q'

-----------------------------------------------------------------------------------
SET @measurement = N'Thermal Demand Voltage C-N'

EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/volt','Q'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'thermal', 'Q'

-----------------------------------------------------------------------------------
SET @measurement = N'Thermal Demand Current A'

EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/ampere','Q'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'thermal', 'Q'

-----------------------------------------------------------------------------------
SET @measurement = N'Thermal Demand Current B'

EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/ampere','Q'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'thermal', 'Q'

-----------------------------------------------------------------------------------
SET @measurement = N'Thermal Demand Current C'

EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/ampere','Q'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'thermal', 'Q'

-----------------------------------------------------------------------------------
SET @measurement = N'Peak Thermal Demand Current B'

EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/ampere','Q'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'thermal', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'

-----------------------------------------------------------------------------------
SET @measurement = N'Peak Thermal Demand Current C'

EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/ampere','Q'
EXEC spTS_StandardRelationship_Add @measurement, N'demand', N'thermal', 'Q'
EXEC spTS_StandardRelationship_Add @measurement, N'type', N'type/max', 'Q'

-----------------------------------------------------------------------------------
SET @measurement = N'Weather Atmospheric Pressure (mbar)'

EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/milli','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/bar','Q'

-----------------------------------------------------------------------------------
SET @measurement = N'Reactive Energy Delivered+Received Interval'

EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/varhour','Q'
EXEC spTS_StandardRelationship_Add @measurement, N'direction', N'direction/del_plus_rec', 'Q'

-----------------------------------------------------------------------------------
SET @measurement = N'Active Power Thermal Demand Delivered+Received'

EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/watt','Q'

-----------------------------------------------------------------------------------
SET @measurement = N'Active Power Thermal Demand Delivered'

EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/watt','Q'

-----------------------------------------------------------------------------------
SET @measurement = N'Active Power Thermal Demand Received'

EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/watt','Q'

-----------------------------------------------------------------------------------
SET @measurement = N'Energy Consumption (MJ)'
EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N'Energy Consumption This Interval (MJ)', 'M'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'E','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joule','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Delta (MJ)'
EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N'Energy Consumption Delta This Interval (MJ)', 'M'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Delta','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'E delta','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joule','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Rate (MJ/s)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Rate','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dE/dt','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joulepersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Rate Delta (MJ/s)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Rate Delta','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dE/dt delta','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joulepersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Previous Day Total (MJ)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Previous Day Total','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'E prev day','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joule','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Current Day Total (MJ)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Current Day Total','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'E current day','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joule','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption This Interval (MJ)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption This Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'E this int','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joule','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Delta Previous Day Total (MJ)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Delta Previous Day Total','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'E delta prev day','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joule','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Delta Current Day Total (MJ)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Delta Current Day Total','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'E delta current day','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joule','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Delta This Interval (MJ)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Delta This Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'E delta this int','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joule','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Last Interval (MJ)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Last Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'E last int','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joule','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Delta Last Interval (MJ)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Delta Last Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'E delta last int','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joule','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Supply Last Interval (m%5E3)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Supply Last Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V water supply last int','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeter','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Return Last Interval (m%5E3)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Return Last Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V water return last int','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeter','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Delta Last Interval (m%5E3)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Delta Last Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V water delta last int','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeter','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Min Water Volume Flow Rate Supply Date Time'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'D/T Min Water Volume Flow Rate Supply','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'DT dV/dt water supply min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Min Water Volume Flow Rate Return Date Time'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'D/T Min Water Volume Flow Rate Return','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'DT dV/dt water return min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Min Water Volume Flow Rate Delta Date Time'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'D/T Min Water Volume Flow Rate Delta','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'DT dV/dt water delta min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Max Water Volume Flow Rate Supply Date Time'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'D/T Max Water Volume Flow Rate Supply','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'DT dV/dt water supply max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Max Water Volume Flow Rate Return Date Time'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'D/T Max Water Volume Flow Rate Return','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'DT dV/dt water return max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Max Water Volume Flow Rate Delta Date Time'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'D/T Max Water Volume Flow Rate Delta','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'DT dV/dt water delta max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Supply 15 Minute Average (m%5E3/s)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Supply 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water supply 15 min av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterpersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Return 15 Minute Average (m%5E3/s)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Return 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water return 15 min av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterpersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Delta 15 Minute Average (m%5E3/s)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Delta 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water delta 15 min av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterpersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Min Energy Consumption Rate Date Time'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'D/T Min Energy Consumption Rate','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'DT dE/dt min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Max Energy Consumption Rate Date Time'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'D/T Max Energy Consumption Rate','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'DT dE/dt max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Min Energy Consumption Rate Delta Date Time'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'D/T Min Energy Consumption Rate Delta','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'DT dE/dt delta min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Max Energy Consumption Rate Delta Date Time'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'D/T Max Energy Consumption Rate Delta','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'DT dE/dt delta max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Rate 15 Minute Average (MJ/s)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Rate 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dE/dt 15 min av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joulepersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Rate Delta 15 Minute Average (MJ/s)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Rate Delta 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dE/dt delta 15 min av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joulepersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption (kWh)'
EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N'Energy Consumption This Interval (kWh)', 'M'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'E','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/watthour','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption (kJ)'
EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N'Energy Consumption This Interval (kJ)', 'M'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'E','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joule','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption (GJ)'
EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N'Energy Consumption This Interval (GJ)', 'M'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'E','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/giga','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joule','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption (BTU 59)'
EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N'Energy Consumption This Interval (BTU 59)', 'M'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'E','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption (MBTU 59)'
EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N'Energy Consumption This Interval (MBTU 59)', 'M'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'E','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption (MMBTU 59)'
EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N'Energy Consumption This Interval (MMBTU 59)', 'M'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'E','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption (BTU ISO)'
EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N'Energy Consumption This Interval (BTU ISO)', 'M'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'E','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuiso','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption (MBTU ISO)'
EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N'Energy Consumption This Interval (MBTU ISO)', 'M'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'E','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuiso','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption (MMBTU ISO)'
EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N'Energy Consumption This Interval (MMBTU ISO)', 'M'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'E','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuiso','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Delta (kWh)'
EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N'Energy Consumption Delta This Interval (kWh)', 'M'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Delta','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'E delta','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/watthour','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Delta (kJ)'
EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N'Energy Consumption Delta This Interval (kJ)', 'M'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Delta','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'E delta','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joule','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Delta (GJ)'
EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N'Energy Consumption Delta This Interval (GJ)', 'M'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Delta','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'E delta','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/giga','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joule','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Delta (BTU 59)'
EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N'Energy Consumption Delta This Interval (BTU 59)', 'M'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Delta','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'E delta','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Delta (MBTU 59)'
EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N'Energy Consumption Delta This Interval (MBTU 59)', 'M'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Delta','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'E delta','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Delta (MMBTU 59)'
EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N'Energy Consumption Delta This Interval (MMBTU 59)', 'M'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Delta','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'E delta','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Delta (BTU ISO)'
EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N'Energy Consumption Delta This Interval (BTU ISO)', 'M'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Delta','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'E delta','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuiso','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Delta (MBTU ISO)'
EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N'Energy Consumption Delta This Interval (MBTU ISO)', 'M'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Delta','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'E delta','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuiso','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Delta (MMBTU ISO)'
EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N'Energy Consumption Delta This Interval (MMBTU ISO)', 'M'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Delta','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'E delta','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuiso','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Rate (J/s)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Rate','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dE/dt','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joulepersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Rate (kJ/s)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Rate','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dE/dt','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joulepersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Rate (BTU 59/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Rate','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dE/dt','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59perhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Rate (MBTU 59/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Rate','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dE/dt','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59perhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Rate (MMBTU 59/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Rate','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dE/dt','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59perhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Rate (BTU ISO/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Rate','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dE/dt','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuisoperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Rate (MBTU ISO/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Rate','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dE/dt','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuisoperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Rate (MMBTU ISO/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Rate','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dE/dt','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuisoperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Rate Delta (J/s)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Rate Delta','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dE/dt delta','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joulepersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Rate Delta (kJ/s)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Rate Delta','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dE/dt delta','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joulepersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Rate Delta (BTU 59/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Rate Delta','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dE/dt delta','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59perhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Rate Delta (MBTU 59/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Rate Delta','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dE/dt delta','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59perhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Rate Delta (MMBTU 59/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Rate Delta','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dE/dt delta','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59perhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Rate Delta (BTU ISO/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Rate Delta','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dE/dt delta','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuisoperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Rate Delta (MBTU ISO/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Rate Delta','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dE/dt delta','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuisoperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Rate Delta (MMBTU ISO/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Rate Delta','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dE/dt delta','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuisoperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Mass Flow Rate (lb av/s)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Mass Flow Rate','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dm/dt water','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/poundpersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Mass Flow Rate Min (lb av/s)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Mass Flow Rate Min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dm/dt water min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/poundpersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Mass Flow Rate Max (lb av/s)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Mass Flow Rate Max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dm/dt water max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/poundpersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Mass Flow Rate Hourly Average (lb av/s)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Mass Flow Rate Hourly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dm/dt water hourly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/poundpersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Mass Flow Rate Daily Average (lb av/s)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Mass Flow Rate Daily Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dm/dt water daily av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/poundpersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Mass Flow Rate Weekly Average (lb av/s)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Mass Flow Rate Weekly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dm/dt water weekly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/poundpersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Mass Flow Rate Monthly Average (lb av/s)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Mass Flow Rate Monthly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dm/dt water monthly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/poundpersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Previous Day Total (kWh)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Previous Day Total','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'E prev day','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/watthour','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Previous Day Total (J)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Previous Day Total','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'E prev day','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joule','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Previous Day Total (kJ)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Previous Day Total','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'E prev day','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joule','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Previous Day Total (GJ)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Previous Day Total','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'E prev day','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/giga','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joule','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Previous Day Total (BTU 59)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Previous Day Total','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'E prev day','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Previous Day Total (MBTU 59)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Previous Day Total','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'E prev day','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Previous Day Total (MMBTU 59)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Previous Day Total','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'E prev day','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Previous Day Total (BTU ISO)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Previous Day Total','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'E prev day','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuiso','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Previous Day Total (MBTU ISO)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Previous Day Total','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'E prev day','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuiso','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Previous Day Total (MMBTU ISO)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Previous Day Total','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'E prev day','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuiso','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Delta Previous Day Total (kWh)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Delta Previous Day Total','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'E delta prev day','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/watthour','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Delta Previous Day Total (J)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Delta Previous Day Total','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'E delta prev day','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joule','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Delta Previous Day Total (kJ)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Delta Previous Day Total','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'E delta prev day','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joule','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Delta Previous Day Total (GJ)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Delta Previous Day Total','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'E delta prev day','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/giga','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joule','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Delta Previous Day Total (BTU 59)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Delta Previous Day Total','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'E delta prev day','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Delta Previous Day Total (MBTU 59)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Delta Previous Day Total','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'E delta prev day','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Delta Previous Day Total (MMBTU 59)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Delta Previous Day Total','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'E delta prev day','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Delta Previous Day Total (BTU ISO)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Delta Previous Day Total','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'E delta prev day','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuiso','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Delta Previous Day Total (MBTU ISO)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Delta Previous Day Total','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'E delta prev day','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuiso','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Delta Previous Day Total (MMBTU ISO)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Delta Previous Day Total','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'E delta prev day','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuiso','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Current Day Total (kWh)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Current Day Total','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'E current day','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/watthour','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Current Day Total (J)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Current Day Total','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'E current day','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joule','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Current Day Total (kJ)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Current Day Total','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'E current day','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joule','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Current Day Total (GJ)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Current Day Total','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'E current day','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/giga','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joule','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Current Day Total (BTU 59)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Current Day Total','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'E current day','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Current Day Total (MBTU 59)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Current Day Total','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'E current day','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Current Day Total (MMBTU 59)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Current Day Total','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'E current day','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Current Day Total (BTU ISO)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Current Day Total','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'E current day','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuiso','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Current Day Total (MBTU ISO)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Current Day Total','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'E current day','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuiso','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Current Day Total (MMBTU ISO)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Current Day Total','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'E current day','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuiso','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Delta Current Day Total (kWh)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Delta Current Day Total','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'E delta current day','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/watthour','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Delta Current Day Total (J)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Delta Current Day Total','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'E delta current day','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joule','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Delta Current Day Total (kJ)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Delta Current Day Total','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'E delta current day','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joule','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Delta Current Day Total (GJ)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Delta Current Day Total','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'E delta current day','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/giga','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joule','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Delta Current Day Total (BTU 59)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Delta Current Day Total','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'E delta current day','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Delta Current Day Total (MBTU 59)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Delta Current Day Total','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'E delta current day','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Delta Current Day Total (MMBTU 59)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Delta Current Day Total','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'E delta current day','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Delta Current Day Total (BTU ISO)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Delta Current Day Total','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'E delta current day','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuiso','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Delta Current Day Total (MBTU ISO)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Delta Current Day Total','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'E delta current day','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuiso','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Delta Current Day Total (MMBTU ISO)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Delta Current Day Total','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'E delta current day','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuiso','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption This Interval (kWh)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption This Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'E this int','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/watthour','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption This Interval (J)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption This Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'E this int','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joule','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption This Interval (kJ)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption This Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'E this int','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joule','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption This Interval (GJ)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption This Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'E this int','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/giga','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joule','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption This Interval (BTU 59)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption This Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'E this int','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption This Interval (MBTU 59)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption This Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'E this int','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption This Interval (MMBTU 59)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption This Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'E this int','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption This Interval (BTU ISO)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption This Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'E this int','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuiso','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption This Interval (MBTU ISO)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption This Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'E this int','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuiso','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption This Interval (MMBTU ISO)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption This Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'E this int','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuiso','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Delta This Interval (kWh)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Delta This Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'E delta this int','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/watthour','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Delta This Interval (J)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Delta This Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'E delta this int','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joule','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Delta This Interval (kJ)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Delta This Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'E delta this int','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joule','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Delta This Interval (GJ)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Delta This Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'E delta this int','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/giga','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joule','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Delta This Interval (BTU 59)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Delta This Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'E delta this int','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Delta This Interval (MBTU 59)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Delta This Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'E delta this int','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Delta This Interval (MMBTU 59)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Delta This Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'E delta this int','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Delta This Interval (BTU ISO)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Delta This Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'E delta this int','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuiso','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Delta This Interval (MBTU ISO)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Delta This Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'E delta this int','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuiso','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Delta This Interval (MMBTU ISO)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Delta This Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'E delta this int','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuiso','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Wastewater Mass Flow Rate (lb av/s)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Mass Flow Rate','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dm/dt wastewater','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/poundpersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Wastewater Mass Flow Rate Min (lb av/s)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Mass Flow Rate Min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dm/dt wastewater min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/poundpersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Wastewater Mass Flow Rate Max (lb av/s)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Mass Flow Rate Max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dm/dt wastewater max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/poundpersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Wastewater Mass Flow Rate Hourly Average (lb av/s)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Mass Flow Rate Hourly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dm/dt wastewater hourly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/poundpersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Wastewater Mass Flow Rate Daily Average (lb av/s)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Mass Flow Rate Daily Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dm/dt wastewater daily av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/poundpersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Wastewater Mass Flow Rate Weekly Average (lb av/s)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Mass Flow Rate Weekly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dm/dt wastewater weekly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/poundpersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Wastewater Mass Flow Rate Monthly Average (lb av/s)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Mass Flow Rate Monthly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dm/dt wastewater monthly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/poundpersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Supply (L)'
EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N'Water Volume Supply This Interval (L)', 'M'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Supply','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V water supply','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/litre','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Supply (hL)'
EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N'Water Volume Supply This Interval (hL)', 'M'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Supply','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V water supply','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/hecto','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/litre','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Supply (cf)'
EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N'Water Volume Supply This Interval (cf)', 'M'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Supply','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V water supply','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfoot','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Supply (Ccf)'
EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N'Water Volume Supply This Interval (Ccf)', 'M' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Supply','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V water supply','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/hecta','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfoot','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Supply (Mcf)'
EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N'Water Volume Supply This Interval (Mcf)', 'M' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Supply','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V water supply','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfoot','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Supply (MMcf)'
EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N'Water Volume Supply This Interval (MMcf)', 'M' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Supply','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V water supply','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfoot','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Supply (gal)'
EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N'Water Volume Supply This Interval (gal)', 'M' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Supply','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V water supply','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/gallon','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Return (L)'

EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N'Water Volume Return (L)', 'M' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Return','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V water return','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/litre','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Return (hL)'

EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N'Water Volume Return (hL)', 'M' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Return','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V water return','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/hecto','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/litre','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Return (cf)'

EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N'Water Volume Return (cf)', 'M' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Return','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V water return','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfoot','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Return (Ccf)'

EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N'Water Volume Return (Ccf)', 'M' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Return','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V water return','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/hecta','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfoot','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Return (Mcf)'

EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N'Water Volume Return (Mcf)', 'M' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Return','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V water return','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfoot','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Return (MMcf)'

EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N'Water Volume Return (MMcf)', 'M' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Return','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V water return','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfoot','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Return (gal)'
EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N'Water Volume Return (gal)', 'M' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Return','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V water return','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/gallon','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Delta (L)'
EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N'Water Volume Delta This Interval (L)', 'M'    
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Delta','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V water delta','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/litre','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Delta (hL)'
EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N'Water Volume Delta This Interval (hL)', 'M'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Delta','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V water delta','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/hecto','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/litre','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Delta (cf)'
EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N'Water Volume Delta This Interval (cf)', 'M'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Delta','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V water delta','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfoot','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Delta (Ccf)'
EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N'Water Volume Delta This Interval (Ccf)', 'M'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Delta','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V water delta','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/hecta','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfoot','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Delta (Mcf)'
EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N'Water Volume Delta This Interval (Mcf)', 'M'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Delta','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V water delta','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfoot','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Delta (MMcf)'
EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N'Water Volume Delta This Interval (MMcf)', 'M'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Delta','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V water delta','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfoot','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Delta (gal)'
EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N'Water Volume Delta This Interval (gal)', 'M'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Delta','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V water delta','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/gallon','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Supply Previous Day Total (L)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Supply Previous Day Total','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V water supply prev day','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/litre','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Supply Previous Day Total (hL)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Supply Previous Day Total','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V water supply prev day','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/hecto','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/litre','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Supply Previous Day Total (cf)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Supply Previous Day Total','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V water supply prev day','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfoot','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Supply Previous Day Total (Ccf)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Supply Previous Day Total','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V water supply prev day','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/hecta','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfoot','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Supply Previous Day Total (Mcf)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Supply Previous Day Total','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V water supply prev day','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfoot','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Supply Previous Day Total (MMcf)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Supply Previous Day Total','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V water supply prev day','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfoot','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Supply Previous Day Total (gal)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Supply Previous Day Total','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V water supply prev day','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/gallon','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Return Previous Day Total (L)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Return Previous Day Total','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V water return prev day','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/litre','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Return Previous Day Total (hL)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Return Previous Day Total','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V water return prev day','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/hecto','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/litre','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Return Previous Day Total (cf)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Return Previous Day Total','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V water return prev day','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfoot','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Return Previous Day Total (Ccf)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Return Previous Day Total','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V water return prev day','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/hecta','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfoot','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Return Previous Day Total (Mcf)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Return Previous Day Total','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V water return prev day','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfoot','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Return Previous Day Total (MMcf)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Return Previous Day Total','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V water return prev day','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfoot','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Return Previous Day Total (gal)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Return Previous Day Total','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V water return prev day','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/gallon','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Delta Previous Day Total (L)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Delta Previous Day Total','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V water delta prev day','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/litre','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Delta Previous Day Total (hL)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Delta Previous Day Total','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V water delta prev day','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/hecto','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/litre','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Delta Previous Day Total (cf)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Delta Previous Day Total','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V water delta prev day','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfoot','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Delta Previous Day Total (Ccf)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Delta Previous Day Total','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V water delta prev day','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/hecta','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfoot','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Delta Previous Day Total (Mcf)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Delta Previous Day Total','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V water delta prev day','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfoot','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Delta Previous Day Total (MMcf)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Delta Previous Day Total','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V water delta prev day','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfoot','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Delta Previous Day Total (gal)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Delta Previous Day Total','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V water delta prev day','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/gallon','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Supply Current Day Total (L)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Supply Current Day Total','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V water supply current day','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/litre','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Supply Current Day Total (hL)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Supply Current Day Total','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V water supply current day','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/hecto','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/litre','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Supply Current Day Total (cf)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Supply Current Day Total','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V water supply current day','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfoot','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Supply Current Day Total (Ccf)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Supply Current Day Total','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V water supply current day','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/hecta','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfoot','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Supply Current Day Total (Mcf)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Supply Current Day Total','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V water supply current day','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfoot','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Supply Current Day Total (MMcf)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Supply Current Day Total','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V water supply current day','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfoot','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Supply Current Day Total (gal)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Supply Current Day Total','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V water supply current day','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/gallon','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Return Current Day Total (L)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Return Current Day Total','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V water return current day','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/litre','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Return Current Day Total (hL)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Return Current Day Total','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V water return current day','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/hecto','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/litre','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Return Current Day Total (cf)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Return Current Day Total','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V water return current day','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfoot','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Return Current Day Total (Ccf)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Return Current Day Total','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V water return current day','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/hecta','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfoot','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Return Current Day Total (Mcf)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Return Current Day Total','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V water return current day','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfoot','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Return Current Day Total (MMcf)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Return Current Day Total','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V water return current day','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfoot','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Return Current Day Total (gal)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Return Current Day Total','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V water return current day','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/gallon','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Delta Current Day Total (L)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Delta Current Day Total','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V water delta current day','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/litre','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Delta Current Day Total (hL)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Delta Current Day Total','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V water delta current day','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/hecto','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/litre','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Delta Current Day Total (cf)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Delta Current Day Total','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V water delta current day','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfoot','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Delta Current Day Total (Ccf)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Delta Current Day Total','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V water delta current day','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/hecta','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfoot','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Delta Current Day Total (Mcf)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Delta Current Day Total','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V water delta current day','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfoot','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Delta Current Day Total (MMcf)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Delta Current Day Total','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V water delta current day','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfoot','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Delta Current Day Total (gal)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Delta Current Day Total','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V water delta current day','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/gallon','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Supply This Interval (L)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Supply This Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V water supply this int','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/litre','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Supply This Interval (hL)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Supply This Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V water supply this int','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/hecto','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/litre','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Supply This Interval (cf)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Supply This Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V water supply this int','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfoot','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Supply This Interval (Ccf)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Supply This Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V water supply this int','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/hecta','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfoot','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Supply This Interval (Mcf)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Supply This Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V water supply this int','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfoot','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Supply This Interval (MMcf)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Supply This Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V water supply this int','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfoot','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Return This Interval (L)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Return This Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V water return this int','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/litre','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Return This Interval (hL)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Return This Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V water return this int','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/hecto','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/litre','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Return This Interval (cf)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Return This Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V water return this int','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfoot','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Return This Interval (Ccf)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Return This Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V water return this int','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/hecta','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfoot','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Return This Interval (Mcf)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Return This Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V water return this int','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfoot','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Return This Interval (MMcf)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Return This Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V water return this int','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfoot','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Delta This Interval (L)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Delta This Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V water delta this int','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/litre','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Delta This Interval (hL)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Delta This Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V water delta this int','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/hecto','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/litre','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Delta This Interval (cf)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Delta This Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V water delta this int','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfoot','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Delta This Interval (Ccf)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Delta This Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V water delta this int','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/hecta','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfoot','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Delta This Interval (Mcf)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Delta This Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V water delta this int','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfoot','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Delta This Interval (MMcf)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Delta This Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V water delta this int','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfoot','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Supply (m%5E3/min)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Supply','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water supply','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterpermin','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Supply (m%5E3/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Supply','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water supply','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Supply (gal/s)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Supply','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water supply','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/gallonpersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Supply (gal/min)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Supply','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water supply','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/gallonpermin','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Supply (gal/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Supply','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water supply','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/gallonperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Supply (cf/s)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Supply','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water supply','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootpersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Supply (cf/min)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Supply','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water supply','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootpermin','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Supply (cf/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Supply','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water supply','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Supply (L/s)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Supply','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water supply','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/litrepersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Supply (L/min)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Supply','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water supply','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/litrepermin','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Supply (L/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Supply','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water supply','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/litreperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Return (m%5E3/min)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Return','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water return','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterpermin','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Return (m%5E3/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Return','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water return','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Return (gal/s)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Return','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water return','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/gallonpersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Return (gal/min)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Return','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water return','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/gallonpermin','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Return (gal/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Return','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water return','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/gallonperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Return (cf/s)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Return','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water return','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootpersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Return (cf/min)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Return','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water return','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootpermin','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Return (cf/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Return','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water return','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Return (L/s)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Return','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water return','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/litrepersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Return (L/min)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Return','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water return','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/litrepermin','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Return (L/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Return','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water return','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/litreperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Delta (m%5E3/min)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Delta','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water delta','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterpermin','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Delta (m%5E3/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Delta','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water delta','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Delta (gal/s)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Delta','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water delta','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/gallonpersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Delta (gal/min)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Delta','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water delta','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/gallonpermin','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Delta (gal/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Delta','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water delta','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/gallonperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Delta (cf/s)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Delta','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water delta','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootpersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Delta (cf/min)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Delta','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water delta','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootpermin','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Delta (cf/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Delta','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water delta','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Delta (L/s)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Delta','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water delta','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/litrepersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Delta (L/min)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Delta','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water delta','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/litrepermin','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Delta (L/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Delta','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water delta','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/litreperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Supply Min (m%5E3/min)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Supply Min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water supply min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterpermin','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Supply Min (m%5E3/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Supply Min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water supply min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Supply Min (gal/s)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Supply Min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water supply min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/gallonpersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Supply Min (gal/min)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Supply Min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water supply min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/gallonpermin','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Supply Min (gal/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Supply Min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water supply min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/gallonperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Supply Min (cf/s)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Supply Min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water supply min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootpersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Supply Min (cf/min)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Supply Min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water supply min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootpermin','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Supply Min (cf/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Supply Min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water supply min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Supply Min (L/s)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Supply Min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water supply min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/litrepersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Supply Min (L/min)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Supply Min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water supply min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/litrepermin','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Supply Min (L/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Supply Min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water supply min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/litreperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Return Min (m%5E3/min)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Return Min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water return min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterpermin','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Return Min (m%5E3/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Return Min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water return min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Return Min (gal/s)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Return Min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water return min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/gallonpersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Return Min (gal/min)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Return Min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water return min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/gallonpermin','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Return Min (gal/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Return Min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water return min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/gallonperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Return Min (cf/s)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Return Min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water return min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootpersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Return Min (cf/min)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Return Min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water return min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootpermin','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Return Min (cf/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Return Min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water return min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Return Min (L/s)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Return Min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water return min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/litrepersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Return Min (L/min)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Return Min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water return min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/litrepermin','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Return Min (L/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Return Min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water return min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/litreperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Delta Min (m%5E3/min)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Delta Min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water delta min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterpermin','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Delta Min (m%5E3/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Delta Min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water delta min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Delta Min (gal/s)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Delta Min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water delta min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/gallonpersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Delta Min (gal/min)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Delta Min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water delta min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/gallonpermin','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Delta Min (gal/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Delta Min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water delta min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/gallonperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Delta Min (cf/s)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Delta Min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water delta min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootpersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Delta Min (cf/min)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Delta Min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water delta min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootpermin','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Delta Min (cf/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Delta Min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water delta min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Delta Min (L/s)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Delta Min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water delta min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/litrepersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Delta Min (L/min)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Delta Min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water delta min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/litrepermin','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Delta Min (L/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Delta Min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water delta min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/litreperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Supply Max (m%5E3/min)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Supply Max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water supply max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterpermin','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Supply Max (m%5E3/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Supply Max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water supply max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Supply Max (gal/s)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Supply Max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water supply max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/gallonpersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Supply Max (gal/min)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Supply Max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water supply max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/gallonpermin','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Supply Max (gal/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Supply Max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water supply max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/gallonperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Supply Max (cf/s)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Supply Max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water supply max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootpersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Supply Max (cf/min)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Supply Max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water supply max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootpermin','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Supply Max (cf/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Supply Max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water supply max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Supply Max (L/s)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Supply Max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water supply max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/litrepersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Supply Max (L/min)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Supply Max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water supply max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/litrepermin','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Supply Max (L/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Supply Max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water supply max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/litreperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Return Max (m%5E3/min)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Return Max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water return max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterpermin','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Return Max (m%5E3/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Return Max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water return max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Return Max (gal/s)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Return Max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water return max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/gallonpersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Return Max (gal/min)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Return Max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water return max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/gallonpermin','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Return Max (gal/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Return Max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water return max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/gallonperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Return Max (cf/s)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Return Max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water return max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootpersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Return Max (cf/min)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Return Max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water return max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootpermin','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Return Max (cf/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Return Max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water return max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Return Max (L/s)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Return Max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water return max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/litrepersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Return Max (L/min)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Return Max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water return max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/litrepermin','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Return Max (L/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Return Max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water return max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/litreperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Delta Max (m%5E3/min)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Delta Max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water delta max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterpermin','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Delta Max (m%5E3/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Delta Max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water delta max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Delta Max (gal/s)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Delta Max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water delta max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/gallonpersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Delta Max (gal/min)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Delta Max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water delta max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/gallonpermin','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Delta Max (gal/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Delta Max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water delta max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/gallonperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Delta Max (cf/s)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Delta Max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water delta max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootpersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Delta Max (cf/min)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Delta Max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water delta max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootpermin','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Delta Max (cf/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Delta Max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water delta max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Delta Max (L/s)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Delta Max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water delta max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/litrepersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Delta Max (L/min)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Delta Max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water delta max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/litrepermin','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Delta Max (L/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Delta Max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water delta max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/litreperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Supply Hourly Average (m%5E3/min)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Supply Hourly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water supply hourly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterpermin','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Supply Hourly Average (m%5E3/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Supply Hourly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water supply hourly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Supply Hourly Average (gal/s)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Supply Hourly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water supply hourly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/gallonpersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Supply Hourly Average (gal/min)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Supply Hourly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water supply hourly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/gallonpermin','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Supply Hourly Average (gal/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Supply Hourly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water supply hourly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/gallonperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Supply Hourly Average (cf/s)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Supply Hourly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water supply hourly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootpersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Supply Hourly Average (cf/min)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Supply Hourly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water supply hourly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootpermin','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Supply Hourly Average (cf/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Supply Hourly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water supply hourly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Supply Hourly Average (L/s)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Supply Hourly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water supply hourly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/litrepersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Supply Hourly Average (L/min)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Supply Hourly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water supply hourly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/litrepermin','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Supply Hourly Average (L/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Supply Hourly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water supply hourly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/litreperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Return Hourly Average (m%5E3/min)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Return Hourly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water return hourly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterpermin','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Return Hourly Average (m%5E3/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Return Hourly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water return hourly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Return Hourly Average (gal/s)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Return Hourly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water return hourly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/gallonpersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Return Hourly Average (gal/min)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Return Hourly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water return hourly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/gallonpermin','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Return Hourly Average (gal/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Return Hourly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water return hourly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/gallonperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Return Hourly Average (cf/s)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Return Hourly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water return hourly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootpersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Return Hourly Average (cf/min)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Return Hourly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water return hourly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootpermin','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Return Hourly Average (cf/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Return Hourly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water return hourly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Return Hourly Average (L/s)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Return Hourly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water return hourly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/litrepersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Return Hourly Average (L/min)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Return Hourly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water return hourly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/litrepermin','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Return Hourly Average (L/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Return Hourly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water return hourly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/litreperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Delta Hourly Average (m%5E3/min)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Delta Hourly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water delta hourly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterpermin','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Delta Hourly Average (m%5E3/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Delta Hourly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water delta hourly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Delta Hourly Average (gal/s)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Delta Hourly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water delta hourly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/gallonpersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Delta Hourly Average (gal/min)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Delta Hourly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water delta hourly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/gallonpermin','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Delta Hourly Average (gal/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Delta Hourly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water delta hourly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/gallonperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Delta Hourly Average (cf/s)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Delta Hourly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water delta hourly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootpersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Delta Hourly Average (cf/min)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Delta Hourly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water delta hourly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootpermin','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Delta Hourly Average (cf/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Delta Hourly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water delta hourly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Delta Hourly Average (L/s)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Delta Hourly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water delta hourly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/litrepersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Delta Hourly Average (L/min)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Delta Hourly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water delta hourly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/litrepermin','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Delta Hourly Average (L/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Delta Hourly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water delta hourly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/litreperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Supply Daily Average (m%5E3/min)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Supply Daily Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water supply daily av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterpermin','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Supply Daily Average (m%5E3/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Supply Daily Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water supply daily av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Supply Daily Average (gal/s)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Supply Daily Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water supply daily av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/gallonpersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Supply Daily Average (gal/min)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Supply Daily Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water supply daily av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/gallonpermin','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Supply Daily Average (gal/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Supply Daily Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water supply daily av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/gallonperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Supply Daily Average (cf/s)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Supply Daily Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water supply daily av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootpersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Supply Daily Average (cf/min)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Supply Daily Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water supply daily av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootpermin','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Supply Daily Average (cf/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Supply Daily Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water supply daily av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Supply Daily Average (L/s)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Supply Daily Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water supply daily av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/litrepersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Supply Daily Average (L/min)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Supply Daily Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water supply daily av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/litrepermin','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Supply Daily Average (L/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Supply Daily Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water supply daily av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/litreperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Return Daily Average (m%5E3/min)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Return Daily Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water return daily av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterpermin','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Return Daily Average (m%5E3/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Return Daily Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water return daily av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Return Daily Average (gal/s)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Return Daily Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water return daily av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/gallonpersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Return Daily Average (gal/min)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Return Daily Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water return daily av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/gallonpermin','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Return Daily Average (gal/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Return Daily Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water return daily av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/gallonperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Return Daily Average (cf/s)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Return Daily Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water return daily av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootpersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Return Daily Average (cf/min)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Return Daily Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water return daily av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootpermin','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Return Daily Average (cf/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Return Daily Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water return daily av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Return Daily Average (L/s)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Return Daily Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water return daily av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/litrepersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Return Daily Average (L/min)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Return Daily Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water return daily av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/litrepermin','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Return Daily Average (L/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Return Daily Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water return daily av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/litreperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Delta Daily Average (m%5E3/min)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Delta Daily Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water delta daily av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterpermin','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Delta Daily Average (m%5E3/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Delta Daily Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water delta daily av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Delta Daily Average (gal/s)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Delta Daily Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water delta daily av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/gallonpersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Delta Daily Average (gal/min)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Delta Daily Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water delta daily av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/gallonpermin','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Delta Daily Average (gal/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Delta Daily Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water delta daily av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/gallonperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Delta Daily Average (cf/s)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Delta Daily Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water delta daily av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootpersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Delta Daily Average (cf/min)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Delta Daily Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water delta daily av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootpermin','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Delta Daily Average (cf/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Delta Daily Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water delta daily av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Delta Daily Average (L/s)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Delta Daily Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water delta daily av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/litrepersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Delta Daily Average (L/min)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Delta Daily Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water delta daily av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/litrepermin','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Delta Daily Average (L/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Delta Daily Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water delta daily av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/litreperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Supply Weekly Average (m%5E3/min)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Supply Weekly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water supply weekly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterpermin','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Supply Weekly Average (m%5E3/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Supply Weekly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water supply weekly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Supply Weekly Average (gal/s)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Supply Weekly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water supply weekly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/gallonpersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Supply Weekly Average (gal/min)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Supply Weekly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water supply weekly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/gallonpermin','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Supply Weekly Average (gal/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Supply Weekly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water supply weekly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/gallonperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Supply Weekly Average (cf/s)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Supply Weekly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water supply weekly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootpersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Supply Weekly Average (cf/min)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Supply Weekly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water supply weekly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootpermin','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Supply Weekly Average (cf/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Supply Weekly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water supply weekly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Supply Weekly Average (L/s)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Supply Weekly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water supply weekly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/litrepersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Supply Weekly Average (L/min)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Supply Weekly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water supply weekly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/litrepermin','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Supply Weekly Average (L/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Supply Weekly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water supply weekly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/litreperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Return Weekly Average (m%5E3/min)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Return Weekly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water return weekly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterpermin','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Return Weekly Average (m%5E3/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Return Weekly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water return weekly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Return Weekly Average (gal/s)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Return Weekly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water return weekly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/gallonpersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Return Weekly Average (gal/min)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Return Weekly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water return weekly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/gallonpermin','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Return Weekly Average (gal/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Return Weekly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water return weekly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/gallonperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Return Weekly Average (cf/s)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Return Weekly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water return weekly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootpersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Return Weekly Average (cf/min)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Return Weekly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water return weekly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootpermin','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Return Weekly Average (cf/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Return Weekly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water return weekly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Return Weekly Average (L/s)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Return Weekly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water return weekly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/litrepersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Return Weekly Average (L/min)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Return Weekly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water return weekly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/litrepermin','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Return Weekly Average (L/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Return Weekly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water return weekly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/litreperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Delta Weekly Average (m%5E3/min)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Delta Weekly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water delta weekly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterpermin','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Delta Weekly Average (m%5E3/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Delta Weekly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water delta weekly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Delta Weekly Average (gal/s)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Delta Weekly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water delta weekly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/gallonpersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Delta Weekly Average (gal/min)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Delta Weekly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water delta weekly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/gallonpermin','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Delta Weekly Average (gal/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Delta Weekly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water delta weekly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/gallonperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Delta Weekly Average (cf/s)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Delta Weekly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water delta weekly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootpersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Delta Weekly Average (cf/min)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Delta Weekly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water delta weekly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootpermin','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Delta Weekly Average (cf/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Delta Weekly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water delta weekly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Delta Weekly Average (L/s)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Delta Weekly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water delta weekly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/litrepersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Delta Weekly Average (L/min)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Delta Weekly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water delta weekly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/litrepermin','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Delta Weekly Average (L/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Delta Weekly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water delta weekly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/litreperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Supply Monthly Average (m%5E3/min)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Supply Monthly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water supply monthly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterpermin','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Supply Monthly Average (m%5E3/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Supply Monthly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water supply monthly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Supply Monthly Average (gal/s)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Supply Monthly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water supply monthly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/gallonpersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Supply Monthly Average (gal/min)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Supply Monthly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water supply monthly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/gallonpermin','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Supply Monthly Average (gal/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Supply Monthly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water supply monthly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/gallonperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Supply Monthly Average (cf/s)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Supply Monthly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water supply monthly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootpersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Supply Monthly Average (cf/min)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Supply Monthly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water supply monthly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootpermin','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Supply Monthly Average (cf/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Supply Monthly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water supply monthly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Supply Monthly Average (L/s)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Supply Monthly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water supply monthly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/litrepersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Supply Monthly Average (L/min)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Supply Monthly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water supply monthly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/litrepermin','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Supply Monthly Average (L/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Supply Monthly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water supply monthly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/litreperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Return Monthly Average (m%5E3/min)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Return Monthly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water return monthly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterpermin','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Return Monthly Average (m%5E3/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Return Monthly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water return monthly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Return Monthly Average (gal/s)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Return Monthly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water return monthly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/gallonpersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Return Monthly Average (gal/min)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Return Monthly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water return monthly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/gallonpermin','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Return Monthly Average (gal/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Return Monthly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water return monthly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/gallonperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Return Monthly Average (cf/s)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Return Monthly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water return monthly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootpersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Return Monthly Average (cf/min)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Return Monthly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water return monthly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootpermin','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Return Monthly Average (cf/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Return Monthly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water return monthly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Return Monthly Average (L/s)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Return Monthly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water return monthly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/litrepersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Return Monthly Average (L/min)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Return Monthly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water return monthly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/litrepermin','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Return Monthly Average (L/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Return Monthly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water return monthly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/litreperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Delta Monthly Average (m%5E3/min)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Delta Monthly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water delta monthly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterpermin','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Delta Monthly Average (m%5E3/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Delta Monthly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water delta monthly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Delta Monthly Average (gal/s)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Delta Monthly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water delta monthly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/gallonpersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Delta Monthly Average (gal/min)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Delta Monthly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water delta monthly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/gallonpermin','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Delta Monthly Average (gal/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Delta Monthly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water delta monthly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/gallonperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Delta Monthly Average (cf/s)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Delta Monthly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water delta monthly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootpersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Delta Monthly Average (cf/min)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Delta Monthly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water delta monthly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootpermin','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Delta Monthly Average (cf/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Delta Monthly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water delta monthly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Delta Monthly Average (L/s)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Delta Monthly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water delta monthly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/litrepersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Delta Monthly Average (L/min)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Delta Monthly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water delta monthly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/litrepermin','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Delta Monthly Average (L/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Delta Monthly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water delta monthly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/litreperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Rate Min (J/s)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Rate Min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dE/dt min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joulepersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Rate Min (kJ/s)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Rate Min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dE/dt min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joulepersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Rate Min (BTU 59/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Rate Min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dE/dt min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59perhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Rate Min (MBTU 59/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Rate Min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dE/dt min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59perhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Rate Min (MMBTU 59/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Rate Min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dE/dt min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59perhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Rate Min (BTU ISO/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Rate Min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dE/dt min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuisoperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Rate Min (MBTU ISO/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Rate Min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dE/dt min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuisoperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Rate Min (MMBTU ISO/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Rate Min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dE/dt min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuisoperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Rate Delta Min (J/s)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Rate Delta Min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dE/dt delta min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joulepersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Rate Delta Min (kJ/s)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Rate Delta Min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dE/dt delta min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joulepersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Rate Delta Min (BTU 59/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Rate Delta Min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dE/dt delta min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59perhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Rate Delta Min (MBTU 59/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Rate Delta Min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dE/dt delta min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59perhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Rate Delta Min (MMBTU 59/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Rate Delta Min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dE/dt delta min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59perhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Rate Delta Min (BTU ISO/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Rate Delta Min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dE/dt delta min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuisoperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Rate Delta Min (MBTU ISO/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Rate Delta Min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dE/dt delta min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuisoperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Rate Delta Min (MMBTU ISO/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Rate Delta Min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dE/dt delta min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuisoperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Rate Max (J/s)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Rate Max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dE/dt max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joulepersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Rate Max (kJ/s)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Rate Max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dE/dt max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joulepersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Rate Max (BTU 59/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Rate Max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dE/dt max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59perhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Rate Max (MBTU 59/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Rate Max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dE/dt max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59perhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Rate Max (MMBTU 59/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Rate Max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dE/dt max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59perhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Rate Max (BTU ISO/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Rate Max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dE/dt max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuisoperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Rate Max (MBTU ISO/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Rate Max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dE/dt max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuisoperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Rate Max (MMBTU ISO/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Rate Max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dE/dt max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuisoperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Rate Delta Max (J/s)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Rate Delta Max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dE/dt delta max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joulepersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Rate Delta Max (kJ/s)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Rate Delta Max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dE/dt delta max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joulepersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Rate Delta Max (BTU 59/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Rate Delta Max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dE/dt delta max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59perhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Rate Delta Max (MBTU 59/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Rate Delta Max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dE/dt delta max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59perhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Rate Delta Max (MMBTU 59/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Rate Delta Max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dE/dt delta max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59perhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Rate Delta Max (BTU ISO/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Rate Delta Max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dE/dt delta max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuisoperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Rate Delta Max (MBTU ISO/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Rate Delta Max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dE/dt delta max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuisoperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Rate Delta Max (MMBTU ISO/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Rate Delta Max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dE/dt delta max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuisoperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Rate Hourly Average (J/s)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Rate Hourly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dE/dt hourly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joulepersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Rate Hourly Average (kJ/s)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Rate Hourly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dE/dt hourly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joulepersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Rate Hourly Average (BTU 59/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Rate Hourly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dE/dt hourly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59perhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Rate Hourly Average (MBTU 59/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Rate Hourly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dE/dt hourly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59perhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Rate Hourly Average (MMBTU 59/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Rate Hourly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dE/dt hourly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59perhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Rate Hourly Average (BTU ISO/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Rate Hourly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dE/dt hourly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuisoperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Rate Hourly Average (MBTU ISO/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Rate Hourly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dE/dt hourly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuisoperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Rate Hourly Average (MMBTU ISO/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Rate Hourly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dE/dt hourly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuisoperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Rate Delta Hourly Average (J/s)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Rate Delta Hourly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dE/dt delta hourly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joulepersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Rate Delta Hourly Average (kJ/s)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Rate Delta Hourly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dE/dt delta hourly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joulepersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Rate Delta Hourly Average (BTU 59/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Rate Delta Hourly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dE/dt delta hourly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59perhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Rate Delta Hourly Average (MBTU 59/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Rate Delta Hourly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dE/dt delta hourly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59perhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Rate Delta Hourly Average (MMBTU 59/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Rate Delta Hourly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dE/dt delta hourly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59perhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Rate Delta Hourly Average (BTU ISO/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Rate Delta Hourly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dE/dt delta hourly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuisoperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Rate Delta Hourly Average (MBTU ISO/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Rate Delta Hourly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dE/dt delta hourly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuisoperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Rate Delta Hourly Average (MMBTU ISO/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Rate Delta Hourly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dE/dt delta hourly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuisoperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Rate Daily Average (J/s)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Rate Daily Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dE/dt daily av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joulepersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Rate Daily Average (kJ/s)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Rate Daily Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dE/dt daily av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joulepersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Rate Daily Average (BTU 59/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Rate Daily Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dE/dt daily av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59perhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Rate Daily Average (MBTU 59/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Rate Daily Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dE/dt daily av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59perhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Rate Daily Average (MMBTU 59/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Rate Daily Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dE/dt daily av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59perhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Rate Daily Average (BTU ISO/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Rate Daily Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dE/dt daily av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuisoperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Rate Daily Average (MBTU ISO/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Rate Daily Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dE/dt daily av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuisoperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Rate Daily Average (MMBTU ISO/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Rate Daily Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dE/dt daily av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuisoperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Rate Delta Daily Average (J/s)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Rate Delta Daily Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dE/dt delta daily av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joulepersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Rate Delta Daily Average (kJ/s)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Rate Delta Daily Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dE/dt delta daily av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joulepersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Rate Delta Daily Average (BTU 59/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Rate Delta Daily Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dE/dt delta daily av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59perhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Rate Delta Daily Average (MBTU 59/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Rate Delta Daily Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dE/dt delta daily av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59perhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Rate Delta Daily Average (MMBTU 59/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Rate Delta Daily Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dE/dt delta daily av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59perhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Rate Delta Daily Average (BTU ISO/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Rate Delta Daily Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dE/dt delta daily av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuisoperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Rate Delta Daily Average (MBTU ISO/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Rate Delta Daily Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dE/dt delta daily av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuisoperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Rate Delta Daily Average (MMBTU ISO/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Rate Delta Daily Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dE/dt delta daily av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuisoperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Rate Weekly Average (J/s)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Rate Weekly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dE/dt weekly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joulepersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Rate Weekly Average (kJ/s)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Rate Weekly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dE/dt weekly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joulepersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Rate Weekly Average (BTU 59/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Rate Weekly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dE/dt weekly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59perhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Rate Weekly Average (MBTU 59/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Rate Weekly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dE/dt weekly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59perhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Rate Weekly Average (MMBTU 59/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Rate Weekly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dE/dt weekly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59perhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Rate Weekly Average (BTU ISO/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Rate Weekly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dE/dt weekly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuisoperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Rate Weekly Average (MBTU ISO/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Rate Weekly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dE/dt weekly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuisoperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Rate Weekly Average (MMBTU ISO/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Rate Weekly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dE/dt weekly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuisoperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Rate Delta Weekly Average (J/s)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Rate Delta Weekly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dE/dt delta weekly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joulepersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Rate Delta Weekly Average (kJ/s)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Rate Delta Weekly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dE/dt delta weekly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joulepersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Rate Delta Weekly Average (BTU 59/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Rate Delta Weekly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dE/dt delta weekly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59perhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Rate Delta Weekly Average (MBTU 59/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Rate Delta Weekly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dE/dt delta weekly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59perhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Rate Delta Weekly Average (MMBTU 59/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Rate Delta Weekly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dE/dt delta weekly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59perhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Rate Delta Weekly Average (BTU ISO/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Rate Delta Weekly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dE/dt delta weekly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuisoperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Rate Delta Weekly Average (MBTU ISO/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Rate Delta Weekly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dE/dt delta weekly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuisoperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Rate Delta Weekly Average (MMBTU ISO/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Rate Delta Weekly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dE/dt delta weekly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuisoperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Rate Monthly Average (J/s)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Rate Monthly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dE/dt monthly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joulepersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Rate Monthly Average (kJ/s)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Rate Monthly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dE/dt monthly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joulepersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Rate Monthly Average (BTU 59/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Rate Monthly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dE/dt monthly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59perhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Rate Monthly Average (MBTU 59/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Rate Monthly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dE/dt monthly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59perhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Rate Monthly Average (MMBTU 59/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Rate Monthly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dE/dt monthly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59perhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Rate Monthly Average (BTU ISO/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Rate Monthly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dE/dt monthly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuisoperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Rate Monthly Average (MBTU ISO/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Rate Monthly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dE/dt monthly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuisoperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Rate Monthly Average (MMBTU ISO/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Rate Monthly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dE/dt monthly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuisoperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Rate Delta Monthly Average (J/s)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Rate Delta Monthly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dE/dt delta monthly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joulepersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Rate Delta Monthly Average (kJ/s)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Rate Delta Monthly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dE/dt delta monthly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joulepersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Rate Delta Monthly Average (BTU 59/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Rate Delta Monthly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dE/dt delta monthly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59perhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Rate Delta Monthly Average (MBTU 59/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Rate Delta Monthly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dE/dt delta monthly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59perhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Rate Delta Monthly Average (MMBTU 59/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Rate Delta Monthly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dE/dt delta monthly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59perhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Rate Delta Monthly Average (BTU ISO/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Rate Delta Monthly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dE/dt delta monthly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuisoperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Rate Delta Monthly Average (MBTU ISO/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Rate Delta Monthly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dE/dt delta monthly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuisoperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Rate Delta Monthly Average (MMBTU ISO/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Rate Delta Monthly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dE/dt delta monthly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuisoperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Steam Mass Flow Rate (lb av/s)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Mass Flow Rate','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dm/dt steam','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/poundpersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Steam Mass Flow Rate Min (lb av/s)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Mass Flow Rate Min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dm/dt steam min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/poundpersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Steam Mass Flow Rate Max (lb av/s)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Mass Flow Rate Max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dm/dt steam max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/poundpersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Steam Mass Flow Rate Hourly Average (lb av/s)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Mass Flow Rate Hourly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dm/dt steam hourly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/poundpersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Steam Mass Flow Rate Daily Average (lb av/s)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Mass Flow Rate Daily Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dm/dt steam daily av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/poundpersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Steam Mass Flow Rate Weekly Average (lb av/s)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Mass Flow Rate Weekly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dm/dt steam weekly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/poundpersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Steam Mass Flow Rate Monthly Average (lb av/s)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Mass Flow Rate Monthly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dm/dt steam monthly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/poundpersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption (J)'
EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N'Energy Consumption This Interval (J)', 'M'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'E','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joule','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Delta (J)'
EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N'Energy Consumption Delta This Interval (J)', 'M' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Delta','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'E delta','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joule','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Mass Flow Rate 15 Minute Average (lb av/s)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Mass Flow Rate 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dm/dt water 15 min av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/poundpersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Last Interval (kWh)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Last Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'E last int','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/watthour','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Last Interval (J)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Last Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'E last int','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joule','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Last Interval (kJ)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Last Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'E last int','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joule','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Last Interval (GJ)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Last Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'E last int','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/giga','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joule','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Last Interval (BTU 59)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Last Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'E last int','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Last Interval (MBTU 59)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Last Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'E last int','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Last Interval (MMBTU 59)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Last Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'E last int','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Last Interval (BTU ISO)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Last Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'E last int','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuiso','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Last Interval (MBTU ISO)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Last Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'E last int','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuiso','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Last Interval (MMBTU ISO)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Last Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'E last int','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuiso','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Delta Last Interval (kWh)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Delta Last Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'E delta last int','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/watthour','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Delta Last Interval (J)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Delta Last Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'E delta last int','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joule','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Delta Last Interval (kJ)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Delta Last Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'E delta last int','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joule','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Delta Last Interval (GJ)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Delta Last Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'E delta last int','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/giga','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joule','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Delta Last Interval (BTU 59)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Delta Last Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'E delta last int','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Delta Last Interval (MBTU 59)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Delta Last Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'E delta last int','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Delta Last Interval (MMBTU 59)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Delta Last Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'E delta last int','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Delta Last Interval (BTU ISO)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Delta Last Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'E delta last int','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuiso','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Delta Last Interval (MBTU ISO)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Delta Last Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'E delta last int','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuiso','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Delta Last Interval (MMBTU ISO)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Delta Last Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'E delta last int','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuiso','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Wastewater Mass Flow Rate 15 Minute Average (lb av/s)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Wastewater Mass Flow Rate 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dm/dt wastewater 15 min av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/poundpersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Supply Last Interval (L)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Supply Last Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V water supply last int','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/litre','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Supply Last Interval (hL)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Supply Last Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V water supply last int','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/hecto','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/litre','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Supply Last Interval (cf)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Supply Last Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V water supply last int','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfoot','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Supply Last Interval (Ccf)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Supply Last Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V water supply last int','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/hecta','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfoot','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Supply Last Interval (Mcf)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Supply Last Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V water supply last int','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfoot','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Supply Last Interval (MMcf)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Supply Last Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V water supply last int','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfoot','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Supply Last Interval (gal)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Supply Last Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V water supply last int','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/gallon','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Return Last Interval (L)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Return Last Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V water return last int','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/litre','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Return Last Interval (hL)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Return Last Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V water return last int','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/hecto','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/litre','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Return Last Interval (cf)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Return Last Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V water return last int','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfoot','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Return Last Interval (Ccf)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Return Last Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V water return last int','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/hecta','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfoot','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Return Last Interval (Mcf)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Return Last Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V water return last int','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfoot','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Return Last Interval (MMcf)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Return Last Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V water return last int','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfoot','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Return Last Interval (gal)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Return Last Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V water return last int','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/gallon','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Delta Last Interval (L)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Delta Last Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V water delta last int','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/litre','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Delta Last Interval (hL)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Delta Last Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V water delta last int','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/hecto','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/litre','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Delta Last Interval (cf)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Delta Last Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V water delta last int','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfoot','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Delta Last Interval (Ccf)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Delta Last Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V water delta last int','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/hecta','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfoot','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Delta Last Interval (Mcf)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Delta Last Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V water delta last int','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfoot','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Delta Last Interval (MMcf)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Delta Last Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V water delta last int','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfoot','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Delta Last Interval (gal)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Delta Last Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V water delta last int','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/gallon','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Supply 15 Minute Average (m%5E3/min)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Supply 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water supply 15 min av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterpermin','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Supply 15 Minute Average (m%5E3/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Supply 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water supply 15 min av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Supply 15 Minute Average (gal/s)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Supply 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water supply 15 min av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/gallonpersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Supply 15 Minute Average (gal/min)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Supply 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water supply 15 min av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/gallonpermin','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Supply 15 Minute Average (gal/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Supply 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water supply 15 min av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/gallonperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Supply 15 Minute Average (cf/s)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Supply 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water supply 15 min av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootpersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Supply 15 Minute Average (cf/min)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Supply 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water supply 15 min av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootpermin','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Supply 15 Minute Average (cf/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Supply 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water supply 15 min av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Supply 15 Minute Average (L/s)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Supply 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water supply 15 min av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/litrepersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Supply 15 Minute Average (L/min)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Supply 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water supply 15 min av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/litrepermin','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Supply 15 Minute Average (L/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Supply 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water supply 15 min av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/litreperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Return 15 Minute Average (m%5E3/min)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Return 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water return 15 min av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterpermin','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Return 15 Minute Average (m%5E3/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Return 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water return 15 min av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Return 15 Minute Average (gal/s)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Return 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water return 15 min av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/gallonpersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Return 15 Minute Average (gal/min)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Return 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water return 15 min av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/gallonpermin','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Return 15 Minute Average (gal/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Return 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water return 15 min av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/gallonperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Return 15 Minute Average (cf/s)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Return 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water return 15 min av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootpersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Return 15 Minute Average (cf/min)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Return 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water return 15 min av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootpermin','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Return 15 Minute Average (cf/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Return 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water return 15 min av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Return 15 Minute Average (L/s)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Return 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water return 15 min av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/litrepersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Return 15 Minute Average (L/min)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Return 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water return 15 min av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/litrepermin','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Return 15 Minute Average (L/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Return 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water return 15 min av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/litreperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Delta 15 Minute Average (m%5E3/min)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Delta 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water delta 15 min av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterpermin','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Delta 15 Minute Average (m%5E3/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Delta 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water delta 15 min av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Delta 15 Minute Average (gal/s)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Delta 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water delta 15 min av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/gallonpersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Delta 15 Minute Average (gal/min)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Delta 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water delta 15 min av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/gallonpermin','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Delta 15 Minute Average (gal/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Delta 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water delta 15 min av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/gallonperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Delta 15 Minute Average (cf/s)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Delta 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water delta 15 min av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootpersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Delta 15 Minute Average (cf/min)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Delta 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water delta 15 min av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootpermin','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Delta 15 Minute Average (cf/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Delta 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water delta 15 min av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicfootperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Delta 15 Minute Average (L/s)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Delta 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water delta 15 min av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/litrepersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Delta 15 Minute Average (L/min)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Delta 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water delta 15 min av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/litrepermin','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Delta 15 Minute Average (L/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Delta 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water delta 15 min av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/litreperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Rate 15 Minute Average (J/s)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Rate 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dE/dt 15 min av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joulepersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Rate 15 Minute Average (kJ/s)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Rate 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dE/dt 15 min av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joulepersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Rate 15 Minute Average (BTU 59/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Rate 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dE/dt 15 min av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59perhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Rate 15 Minute Average (MBTU 59/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Rate 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dE/dt 15 min av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59perhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Rate 15 Minute Average (MMBTU 59/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Rate 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dE/dt 15 min av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59perhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Rate 15 Minute Average (BTU ISO/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Rate 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dE/dt 15 min av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuisoperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Rate 15 Minute Average (MBTU ISO/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Rate 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dE/dt 15 min av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuisoperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Rate 15 Minute Average (MMBTU ISO/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Rate 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dE/dt 15 min av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuisoperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Rate Delta 15 Minute Average (J/s)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Rate Delta 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dE/dt delta 15 min av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joulepersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Rate Delta 15 Minute Average (kJ/s)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Rate Delta 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dE/dt delta 15 min av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joulepersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Rate Delta 15 Minute Average (BTU 59/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Rate Delta 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dE/dt delta 15 min av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59perhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Rate Delta 15 Minute Average (MBTU 59/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Rate Delta 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dE/dt delta 15 min av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59perhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Rate Delta 15 Minute Average (MMBTU 59/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Rate Delta 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dE/dt delta 15 min av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btu59perhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Rate Delta 15 Minute Average (BTU ISO/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Rate Delta 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dE/dt delta 15 min av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuisoperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Rate Delta 15 Minute Average (MBTU ISO/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Rate Delta 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dE/dt delta 15 min av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/kilo','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuisoperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Rate Delta 15 Minute Average (MMBTU ISO/h)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Rate Delta 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dE/dt delta 15 min av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/btuisoperhr','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Steam Mass Flow Rate 15 Minute Average (lb av/s)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Steam Mass Flow Rate 15 Minute Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dm/dt steam 15 minute av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/poundpersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Supply This Interval (gal)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Supply This Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V water supply this int','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/gallon','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Return This Interval (gal)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Return This Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V water return this int','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/gallon','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Delta This Interval (gal)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Delta This Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V water delta this int','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/gallon','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Supply (m%5E3)'
EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N'Water Volume Supply This Interval (m%5E3)', 'M'   
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Supply','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V water supply','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeter','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Return (m%5E3)'
EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N'Water Volume Return This Interval (m%5E3)', 'M'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Return','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V water return','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeter','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Delta (m%5E3)'
EXEC spTS_StandardRelationship_Add @measurement, N'cumulative', N'Water Volume Delta This Interval (m%5E3)', 'M'  
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Delta','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V water delta','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeter','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Supply Previous Day Total (m%5E3)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Supply Previous Day Total','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V water supply prev day','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeter','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Return Previous Day Total (m%5E3)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Return Previous Day Total','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V water return prev day','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeter','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Delta Previous Day Total (m%5E3)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Delta Previous Day Total','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V water delta prev day','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeter','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Supply Current Day Total (m%5E3)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Supply Current Day Total','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V water supply current day','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeter','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Return Current Day Total (m%5E3)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Return Current Day Total','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V water return current day','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeter','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Delta Current Day Total (m%5E3)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Delta Current Day Total','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V water delta current day','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeter','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Supply This Interval (m%5E3)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Supply This Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V water supply this int','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeter','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Return This Interval (m%5E3)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Return This Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V water return this int','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeter','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Delta This Interval (m%5E3)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Delta This Interval','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'V water delta this int','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeter','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Supply (m%5E3/s)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Supply','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water supply','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterpersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Return (m%5E3/s)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Return','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water return','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterpersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Delta (m%5E3/s)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Delta','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water delta','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterpersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Supply Min (m%5E3/s)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Supply Min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water supply min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterpersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Return Min (m%5E3/s)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Return Min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water return min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterpersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Delta Min (m%5E3/s)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Delta Min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water delta min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterpersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Supply Max (m%5E3/s)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Supply Max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water supply max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterpersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Return Max (m%5E3/s)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Return Max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water return max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterpersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Delta Max (m%5E3/s)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Delta Max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water delta max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterpersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Supply Hourly Average (m%5E3/s)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Supply Hourly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water supply hourly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterpersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Return Hourly Average (m%5E3/s)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Return Hourly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water return hourly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterpersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Delta Hourly Average (m%5E3/s)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Delta Hourly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water delta hourly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterpersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Supply Daily Average (m%5E3/s)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Supply Daily Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water supply daily av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterpersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Return Daily Average (m%5E3/s)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Return Daily Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water return daily av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterpersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Delta Daily Average (m%5E3/s)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Delta Daily Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water delta daily av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterpersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Supply Weekly Average (m%5E3/s)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Supply Weekly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water supply weekly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterpersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Return Weekly Average (m%5E3/s)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Return Weekly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water return weekly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterpersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Delta Weekly Average (m%5E3/s)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Delta Weekly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water delta weekly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterpersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Supply Monthly Average (m%5E3/s)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Supply Monthly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water supply monthly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterpersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Return Monthly Average (m%5E3/s)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Return Monthly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water return monthly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterpersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Water Volume Flow Rate Delta Monthly Average (m%5E3/s)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Water Volume Flow Rate Delta Monthly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dV/dt water delta monthly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/cubicmeterpersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Rate Min (MJ/s)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Rate Min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dE/dt min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joulepersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Rate Max (MJ/s)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Rate Max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dE/dt max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joulepersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Rate Hourly Average (MJ/s)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Rate Hourly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dE/dt hourly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joulepersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Rate Daily Average (MJ/s)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Rate Daily Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dE/dt daily av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joulepersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Rate Weekly Average (MJ/s)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Rate Weekly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dE/dt weekly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joulepersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Rate Monthly Average (MJ/s)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Rate Monthly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dE/dt monthly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joulepersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Rate Delta Min (MJ/s)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Rate Delta Min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dE/dt delta min','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joulepersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Rate Delta Max (MJ/s)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Rate Delta Max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dE/dt delta max','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joulepersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Rate Delta Hourly Average (MJ/s)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Rate Delta Hourly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dE/dt delta hourly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joulepersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Rate Delta Daily Average (MJ/s)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Rate Delta Daily Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dE/dt delta daily av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joulepersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Rate Delta Weekly Average (MJ/s)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Rate Delta Weekly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dE/dt delta weekly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joulepersec','Q'
----------------------------------------------------------------------------------- 
SET @measurement = N'Energy Consumption Rate Delta Monthly Average (MJ/s)'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'Energy Consumption Rate Delta Monthly Average','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'dE/dt delta monthly av','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/mega','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/joulepersec','Q'
----------------------------------------------------------------------------------- 

SET @measurement = N'PQ Voltage Event Duration'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'PQ Voltage Event Duration','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'PQ Voltage Event Duration','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'prefix', N'prefix/milli','Q'  
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/second','Q'
----------------------------------------------------------------------------------- 

SET @measurement = N'PQ Voltage Event Date Time'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'D/T PQ Voltage Event','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'DT PQ Voltage Event','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit','Q'
----------------------------------------------------------------------------------- 

SET @measurement = N'PQ Voltage Event Worst Value'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'PQ Voltage Event Worst Value','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'PQ Voltage Event Worst Value','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/volt','Q'
----------------------------------------------------------------------------------- 

SET @measurement = N'PQ Voltage Event Worst Pickup Value'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'PQ Voltage Event Worst Pickup Value','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'PQ Voltage Event Worst Pickup Value','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/volt','Q'
----------------------------------------------------------------------------------- 

SET @measurement = N'PQ Voltage Event Worst Dropout Value'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'PQ Voltage Event Worst Dropout Value','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'PQ Voltage Event Worst Dropout Value','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/volt','Q'
----------------------------------------------------------------------------------- 

SET @measurement = N'PQ Voltage Event Phase'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'PQ Voltage Event Phase','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'PQ Voltage Event Phase','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit','Q'
----------------------------------------------------------------------------------- 

SET @measurement = N'PQ Voltage Event Type'
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/descriptivename', N'PQ Voltage Event Type','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'CDM/engineeringname', N'PQ Voltage Event Type','L' 
EXEC spTS_StandardRelationship_Add @measurement, N'unit', N'unit/perunit','Q'
----------------------------------------------------------------------------------- 

--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==
--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==
GO
 