2016-04-21 6 views
3

Ich versuche, eine XML-Datei in eine Datenbanktabelle zu laden, XML hat die Knoten als (EmpID, Name, Address1 und Address2), ich wollte dies in zwei Tabellen laden Employee (EmpID, Name) und EmployeeAddress (EmpID, Address1, Address2)Laden einer Xml-Datei zum OLEDB-Ziel mit BIML -SSIS

Problem Ich bin konfrontiert: Wenn ich versuche, Eingabepfad für OLEDB Ziel seine werfen Fehler in, bin ich mit den folgenden Code, können Sie bitte Hilfe bei Identifizierung der Ausgabe ich den Code unten mit der Datei

<Biml xmlns="http://schemas.varigence.com/biml.xsd"> 

laden

<Tasks > 
    <Dataflow Name="DataflowTask1"> 
     <Transformations> 
     <XmlSource Name="XMLSource1"> 
      <XmlSchemaFileInput ConnectionName="XmlXsd" /> 
      <FileInput ConnectionName="XmlFile" /> 
     </XmlSource> 

     <OleDbDestination Name="OLe DB Des" ConnectionName="Destination" > 
     ** <InputPath OutputPathName="XMLSource1.Output"> </InputPath>** 
      <ExternalTableOutput Table="[Employee]" > 

      </ExternalTableOutput> 
      <Columns> 
      <Column SourceColumn="empid" TargetColumn="EmpID" /> 
      <Column SourceColumn="name" TargetColumn="Empname" /> 

      </Columns> 
     </OleDbDestination> 
     </Transformations> 
    </Dataflow> 
    </Tasks> 
</Package> 

+0

with xmlnamespaces('...' as x, '....' as y) select ...

Blick auf eine bessere Beschreibung hinzufügen, was der Fehler ist, dass es wirft? – niry

Antwort