Connection Properties

Connection Properties zijn properties vastgelegd bij een connection uit ERP. Alle Connection Properties zijn beschikbaar.

Onderstaande query kan gebruikt worden om de benodigde data te selecteren waarbij de set beperkt kan worden door een filter toe passen op ConnectionConnectionPropertyId.

erp_cpy.sql
use dveperp_prod
go

declare @last_id_processed int = 0;

select con_prp.ConnectionConnectionPropertyId,
       con.ConnectionId,
       con.EAN,
	   con_prp.ValidStartDate,
	   con_prp.ValidEndDate,
	   prp.ConnectionPropertyValue,
	   pte.ConnectionPropertyTypeId,
	   pte.Description,
	   pte.PresentationDescription,
	   pte.ConnectionPropertyGroup
from   itbl_Connection_ConnectionProperty con_prp
join   tbl_Connection con on con.ConnectionId = con_prp.ConnectionId
join   tbl_ConnectionProperty prp on prp.ConnectionPropertyId = con_prp.ConnectionPropertyId
join   mtbl_ConnectionPropertyType pte on pte.ConnectionPropertyTypeId = prp.ConnectionPropertyTypeId
where  con_prp.ConnectionConnectionPropertyId > @last_id_processed
;

De ingelezen data wordt opgeslagen in de database in udq.connectionconnectionproperty:

connection_connection_property_id
connection_id
ean
valid_start_date
valid_end_date
value
connection_property_type_id
description
presentation_description
connection_property_group
annual_standard_usage_date
datafile_id

Controles

Bij het inlezen wordt gecontroleerd of een Connection Property voor een specifieke connection_connection_property_id al is ingelezen, mocht dit zo zijn dan wordt de betreffende Connection Property bijgewerkt met de aangeleverde data.

Compressed

Om gebruik in de vergelijkingen te vereenvoudigen is de volgende view toegevoegd:

  • udq.mv_ccp: Per aansluiting per unieke valid_start_date en valid_end_date (zonder tijdaspect) worden de timeslices bepaald met de gegevens voor alle EchMasterData properties opgenomen in kolommen.

Onderstaand per view de beschikbare gegevens:

mv_ccp

connection_id
ean_id
valid_from_date
valid_to_date
grid_operator_company_id
balance_supplier_company_id
balance_responsible_party_company_id
metering_responsible_party_company_id
grid_area
product_type
metering_method
profile_category
invoice_month
contracted_capacity
physical_capacity
max_consumption
cap_tar_code
physical_status
energy_delivery_status
energy_flow_direction
market_segment
ea_energy_consumption_netted_off_peak
ea_energy_consumption_netted_peak
ea_energy_production_netted_off_peak
ea_energy_production_netted_peak
location_description
allocation_method
administrative_status_smart_meter
meter_type
meter_technical_communication_sm
pap_ean_id
billing_moment
capacity
capacity_physic
capacity_tariffcode
connection_status
contract_type
gos
max_power
mep
profile
sap
sau_high
sau_low
sau_single
supplier_ean
tariff_code
type_of_supply
usage_type

Notitie

valid_to_date is voor de actieve periode gevuld met 9999-12-31

Notitie

Indien er voor een periode meerdere actieve voorkomens zijn dan wordt de waarde van de laatst aangemaakte Connection Property genomen.