开发人员,我正在研究SSIS,我想创建一个包来从XML源文件填充数据库中的XMLdata,我的源文件样本数据在这里:
<MeterReadings Purpose="OnRequestRead" CollectionTime="2013-08-09
19:57:11" Initiator="OnRequest" SourceIrn="30"
SourceName="coll_0591_stuart" Source="Remote" Irn="21">
<Meter MediaType="900 MHz" ObservesDaylightSavings="true"
TimeZoneOffset="300" Timezone="(GMT-05:00) Eastern Time (US & Canada)"
TimeZoneIndex="11" Location="" SdpIdent="" AccountName=""
AccountIdent="" RemovalDate="" InstallDate="2013-05-01 20:28:09"
Description="" MeterType="REX" SerialNumber="03310266" IsActive="true"
MeterName="03310266" MeterIrn="21"/>
<ConsumptionData>
<ConsumptionSpec Multiplier="1"
MeasurementPeriod="EndOfIntervalSnapshot" TouBucket="Total"
Direction="Delivered" UOM="kWh"/>
<Reading Value="73180" TimeStamp="2013-08-09 00:00:00"/>
</ConsumptionData>
<ConsumptionData>
<LoadProfileSummary>
<IntervalData>
<IntervalData>
<IntervalSpec Multiplier="0.1" Direction="Received" UOM="kWh"
TimestampEnd="2013-08-09 00:00:00" TimestampStart="2013-08-02 00:15:00"
Channel="2" Interval="15"/>
<Reading TimeStamp="2013-08-02 00:15:00" RawReading="0"/>
<Reading TimeStamp="2013-08-02 00:30:00" RawReading="0"/>
<Reading TimeStamp="2013-08-02 00:45:00" RawReading="0"/>
在数据库表中,我有列TimeStamp列和Meterdirection列,我需要在表的列中填充这两个值,并且数据库中还有一个表可用,其中Meterdirection类型为Delivered = 1且已接收= 2,那么现在我如何在SSIS中创建包可以有人帮助我吗?