问题
I have a web service task that saves the XML output to a variable.
The question now is what would the variable type be? Also how can I then transfer the XML variable to the SQL Server database? I can't seem to make the data flow work, XML source to ole db source? Am I on the right path? thanks
<xs:element name="Table">
<xs:complexType>
<xs:sequence>
<xs:element name="FlightDate" type="xs:dateTime" minOccurs="0"/>
<xs:element name="FlightNo" type="xs:string" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
</xs:element>
i need to save flight date and flight no to a temporary table in sql. it must have its own column like flightdate and flight no



回答1:
Change XML Source Data Acces Mode to XML Data From Variable,
Then you can give "User::FlightInfoXML" Variable.
来源:https://stackoverflow.com/questions/16076321/xml-from-webservice-to-sql-server-using-ssis