<?xml version="1.0"?><?xml-stylesheet type="text/xsl" href="http://code.msdn.microsoft.com/rss.xsl"?><rss version="2.0"><channel><title>Flat File Data Reader</title><link>http://code.msdn.microsoft.com/FlatFileDataReader/Project/ProjectRss.aspx</link><description>An abstract IDataReader implementation that reads flat files.  Enables bulk loading of SQL Server using SqlBulkCopy from flat files with strange formats.        For ordinary delimited or fixed-width fi...</description><item><title>NEW POST: IDataReader Interface Implementation</title><link>http://code.msdn.microsoft.com/FlatFileDataReader/Thread/View.aspx?ThreadId=214</link><description>&lt;div class="wikidoc"&gt;
I uploaded a new version today.  Implemented IDataReader.GetSchemaTable, which is required to load a DataTable.  There's some new sample code in the program showing loading the flat file into a DataTable.&lt;br /&gt; &lt;br /&gt;Thanks for the input,&lt;br /&gt; &lt;br /&gt;David&lt;br /&gt;
&lt;/div&gt;</description><author>dbrowne</author><pubDate>Wed, 02 Apr 2008 15:47:45 GMT</pubDate><guid isPermaLink="false">NEW POST: IDataReader Interface Implementation 20080402P</guid></item><item><title>UPDATED RELEASE: FileLoader.zip (Feb 18, 2008)</title><link>http://code.msdn.microsoft.com/FlatFileDataReader/Release/ProjectReleases.aspx?ReleaseId=405</link><description>This zip has the FlatFileDataReader.cs and a sample project.</description><author></author><pubDate>Wed, 02 Apr 2008 15:40:52 GMT</pubDate><guid isPermaLink="false">UPDATED RELEASE: FileLoader.zip (Feb 18, 2008) 20080402P</guid></item><item><title>UPDATED RELEASE: Flat File Data Reader (Apr 02, 2008)</title><link>http://code.msdn.microsoft.com/FlatFileDataReader/Release/ProjectReleases.aspx?ReleaseId=814</link><description>This release adds a simple implementation of IDataReader.GetSchemaTable, which is necessary to be able to load a DataTable from an IDataReader.</description><author></author><pubDate>Wed, 02 Apr 2008 15:37:24 GMT</pubDate><guid isPermaLink="false">UPDATED RELEASE: Flat File Data Reader (Apr 02, 2008) 20080402P</guid></item><item><title>CREATED RELEASE: Flat File Data Reader (Apr 02, 2008)</title><link>http://code.msdn.microsoft.com/FlatFileDataReader/Release/ProjectReleases.aspx?ReleaseId=814</link><description>This release adds a simple implementation of IDataReader.GetSchemaTable, which is necessary to be able to load a DataTable from an IDataReader.</description><author></author><pubDate>Wed, 02 Apr 2008 15:35:05 GMT</pubDate><guid isPermaLink="false">CREATED RELEASE: Flat File Data Reader (Apr 02, 2008) 20080402P</guid></item><item><title>NEW POST: IDataReader Interface Implementation</title><link>http://code.msdn.microsoft.com/FlatFileDataReader/Thread/View.aspx?ThreadId=214</link><description>&lt;div class="wikidoc"&gt;
DataTable.Load Compatibility&lt;br /&gt; &lt;br /&gt;Thanks for this nice little problem solver you came up with here. I have several files ranging in size from 2k to 100MB. I want to use the same tool to load them all (a datareader). I wanted to load to smaller files into a DataTable using the DataTable.Load(IDataReader) method.  Currently this method returns no rows. Whilst I understand that this reader was designed for large files and therefore loading results into a DataTable would be ‘nuts’ is this a simple fix/change?&lt;br /&gt;
&lt;/div&gt;</description><author>DaveEvans</author><pubDate>Wed, 26 Mar 2008 19:12:15 GMT</pubDate><guid isPermaLink="false">NEW POST: IDataReader Interface Implementation 20080326P</guid></item><item><title>NEW POST: IDataReader Interface Implementation</title><link>http://code.msdn.microsoft.com/FlatFileDataReader/Thread/View.aspx?ThreadId=214</link><description>&lt;div class="wikidoc"&gt;
Discussing the implentation of the IDataReader &lt;br /&gt;
&lt;/div&gt;</description><author>DaveEvans</author><pubDate>Wed, 26 Mar 2008 19:11:44 GMT</pubDate><guid isPermaLink="false">NEW POST: IDataReader Interface Implementation 20080326P</guid></item><item><title>UPDATED WIKI: Home</title><link>http://code.msdn.microsoft.com/FlatFileDataReader/Wiki/View.aspx?title=Home&amp;version=4</link><description>&lt;div class="wikidoc"&gt;
&lt;b&gt;Resource Page Description&lt;/b&gt;&lt;br /&gt;An abstract IDataReader implementation that reads flat files.  Enables bulk loading of SQL Server using SqlBulkCopy from flat files with strange formats.  &lt;br /&gt;&lt;br /&gt;For ordinary delimited or fixed-width files, SSIS is a better tool, but when your file format doesn&amp;#39;t work well with these tools or you need a pure .NET solution, consider using this FlatFileDataReader.  Includes the option to skip over lines in the file for multi-format files.&lt;br /&gt;&lt;br /&gt;Good scenarios are loading from clients &amp;#40;without SSIS&amp;#41;, and loading files with multiple record layouts, heders and footers, etc.&lt;br /&gt;&lt;br /&gt;Package includes a sample solution.&lt;br /&gt;
&lt;br /&gt; &lt;br /&gt;The FlatFileDataReader base class will process the file line-by-line.  Each line will be passed to an abstract class member for you to parse out the column values and store them in local variables.&lt;br /&gt; &lt;br /&gt;Here are the abstract members that you would need to implement to read your file:&lt;br /&gt;&lt;pre&gt;
 
        /**
         * 
         * Implement this to receive each line in the file;
         * After each row is read from the file, this method
         * will be fired.
         * 
         * Return END_OF_FILE if this is the trailer record
         * or to otherwise signal an End-of-file.
         * 
         * Return SKIP if this row is just ignored.
         * 
         * Return READ if this is a valid row
         * 
         * Optionally alter the line (it's passed as a ref).
         * 
         * Throw an exception if the line is invalid.
         * 
         */
        public abstract LineResult ReadLine(ref string line);
 
        /**
         * Readers will call this to get a value
         * Return value should be the proper .NET type for the field         * 
         */
        public abstract object GetValue(int i);
 
        /**
         * These methods return metadata about the fields
         * */
        public abstract Type GetFieldType(int i);
        public abstract string GetName(int i);
        public abstract int FieldCount
        {
            get;
        }
&lt;/pre&gt; &lt;br /&gt;Use the Issue Tracker tab for problems or feature requests, and let me know if you find this sample useful.&lt;br /&gt; &lt;br /&gt;David&lt;br /&gt;
&lt;/div&gt;</description><author>dbrowne</author><pubDate>Mon, 03 Mar 2008 17:07:23 GMT</pubDate><guid isPermaLink="false">UPDATED WIKI: Home 20080303P</guid></item><item><title>UPDATED WIKI: Home</title><link>http://code.msdn.microsoft.com/FlatFileDataReader/Wiki/View.aspx?title=Home&amp;version=3</link><description>&lt;div class="wikidoc"&gt;
&lt;b&gt;Resource Page Description&lt;/b&gt;&lt;br /&gt;An abstract IDataReader implementation that reads flat files.  Enables bulk loading of SQL Server using SqlBulkCopy from flat files with strange formats.  &lt;br /&gt;&lt;br /&gt;For ordinary delimited or fixed-width files, SSIS is a better tool, but when your file format doesn&amp;#39;t work well with these tools or you need a pure .NET solution, consider using this FlatFileDataReader.  Includes the option to skip over lines in the file for multi-format files.&lt;br /&gt;&lt;br /&gt;Good scenarios are loading from clients &amp;#40;without SSIS&amp;#41;, and loading files with multiple record layouts, heders and footers, etc.&lt;br /&gt;&lt;br /&gt;Package includes a sample solution.&lt;br /&gt;
&lt;br /&gt; &lt;br /&gt;The FlatFileDataReader base class will process the file line-by-line.  Each line will be passed to an abstract class member for you to parse out the column values and store them in local variables.&lt;br /&gt; &lt;br /&gt;Here are the abstract members that you would need to implement to read your file:&lt;br /&gt;&lt;pre&gt;
 
        /**
         * 
         * Implement this to receive each line in the file;
         * After each row is read from the file, this method
         * will be fired.
         * 
         * Return END_OF_FILE if this is the trailer record
         * or to otherwise signal an End-of-file.
         * 
         * Return SKIP if this row is just ignored.
         * 
         * Return READ if this is a valid row
         * 
         * Optionally alter the line (it's passed as a ref).
         * 
         * Throw an exception if the line is invalid.
         * 
         */
        public abstract LineResult ReadLine(ref string line);
 
        /**
         * Readers will call this to get a value
         * Return value should be the proper .NET type for the field         * 
         */
        public abstract object GetValue(int i);
 
        /**
         * These methods return metadata about the fields
         * */
        public abstract Type GetFieldType(int i);
        public abstract string GetName(int i);
        public abstract int FieldCount
        {
            get;
        }
&lt;/pre&gt;
&lt;/div&gt;</description><author>dbrowne</author><pubDate>Mon, 03 Mar 2008 17:06:24 GMT</pubDate><guid isPermaLink="false">UPDATED WIKI: Home 20080303P</guid></item><item><title>CREATED RELEASE: FileLoader.zip (Feb 18, 2008)</title><link>http://code.msdn.microsoft.com/FlatFileDataReader/Release/ProjectReleases.aspx?ReleaseId=405</link><description>This zip has the FlatFileDataReader.cs and a sample project.</description><author></author><pubDate>Mon, 18 Feb 2008 18:35:20 GMT</pubDate><guid isPermaLink="false">CREATED RELEASE: FileLoader.zip (Feb 18, 2008) 20080218P</guid></item><item><title>UPDATED WIKI: Home</title><link>http://code.msdn.microsoft.com/FlatFileDataReader/Wiki/View.aspx?title=Home&amp;version=2</link><description>&lt;div class="wikidoc"&gt;
&lt;b&gt;Resource Page Description&lt;/b&gt;&lt;br /&gt;An abstract IDataReader implementation that reads flat files.  Enables bulk loading of SQL Server using SqlBulkCopy from flat files with strange formats.  &lt;br /&gt;&lt;br /&gt;For ordinary delimited or fixed-width files, SSIS is a better tool, but when your file format doesn&amp;#39;t work well with these tools or you need a pure .NET solution, consider using this FlatFileDataReader.  Includes the option to skip over lines in the file for multi-format files.&lt;br /&gt;&lt;br /&gt;Good scenarios are loading from clients &amp;#40;without SSIS&amp;#41;, and loading files with multiple record layouts, heders and footers, etc.&lt;br /&gt;&lt;br /&gt;Package includes a sample solution.&lt;br /&gt;
&lt;br /&gt; &lt;br /&gt;
&lt;/div&gt;</description><author>dbrowne</author><pubDate>Mon, 18 Feb 2008 18:33:15 GMT</pubDate><guid isPermaLink="false">UPDATED WIKI: Home 20080218P</guid></item></channel></rss>