Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

Importing record from xml file to sql table using ssis.

$
0
0

Hi , 

I am trying to import xml file record which contains inline xsd schema into sql table. I had tried all ways which I know and did lot of google but not able to import it. I am new in ssis.

Here I am providing xml file data which has to be imported.

<?xml version="1.0" encoding="utf-8" ?> 
 <DataSet>
 <xs:schema id="NewDataSet" xmlns="" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
 <xs:element name="NewDataSet" msdata:IsDataSet="true" msdata:UseCurrentLocale="true">
 <xs:complexType>
	<xs:choice minOccurs="0" maxOccurs="unbounded">
 <xs:element name="Table">
 <xs:complexType>
 <xs:sequence>
  <xs:element name="Date" type="xs:dateTime" minOccurs="0" /> 
  <xs:element name="Brand" type="xs:string" minOccurs="0" />   
  </xs:sequence>
  </xs:complexType>
  </xs:element>
  </xs:choice>
  </xs:complexType>
  </xs:element>
  </xs:schema>
- <diffgr:diffgram xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:diffgr="urn:schemas-microsoft-com:xml-diffgram-v1">
 <NewDataSet>
 <Table diffgr:id="Table1" msdata:rowOrder="0">
  <Date>2009-01-01T13:30:00+05:30</Date> 
  <Brand />   
  </Table>
<Table diffgr:id="Table1" msdata:rowOrder="0">
  <Date>2009-01-01T13:30:00+05:30</Date> 
  <Brand />   
  </Table>
<Table diffgr:id="Table1" msdata:rowOrder="0">
  <Date>2009-01-01T13:30:00+05:30</Date> 
  <Brand />   
  </Table>
<Table diffgr:id="Table1" msdata:rowOrder="0">
  <Date>2009-01-01T13:30:00+05:30</Date> 
  <Brand />   
  </Table>
</NewDataSet>
  </diffgr:diffgram>
</DataSet>

Please help me how to import this data into sql table using ssis.

Thanks.


Viewing all articles
Browse latest Browse all 24688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>