﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / Integration Services / Data Warehousing  / Reading Data From XML through Script component / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Fri, 24 May 2013 01:23:05 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Reading Data From XML through Script component</title><link>http://www.sqlservercentral.com/Forums/Topic1420340-364-1.aspx</link><description>Use of XMLReader is an iterative approach so you'll be writing code with the structure "for each node in document, do something" and those for each statements can be nested. The actual code will depend on your XML structure. You'll find numerous samples of this online.</description><pubDate>Mon, 18 Feb 2013 11:27:58 GMT</pubDate><dc:creator>opc.three</dc:creator></item><item><title>RE: Reading Data From XML through Script component</title><link>http://www.sqlservercentral.com/Forums/Topic1420340-364-1.aspx</link><description>[quote][b]opc.three (2/15/2013)[/b][hr]I think XMLReader is going to scale better because it dies not have to load the entire file into memory to work with it, but in using it you're signing up for some C# coding.You could also look into [i]SQLXML bulk load[/i]. I have used it successfully in the past but not for anything close to the size file you're dealing with, maybe 50MB tops iirc.[/quote]Can you spell out C# code with XML reader? I could make use of it plz</description><pubDate>Mon, 18 Feb 2013 10:20:13 GMT</pubDate><dc:creator>quillis131</dc:creator></item><item><title>RE: Reading Data From XML through Script component</title><link>http://www.sqlservercentral.com/Forums/Topic1420340-364-1.aspx</link><description>I think XMLReader is going to scale better because it dies not have to load the entire file into memory to work with it, but in using it you're signing up for some C# coding.You could also look into [i]SQLXML bulk load[/i]. I have used it successfully in the past but not for anything close to the size file you're dealing with, maybe 50MB tops iirc.</description><pubDate>Fri, 15 Feb 2013 19:10:12 GMT</pubDate><dc:creator>opc.three</dc:creator></item><item><title>RE: Reading Data From XML through Script component</title><link>http://www.sqlservercentral.com/Forums/Topic1420340-364-1.aspx</link><description>[quote][b]opc.three (2/15/2013)[/b][hr]800MB is an awfully large XML &amp;#100;ocument. Note that when represented in memory as an XMLDocument object it will occupy far more space that just the file on disk. How much RAM is on the machine you are trying this on?Try with a smaller version of the file with the same structure and see if you can get a proof-of-concept done.[/quote] I was able to load 200MB of file size through XSLT script in XML task. But Working with 800MB File size is an issue here.Is there any better solution you can think of to load 800MB of XML file?</description><pubDate>Fri, 15 Feb 2013 18:09:51 GMT</pubDate><dc:creator>quillis131</dc:creator></item><item><title>RE: Reading Data From XML through Script component</title><link>http://www.sqlservercentral.com/Forums/Topic1420340-364-1.aspx</link><description>800MB is an awfully large XML &amp;#100;ocument. Note that when represented in memory as an XMLDocument object it will occupy far more space that just the file on disk. How much RAM is on the machine you are trying this on?Try with a smaller version of the file with the same structure and see if you can get a proof-of-concept done.</description><pubDate>Fri, 15 Feb 2013 14:28:08 GMT</pubDate><dc:creator>opc.three</dc:creator></item><item><title>RE: Reading Data From XML through Script component</title><link>http://www.sqlservercentral.com/Forums/Topic1420340-364-1.aspx</link><description>[quote][b]quillis131 (2/14/2013)[/b][hr]Goal : Need to pull data from XML file (800MB).Note:  I tried to do with XML task and XSLT but couldn't make it work, it gives me an Out of Memory expection error.http://beyondrelational.com/modules/2/blogs/106/posts/11130/ssis-read-xml-file-in-script-component-as-source.aspxI end up searching above link.Issues :  I can't get this to work either. My script task complaints me when I try to AddRow() function, (Please go throw the link if you can understand C# )Script complaints "doesnot contain definition and no extension method can be found (are you missing a using directive or an assembly reference?)"Help need: Plz suggest me a solution to read data frm XML either through new process or Please guide me to help out of this error thrown while writing C# script (in the link above).[/quote]I can understand C# and read the link, which presumably is a working solution. I would guess that either:a) The Script Component config has been set up wrongly, orb) Your C# code has one or more syntax errorsbut guesswork is as far as I can go without more info.</description><pubDate>Fri, 15 Feb 2013 02:12:36 GMT</pubDate><dc:creator>Phil Parkin</dc:creator></item><item><title>Reading Data From XML through Script component</title><link>http://www.sqlservercentral.com/Forums/Topic1420340-364-1.aspx</link><description>Goal : Need to pull data from XML file (800MB).Note:  I tried to do with XML task and XSLT but couldn't make it work, it gives me an Out of Memory expection error.http://beyondrelational.com/modules/2/blogs/106/posts/11130/ssis-read-xml-file-in-script-component-as-source.aspxI end up searching above link.Issues :  I can't get this to work either. My script task complaints me when I try to AddRow() function, (Please go throw the link if you can understand C# )Script complaints "doesnot contain definition and no extension method can be found (are you missing a using directive or an assembly reference?)"Help need: Plz suggest me a solution to read data frm XML either through new process or Please guide me to help out of this error thrown while writing C# script (in the link above).</description><pubDate>Thu, 14 Feb 2013 16:27:08 GMT</pubDate><dc:creator>quillis131</dc:creator></item></channel></rss>