<?xml version="1.0" encoding="utf-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Importing CSV files [C#/Delphi/SQL Server]</title>
	<atom:link href="http://www.thejackol.com/2004/06/30/importing-csv-files-cdelphisql-server/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.thejackol.com/2004/06/30/importing-csv-files-cdelphisql-server/</link>
	<description>01100010 01101100 01100101 01101000</description>
	<lastBuildDate>Sun, 29 Aug 2010 12:18:24 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Upen</title>
		<link>http://www.thejackol.com/2004/06/30/importing-csv-files-cdelphisql-server/comment-page-1/#comment-68489</link>
		<dc:creator>Upen</dc:creator>
		<pubDate>Wed, 11 Jul 2007 12:12:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.thejackol.com/?p=30#comment-68489</guid>
		<description>Thank You Guys... Really very usefull stuff. my problem is solved within
a few minutes.</description>
		<content:encoded><![CDATA[<p>Thank You Guys&#8230; Really very usefull stuff. my problem is solved within<br />
a few minutes.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Deepak</title>
		<link>http://www.thejackol.com/2004/06/30/importing-csv-files-cdelphisql-server/comment-page-1/#comment-67869</link>
		<dc:creator>Deepak</dc:creator>
		<pubDate>Fri, 06 Jul 2007 07:09:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.thejackol.com/?p=30#comment-67869</guid>
		<description>Great!! Just needed the correct connectionstring and everything fell into place... :-) Many thanks!!!</description>
		<content:encoded><![CDATA[<p>Great!! Just needed the correct connectionstring and everything fell into place&#8230; :-) Many thanks!!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Asif</title>
		<link>http://www.thejackol.com/2004/06/30/importing-csv-files-cdelphisql-server/comment-page-1/#comment-39093</link>
		<dc:creator>Asif</dc:creator>
		<pubDate>Fri, 22 Dec 2006 06:03:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.thejackol.com/?p=30#comment-39093</guid>
		<description>Dear,

I am new to SQL and fortunately I have to start with to import CSV file into SQL. I found this piece of Code really perfect to meet my 100% requirements.</description>
		<content:encoded><![CDATA[<p>Dear,</p>
<p>I am new to <span class="caps">SQL</span> and fortunately I have to start with to import <span class="caps">CSV</span> file into <span class="caps">SQL</span>. I found this piece of Code really perfect to meet my 100% requirements.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tyler</title>
		<link>http://www.thejackol.com/2004/06/30/importing-csv-files-cdelphisql-server/comment-page-1/#comment-13076</link>
		<dc:creator>Tyler</dc:creator>
		<pubDate>Wed, 24 Aug 2005 16:25:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.thejackol.com/?p=30#comment-13076</guid>
		<description>Also of note here: the MS Text Provider used here will only accept a fairly standard definition of CSV files, and discard any records that don&#039;t conform.

I&#039;ve got a CSV file with subfields delimited with &quot;;&quot;.  To wit:
&quot;Field1&quot;,&quot;Field2&quot;,&quot;Field3.1&quot;;&quot;Field3.2&quot;;&quot;Field3.3&quot;,&quot;Field4&quot;,&quot;Field5&quot;

The MS Text Driver will discard a record like this.  Excel, on the other hand, will import it with some minor changes.  So I&#039;m trying to write a routine that will properly handle a second delimiter such as this (which is not consistently applied).  I&#039;m very surprised I&#039;ve not found any code snippets on dealing with this.</description>
		<content:encoded><![CDATA[<p>Also of note here: the MS Text Provider used here will only accept a fairly standard definition of <span class="caps">CSV</span> files, and discard any records that don&#8217;t conform.</p>
<p>I&#8217;ve got a <span class="caps">CSV</span> file with subfields delimited with &#8220;;&#8221;.  To wit:<br />
&#8220;Field1&#8221;,&#8220;Field2&#8221;,&#8220;Field3.1&#8221;;&#8220;Field3.2&#8221;;&#8220;Field3.3&#8221;,&#8220;Field4&#8221;,&#8220;Field5&#8221;</p>
<p>The MS Text Driver will discard a record like this.  Excel, on the other hand, will import it with some minor changes.  So I&#8217;m trying to write a routine that will properly handle a second delimiter such as this (which is not consistently applied).  I&#8217;m very surprised I&#8217;ve not found any code snippets on dealing with this.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike</title>
		<link>http://www.thejackol.com/2004/06/30/importing-csv-files-cdelphisql-server/comment-page-1/#comment-13075</link>
		<dc:creator>Mike</dc:creator>
		<pubDate>Wed, 24 Aug 2005 15:09:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.thejackol.com/?p=30#comment-13075</guid>
		<description>Anybody knows if this script works with excel files???

Thanks!</description>
		<content:encoded><![CDATA[<p>Anybody knows if this script works with excel files???</p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rick Jolly</title>
		<link>http://www.thejackol.com/2004/06/30/importing-csv-files-cdelphisql-server/comment-page-1/#comment-12930</link>
		<dc:creator>Rick Jolly</dc:creator>
		<pubDate>Wed, 17 Aug 2005 16:59:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.thejackol.com/?p=30#comment-12930</guid>
		<description>My posts are being reformatted, sorry. Probably the same thing that happened to Midimark. For an existing table use the first solution from Mikhail but replace:

bc.. SELECT *
INTO theImportTable
FROM ...

p. with 

bc.. INSERT INTO importTable (column1, column2,...)
SELECT * 
FROM ...</description>
		<content:encoded><![CDATA[<p>My posts are being reformatted, sorry. Probably the same thing that happened to Midimark. For an existing table use the first solution from Mikhail but replace:</p>
<pre><code>SELECT *
INTO theImportTable
FROM ...
</code></pre>
<p>with </p>
<pre><code>INSERT INTO importTable (column1, column2,...)
SELECT *
FROM ...
</code></pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rick Jolly</title>
		<link>http://www.thejackol.com/2004/06/30/importing-csv-files-cdelphisql-server/comment-page-1/#comment-12929</link>
		<dc:creator>Rick Jolly</dc:creator>
		<pubDate>Wed, 17 Aug 2005 16:53:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.thejackol.com/?p=30#comment-12929</guid>
		<description>Oops, sorry ignore my first post. This is the sql I used: 

bc.. INSERT INTO tableName (column1, column2,...)
SELECT * 
FROM 

OPENROWSET(&#039;MSDASQL&#039;,
        &#039;Driver={Microsoft Text Driver (*.txt; *.csv)};
          DEFAULTDIR=C:\csvFileDirectoryPath\;Extensions=CSV;&#039;,
        &#039;SELECT * FROM csvFile.csv&#039;)</description>
		<content:encoded><![CDATA[<p>Oops, sorry ignore my first post. This is the sql I used: </p>
<pre><code>INSERT INTO tableName (column1, column2,...)
SELECT *
FROM
</code>
<code>OPENROWSET(&#39;MSDASQL&#39;,
        &#39;Driver={Microsoft Text Driver (*.txt; *.csv)};
          DEFAULTDIR=C:\csvFileDirectoryPath\;Extensions=CSV;&#39;,
        &#39;SELECT * FROM csvFile.csv&#39;)
</code></pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: George</title>
		<link>http://www.thejackol.com/2004/06/30/importing-csv-files-cdelphisql-server/comment-page-1/#comment-4112</link>
		<dc:creator>George</dc:creator>
		<pubDate>Tue, 15 Mar 2005 14:27:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.thejackol.com/?p=30#comment-4112</guid>
		<description>The script works great...</description>
		<content:encoded><![CDATA[<p>The script works great&#8230;</p>
]]></content:encoded>
	</item>
</channel>
</rss>
