XML from webservice to SQL Server using SSIS

喜夏-厌秋 提交于 2020-01-05 07:01:48

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!