<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: SQL SERVER &#8211; Import CSV File Into SQL Server Using Bulk Insert &#8211; Load Comma Delimited File Into SQL Server</title>
	<atom:link href="http://blog.sqlauthority.com/2008/02/06/sql-server-import-csv-file-into-sql-server-using-bulk-insert-load-comma-delimited-file-into-sql-server/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.sqlauthority.com/2008/02/06/sql-server-import-csv-file-into-sql-server-using-bulk-insert-load-comma-delimited-file-into-sql-server/</link>
	<description>Personal Notes of Pinal Dave</description>
	<lastBuildDate>Thu, 09 Feb 2012 19:36:10 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: Ayan</title>
		<link>http://blog.sqlauthority.com/2008/02/06/sql-server-import-csv-file-into-sql-server-using-bulk-insert-load-comma-delimited-file-into-sql-server/#comment-247016</link>
		<dc:creator><![CDATA[Ayan]]></dc:creator>
		<pubDate>Thu, 02 Feb 2012 12:56:45 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=497#comment-247016</guid>
		<description><![CDATA[Hi Pinal

I am facing the follwing problem while doing a bulk import from an Excel file to SQl Server 2005. Let&#039;s say we have an excel file with columns &#039;int a&#039; and &#039;xyz  int abc&#039; without the quotes. While doing Bulk Insert the data in the first column which has a keyword &#039;int&#039; at the start does not get inserted but the second column data gets inserted where the keyword is in the middle. How can I resolve the issue? The excel file is an auto generated file from another system and the column name cannot be changed in the excel.]]></description>
		<content:encoded><![CDATA[<p>Hi Pinal</p>
<p>I am facing the follwing problem while doing a bulk import from an Excel file to SQl Server 2005. Let&#8217;s say we have an excel file with columns &#8216;int a&#8217; and &#8216;xyz  int abc&#8217; without the quotes. While doing Bulk Insert the data in the first column which has a keyword &#8216;int&#8217; at the start does not get inserted but the second column data gets inserted where the keyword is in the middle. How can I resolve the issue? The excel file is an auto generated file from another system and the column name cannot be changed in the excel.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Yong</title>
		<link>http://blog.sqlauthority.com/2008/02/06/sql-server-import-csv-file-into-sql-server-using-bulk-insert-load-comma-delimited-file-into-sql-server/#comment-243253</link>
		<dc:creator><![CDATA[Yong]]></dc:creator>
		<pubDate>Wed, 25 Jan 2012 04:13:30 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=497#comment-243253</guid>
		<description><![CDATA[Hi - I tried to bulk insert to sql server 2008 express installed in my machine with the script below, but it does not work.

BULK
INSERT Project
FROM &#039;C:\mine\project.txt&#039;
WITH
(
FIELDTERMINATOR = &#039;,&#039;,
ROWTERMINATOR = &#039;\n&#039;
)
GO

The error msg said The file &quot;C:\mine\project1.txt&quot; does not exist.

Is this because of the extra folder on C drive? I can&#039;t access the root C drive.

thanks 
Jack]]></description>
		<content:encoded><![CDATA[<p>Hi &#8211; I tried to bulk insert to sql server 2008 express installed in my machine with the script below, but it does not work.</p>
<p>BULK<br />
INSERT Project<br />
FROM &#8216;C:\mine\project.txt&#8217;<br />
WITH<br />
(<br />
FIELDTERMINATOR = &#8216;,&#8217;,<br />
ROWTERMINATOR = &#8216;\n&#8217;<br />
)<br />
GO</p>
<p>The error msg said The file &#8220;C:\mine\project1.txt&#8221; does not exist.</p>
<p>Is this because of the extra folder on C drive? I can&#8217;t access the root C drive.</p>
<p>thanks<br />
Jack</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Poornachandra Tejaswi S N</title>
		<link>http://blog.sqlauthority.com/2008/02/06/sql-server-import-csv-file-into-sql-server-using-bulk-insert-load-comma-delimited-file-into-sql-server/#comment-231673</link>
		<dc:creator><![CDATA[Poornachandra Tejaswi S N]]></dc:creator>
		<pubDate>Thu, 05 Jan 2012 06:17:11 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=497#comment-231673</guid>
		<description><![CDATA[Hi
Currently i have a data in text pad as mentioned below.

6119039935,61190,5,Chaitanya Ravuri,United Kingdom
4155039958,41550,5,Darshan Shinde,United Kingdom
53649739917,536497,6,Nagasubramanian Natarajan,South Africa

As i am trying to upload the above data in the table, but i am getting an error.

The commands which i used 

BULK
INSERT desk
FROM &#039;c:\testing.txt&#039;
WITH
(
FIELDTERMINATOR = &#039;,&#039;
)
GO

Error 
(Msg 4864, Level 16, State 1, Line 1
Bulk load data conversion error (type mismatch or invalid character for the specified codepage) for row 13, column 2 (empid).
Msg 4864, Level 16, State 1, Line 1
Bulk load data conversion error (type mismatch or invalid character for the specified codepage) for row 19, column 2 (empid).
Msg 4864, Level 16, State 1, Line 1)

please help in resolving the the same]]></description>
		<content:encoded><![CDATA[<p>Hi<br />
Currently i have a data in text pad as mentioned below.</p>
<p>6119039935,61190,5,Chaitanya Ravuri,United Kingdom<br />
4155039958,41550,5,Darshan Shinde,United Kingdom<br />
53649739917,536497,6,Nagasubramanian Natarajan,South Africa</p>
<p>As i am trying to upload the above data in the table, but i am getting an error.</p>
<p>The commands which i used </p>
<p>BULK<br />
INSERT desk<br />
FROM &#8216;c:\testing.txt&#8217;<br />
WITH<br />
(<br />
FIELDTERMINATOR = &#8216;,&#8217;<br />
)<br />
GO</p>
<p>Error<br />
(Msg 4864, Level 16, State 1, Line 1<br />
Bulk load data conversion error (type mismatch or invalid character for the specified codepage) for row 13, column 2 (empid).<br />
Msg 4864, Level 16, State 1, Line 1<br />
Bulk load data conversion error (type mismatch or invalid character for the specified codepage) for row 19, column 2 (empid).<br />
Msg 4864, Level 16, State 1, Line 1)</p>
<p>please help in resolving the the same</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jolene</title>
		<link>http://blog.sqlauthority.com/2008/02/06/sql-server-import-csv-file-into-sql-server-using-bulk-insert-load-comma-delimited-file-into-sql-server/#comment-228103</link>
		<dc:creator><![CDATA[Jolene]]></dc:creator>
		<pubDate>Thu, 29 Dec 2011 17:43:43 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=497#comment-228103</guid>
		<description><![CDATA[In most cases, can&#039;t you just use the &quot;Import&quot; feature of MS SQL Server 2005 (and above).  E.g., right-click on the database name, select Tasks -&gt; Import, then select the source, identify the parameters, select the destination, tweak the output column names and there you are!]]></description>
		<content:encoded><![CDATA[<p>In most cases, can&#8217;t you just use the &#8220;Import&#8221; feature of MS SQL Server 2005 (and above).  E.g., right-click on the database name, select Tasks -&gt; Import, then select the source, identify the parameters, select the destination, tweak the output column names and there you are!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Saman Ahmad</title>
		<link>http://blog.sqlauthority.com/2008/02/06/sql-server-import-csv-file-into-sql-server-using-bulk-insert-load-comma-delimited-file-into-sql-server/#comment-228042</link>
		<dc:creator><![CDATA[Saman Ahmad]]></dc:creator>
		<pubDate>Thu, 29 Dec 2011 15:28:34 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=497#comment-228042</guid>
		<description><![CDATA[What if you have txt file you are trying to load, see below
123342,&quot;John&quot;,&quot;Thomas, J&quot;,&quot;123 Main St, Suite1&quot;,&quot;MainCity&quot;,&quot;NY&quot;,36543,03,12/23/1970

where fields are seperated by vommas, but there are commas within fields as well e.g. address, last name, and some fields have quotations around them but some don&#039;t.

Thanks a lot.]]></description>
		<content:encoded><![CDATA[<p>What if you have txt file you are trying to load, see below<br />
123342,&#8221;John&#8221;,&#8221;Thomas, J&#8221;,&#8221;123 Main St, Suite1&#8243;,&#8221;MainCity&#8221;,&#8221;NY&#8221;,36543,03,12/23/1970</p>
<p>where fields are seperated by vommas, but there are commas within fields as well e.g. address, last name, and some fields have quotations around them but some don&#8217;t.</p>
<p>Thanks a lot.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: navi</title>
		<link>http://blog.sqlauthority.com/2008/02/06/sql-server-import-csv-file-into-sql-server-using-bulk-insert-load-comma-delimited-file-into-sql-server/#comment-223578</link>
		<dc:creator><![CDATA[navi]]></dc:creator>
		<pubDate>Thu, 22 Dec 2011 09:59:52 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=497#comment-223578</guid>
		<description><![CDATA[Very good post , keep it up:)]]></description>
		<content:encoded><![CDATA[<p>Very good post , keep it up:)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: antew</title>
		<link>http://blog.sqlauthority.com/2008/02/06/sql-server-import-csv-file-into-sql-server-using-bulk-insert-load-comma-delimited-file-into-sql-server/#comment-221935</link>
		<dc:creator><![CDATA[antew]]></dc:creator>
		<pubDate>Tue, 20 Dec 2011 08:19:24 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=497#comment-221935</guid>
		<description><![CDATA[First of all, Thanks a lot!
 
You have said that &quot;If there is any error in any row it will be not inserted but other rows will be inserted.&quot; ,

Is there any way to know which of the rows have encountered conflict and are not inserted?]]></description>
		<content:encoded><![CDATA[<p>First of all, Thanks a lot!</p>
<p>You have said that &#8220;If there is any error in any row it will be not inserted but other rows will be inserted.&#8221; ,</p>
<p>Is there any way to know which of the rows have encountered conflict and are not inserted?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: madhivanan</title>
		<link>http://blog.sqlauthority.com/2008/02/06/sql-server-import-csv-file-into-sql-server-using-bulk-insert-load-comma-delimited-file-into-sql-server/#comment-218533</link>
		<dc:creator><![CDATA[madhivanan]]></dc:creator>
		<pubDate>Thu, 15 Dec 2011 14:49:09 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=497#comment-218533</guid>
		<description><![CDATA[You need to install Jet engine for EXCEL]]></description>
		<content:encoded><![CDATA[<p>You need to install Jet engine for EXCEL</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: amol</title>
		<link>http://blog.sqlauthority.com/2008/02/06/sql-server-import-csv-file-into-sql-server-using-bulk-insert-load-comma-delimited-file-into-sql-server/#comment-213401</link>
		<dc:creator><![CDATA[amol]]></dc:creator>
		<pubDate>Thu, 08 Dec 2011 11:58:58 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=497#comment-213401</guid>
		<description><![CDATA[When i export data Excel to Sql then give me this error
&quot;The OLE DB provider &quot;Microsoft.Jet.OLEDB.4.0&quot; has not been registered.&quot;
So any solutions for that]]></description>
		<content:encoded><![CDATA[<p>When i export data Excel to Sql then give me this error<br />
&#8220;The OLE DB provider &#8220;Microsoft.Jet.OLEDB.4.0&#8243; has not been registered.&#8221;<br />
So any solutions for that</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mohamed Yousry</title>
		<link>http://blog.sqlauthority.com/2008/02/06/sql-server-import-csv-file-into-sql-server-using-bulk-insert-load-comma-delimited-file-into-sql-server/#comment-208471</link>
		<dc:creator><![CDATA[mohamed Yousry]]></dc:creator>
		<pubDate>Thu, 01 Dec 2011 07:14:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=497#comment-208471</guid>
		<description><![CDATA[My CSV file doesn&#039;t have the same number of columns 
Plus the one who imported this CSV file didn&#039;t export the product ID with them

===========================================
I have products table with 9 columns  with 50000 rows
CSV only has 4 columns and 40000 rows
I want to update the product table with importing the CSV 
i don&#039;t have the product_id in the CSV but i have another Unique Column which is Part Number 
Can I do that 
===========================================
Phpmyadmin]]></description>
		<content:encoded><![CDATA[<p>My CSV file doesn&#8217;t have the same number of columns<br />
Plus the one who imported this CSV file didn&#8217;t export the product ID with them</p>
<p>===========================================<br />
I have products table with 9 columns  with 50000 rows<br />
CSV only has 4 columns and 40000 rows<br />
I want to update the product table with importing the CSV<br />
i don&#8217;t have the product_id in the CSV but i have another Unique Column which is Part Number<br />
Can I do that<br />
===========================================<br />
Phpmyadmin</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: madhivanan</title>
		<link>http://blog.sqlauthority.com/2008/02/06/sql-server-import-csv-file-into-sql-server-using-bulk-insert-load-comma-delimited-file-into-sql-server/#comment-202846</link>
		<dc:creator><![CDATA[madhivanan]]></dc:creator>
		<pubDate>Wed, 23 Nov 2011 10:54:20 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=497#comment-202846</guid>
		<description><![CDATA[Have a look at OPENROWSET function in SQL Server help. It has example code on how to do it]]></description>
		<content:encoded><![CDATA[<p>Have a look at OPENROWSET function in SQL Server help. It has example code on how to do it</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: manoj</title>
		<link>http://blog.sqlauthority.com/2008/02/06/sql-server-import-csv-file-into-sql-server-using-bulk-insert-load-comma-delimited-file-into-sql-server/#comment-201958</link>
		<dc:creator><![CDATA[manoj]]></dc:creator>
		<pubDate>Tue, 22 Nov 2011 06:16:39 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=497#comment-201958</guid>
		<description><![CDATA[how to store excel file into database table as varbinary datatype..]]></description>
		<content:encoded><![CDATA[<p>how to store excel file into database table as varbinary datatype..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Amul</title>
		<link>http://blog.sqlauthority.com/2008/02/06/sql-server-import-csv-file-into-sql-server-using-bulk-insert-load-comma-delimited-file-into-sql-server/#comment-193924</link>
		<dc:creator><![CDATA[Amul]]></dc:creator>
		<pubDate>Sat, 12 Nov 2011 15:18:09 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=497#comment-193924</guid>
		<description><![CDATA[Hi My file saved in notepad got im[orted in database sucessfully.
Thanks.
Now how do i import Excel file in same way.
I got an error as 

Bulk insert data conversion error (type mismatch) for row 1, column 1 (ID).
Can u help me.
Regards
Amul]]></description>
		<content:encoded><![CDATA[<p>Hi My file saved in notepad got im[orted in database sucessfully.<br />
Thanks.<br />
Now how do i import Excel file in same way.<br />
I got an error as </p>
<p>Bulk insert data conversion error (type mismatch) for row 1, column 1 (ID).<br />
Can u help me.<br />
Regards<br />
Amul</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: madhivanan</title>
		<link>http://blog.sqlauthority.com/2008/02/06/sql-server-import-csv-file-into-sql-server-using-bulk-insert-load-comma-delimited-file-into-sql-server/#comment-191487</link>
		<dc:creator><![CDATA[madhivanan]]></dc:creator>
		<pubDate>Wed, 09 Nov 2011 09:41:45 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=497#comment-191487</guid>
		<description><![CDATA[What is the error that is generated when using bulk insert statement?]]></description>
		<content:encoded><![CDATA[<p>What is the error that is generated when using bulk insert statement?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: madhivanan</title>
		<link>http://blog.sqlauthority.com/2008/02/06/sql-server-import-csv-file-into-sql-server-using-bulk-insert-load-comma-delimited-file-into-sql-server/#comment-191486</link>
		<dc:creator><![CDATA[madhivanan]]></dc:creator>
		<pubDate>Wed, 09 Nov 2011 09:39:57 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=497#comment-191486</guid>
		<description><![CDATA[You can write an update statement to remove the quotes. Also you can use format file to remove the quotes]]></description>
		<content:encoded><![CDATA[<p>You can write an update statement to remove the quotes. Also you can use format file to remove the quotes</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: john</title>
		<link>http://blog.sqlauthority.com/2008/02/06/sql-server-import-csv-file-into-sql-server-using-bulk-insert-load-comma-delimited-file-into-sql-server/#comment-191314</link>
		<dc:creator><![CDATA[john]]></dc:creator>
		<pubDate>Wed, 09 Nov 2011 04:22:47 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=497#comment-191314</guid>
		<description><![CDATA[I want to get rid of 1100,1000000,0,0,”Supplies” quote mark after insert into SQL server.]]></description>
		<content:encoded><![CDATA[<p>I want to get rid of 1100,1000000,0,0,”Supplies” quote mark after insert into SQL server.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: john</title>
		<link>http://blog.sqlauthority.com/2008/02/06/sql-server-import-csv-file-into-sql-server-using-bulk-insert-load-comma-delimited-file-into-sql-server/#comment-191313</link>
		<dc:creator><![CDATA[john]]></dc:creator>
		<pubDate>Wed, 09 Nov 2011 04:21:12 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=497#comment-191313</guid>
		<description><![CDATA[I am new for this problem. My data csv file contains 
modelid,sopid,stepid,label,DESC
1100,1000000,0,0,&quot;Supplies&quot;

And My format file
10.0
5
1       SQLCHAR             0       12      &quot;,&quot;     1     MODELID            &quot;&quot;
2       SQLCHAR             0       12      &quot;,&quot;     2     SOPID              &quot;&quot;
3       SQLCHAR             0       12      &quot;,&quot;     3     STEPID             &quot;&quot;
4       SQLCHAR             0       12      &quot;,&quot;     4     LABEL              &quot;&quot;
5       SQLCHAR             0       0       &quot;,&quot;     5     DESC               SQL_Latin1_General_CP1_CI_AS

However, when I bulk insert into SQL server 2008, I got the following error.

Any idea? Thanks
Msg 4864, Level 16, State 1, Server localpc\SQLEXPRESS, Line 3
Bulk load data conversion error (type mismatch or invalid character for the spec
ified codepage) for row 2, column 4 (LABEL).
Msg 4864, Level 16, State 1, Server localpc\SQLEXPRESS, Line 3
Bulk load data conversion error (type mismatch or invalid character for the spec
ified codepage) for row 3, column 3 (STEPID).
Msg 4864, Level 16, State 1, Server localpc\SQLEXPRESS, Line 3
Bulk load data conversion error (type mismatch or invalid character for the spec
ified codepage) for row 4, column 2 (SOPID).
Msg 4864, Level 16, State 1, Server localpc\SQLEXPRESS, Line 3
Bulk load data conversion error (type mismatch or invalid character for the spec
ified codepage) for row 5, column 1 (MODELID).
Msg 4864, Level 16, State 1, Server localpc\SQLEXPRESS, Line 3
Bulk load data conversion error (type mismatch or invalid character for the spec
ified codepage) for row 6, column 4 (LABEL).
Msg 4864, Level 16, State 1, Server localpc\SQLEXPRESS, Line 3
Bulk load data conversion error (type mismatch or invalid character for the spec
ified codepage) for row 7, column 1 (MODELID).
Msg 4864, Level 16, State 1, Server localpc\SQLEXPRESS, Line 3
Bulk load data conversion error (type mismatch or invalid character for the spec
ified codepage) for row 8, column 1 (MODELID).
Msg 4864, Level 16, State 1, Server localpc\SQLEXPRESS, Line 3
Bulk load data conversion error (type mismatch or invalid character for the spec
ified codepage) for row 9, column 1 (MODELID).
Msg 4864, Level 16, State 1, Server localpc\SQLEXPRESS, Line 3
Bulk load data conversion error (type mismatch or invalid character for the spec
ified codepage) for row 10, column 4 (LABEL).
Msg 4864, Level 16, State 1, Server localpc\SQLEXPRESS, Line 3
Bulk load data conversion error (type mismatch or invalid character for the spec
ified codepage) for row 11, column 1 (MODELID).
Msg 4864, Level 16, State 1, Server localpc\SQLEXPRESS, Line 3
Bulk load data conversion error (type mismatch or invalid character for the spec
ified codepage) for row 12, column 1 (MODELID).
Msg 4865, Level 16, State 1, Server localpc\SQLEXPRESS, Line 3
Cannot bulk load because the maximum number of errors (10) was exceeded.
Msg 7399, Level 16, State 1, Server localpc\SQLEXPRESS, Line 3
The OLE DB provider &quot;BULK&quot; for linked server &quot;(null)&quot; reported an error. The pro
vider did not give any information about the error.
Msg 7330, Level 16, State 2, Server localpc\SQLEXPRESS, Line 3]]></description>
		<content:encoded><![CDATA[<p>I am new for this problem. My data csv file contains<br />
modelid,sopid,stepid,label,DESC<br />
1100,1000000,0,0,&#8221;Supplies&#8221;</p>
<p>And My format file<br />
10.0<br />
5<br />
1       SQLCHAR             0       12      &#8220;,&#8221;     1     MODELID            &#8220;&#8221;<br />
2       SQLCHAR             0       12      &#8220;,&#8221;     2     SOPID              &#8220;&#8221;<br />
3       SQLCHAR             0       12      &#8220;,&#8221;     3     STEPID             &#8220;&#8221;<br />
4       SQLCHAR             0       12      &#8220;,&#8221;     4     LABEL              &#8220;&#8221;<br />
5       SQLCHAR             0       0       &#8220;,&#8221;     5     DESC               SQL_Latin1_General_CP1_CI_AS</p>
<p>However, when I bulk insert into SQL server 2008, I got the following error.</p>
<p>Any idea? Thanks<br />
Msg 4864, Level 16, State 1, Server localpc\SQLEXPRESS, Line 3<br />
Bulk load data conversion error (type mismatch or invalid character for the spec<br />
ified codepage) for row 2, column 4 (LABEL).<br />
Msg 4864, Level 16, State 1, Server localpc\SQLEXPRESS, Line 3<br />
Bulk load data conversion error (type mismatch or invalid character for the spec<br />
ified codepage) for row 3, column 3 (STEPID).<br />
Msg 4864, Level 16, State 1, Server localpc\SQLEXPRESS, Line 3<br />
Bulk load data conversion error (type mismatch or invalid character for the spec<br />
ified codepage) for row 4, column 2 (SOPID).<br />
Msg 4864, Level 16, State 1, Server localpc\SQLEXPRESS, Line 3<br />
Bulk load data conversion error (type mismatch or invalid character for the spec<br />
ified codepage) for row 5, column 1 (MODELID).<br />
Msg 4864, Level 16, State 1, Server localpc\SQLEXPRESS, Line 3<br />
Bulk load data conversion error (type mismatch or invalid character for the spec<br />
ified codepage) for row 6, column 4 (LABEL).<br />
Msg 4864, Level 16, State 1, Server localpc\SQLEXPRESS, Line 3<br />
Bulk load data conversion error (type mismatch or invalid character for the spec<br />
ified codepage) for row 7, column 1 (MODELID).<br />
Msg 4864, Level 16, State 1, Server localpc\SQLEXPRESS, Line 3<br />
Bulk load data conversion error (type mismatch or invalid character for the spec<br />
ified codepage) for row 8, column 1 (MODELID).<br />
Msg 4864, Level 16, State 1, Server localpc\SQLEXPRESS, Line 3<br />
Bulk load data conversion error (type mismatch or invalid character for the spec<br />
ified codepage) for row 9, column 1 (MODELID).<br />
Msg 4864, Level 16, State 1, Server localpc\SQLEXPRESS, Line 3<br />
Bulk load data conversion error (type mismatch or invalid character for the spec<br />
ified codepage) for row 10, column 4 (LABEL).<br />
Msg 4864, Level 16, State 1, Server localpc\SQLEXPRESS, Line 3<br />
Bulk load data conversion error (type mismatch or invalid character for the spec<br />
ified codepage) for row 11, column 1 (MODELID).<br />
Msg 4864, Level 16, State 1, Server localpc\SQLEXPRESS, Line 3<br />
Bulk load data conversion error (type mismatch or invalid character for the spec<br />
ified codepage) for row 12, column 1 (MODELID).<br />
Msg 4865, Level 16, State 1, Server localpc\SQLEXPRESS, Line 3<br />
Cannot bulk load because the maximum number of errors (10) was exceeded.<br />
Msg 7399, Level 16, State 1, Server localpc\SQLEXPRESS, Line 3<br />
The OLE DB provider &#8220;BULK&#8221; for linked server &#8220;(null)&#8221; reported an error. The pro<br />
vider did not give any information about the error.<br />
Msg 7330, Level 16, State 2, Server localpc\SQLEXPRESS, Line 3</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Karthik</title>
		<link>http://blog.sqlauthority.com/2008/02/06/sql-server-import-csv-file-into-sql-server-using-bulk-insert-load-comma-delimited-file-into-sql-server/#comment-191035</link>
		<dc:creator><![CDATA[Karthik]]></dc:creator>
		<pubDate>Tue, 08 Nov 2011 18:52:29 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=497#comment-191035</guid>
		<description><![CDATA[Bulk insert is actually throwing errors with respect to permissions. Any clue as to what might be wrong? I have full administrator permissions to the database. Also has anyone used the bcp command?]]></description>
		<content:encoded><![CDATA[<p>Bulk insert is actually throwing errors with respect to permissions. Any clue as to what might be wrong? I have full administrator permissions to the database. Also has anyone used the bcp command?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shrikant</title>
		<link>http://blog.sqlauthority.com/2008/02/06/sql-server-import-csv-file-into-sql-server-using-bulk-insert-load-comma-delimited-file-into-sql-server/#comment-188199</link>
		<dc:creator><![CDATA[Shrikant]]></dc:creator>
		<pubDate>Fri, 04 Nov 2011 08:46:20 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=497#comment-188199</guid>
		<description><![CDATA[Thanks madhivanan for your help,]]></description>
		<content:encoded><![CDATA[<p>Thanks madhivanan for your help,</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: madhivanan</title>
		<link>http://blog.sqlauthority.com/2008/02/06/sql-server-import-csv-file-into-sql-server-using-bulk-insert-load-comma-delimited-file-into-sql-server/#comment-187725</link>
		<dc:creator><![CDATA[madhivanan]]></dc:creator>
		<pubDate>Thu, 03 Nov 2011 09:59:08 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=497#comment-187725</guid>
		<description><![CDATA[Refer this post http://beyondrelational.com/blogs/madhivanan/archive/2010/12/15/bulk-insert-comma-as-part-of-data.aspx

Use the second method which uses openrowset function and limit it to first row by using top operator;create a table based on those columns dynamically;Do bulk insert by setting first_row=1]]></description>
		<content:encoded><![CDATA[<p>Refer this post <a href="http://beyondrelational.com/blogs/madhivanan/archive/2010/12/15/bulk-insert-comma-as-part-of-data.aspx" rel="nofollow">http://beyondrelational.com/blogs/madhivanan/archive/2010/12/15/bulk-insert-comma-as-part-of-data.aspx</a></p>
<p>Use the second method which uses openrowset function and limit it to first row by using top operator;create a table based on those columns dynamically;Do bulk insert by setting first_row=1</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: matgryf</title>
		<link>http://blog.sqlauthority.com/2008/02/06/sql-server-import-csv-file-into-sql-server-using-bulk-insert-load-comma-delimited-file-into-sql-server/#comment-184193</link>
		<dc:creator><![CDATA[matgryf]]></dc:creator>
		<pubDate>Thu, 27 Oct 2011 17:31:48 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=497#comment-184193</guid>
		<description><![CDATA[To import data from *. csv file, I propose to open it in notepad and save it in unicode format and import it before. Imports are also a line from the file :)]]></description>
		<content:encoded><![CDATA[<p>To import data from *. csv file, I propose to open it in notepad and save it in unicode format and import it before. Imports are also a line from the file :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shrikant</title>
		<link>http://blog.sqlauthority.com/2008/02/06/sql-server-import-csv-file-into-sql-server-using-bulk-insert-load-comma-delimited-file-into-sql-server/#comment-183190</link>
		<dc:creator><![CDATA[Shrikant]]></dc:creator>
		<pubDate>Tue, 25 Oct 2011 05:06:01 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=497#comment-183190</guid>
		<description><![CDATA[Hello Madhivanan,

I think you did not get my problem. My CSV file starts with say 
Cust_ID, Cust_Name, Cust_Address, Cust_Phone, etc.....
and then from 2nd row onwards the actual data of these columns starts. 
Now my problem is that I want to get the first row of this file e.g. Cust_ID, Cust_name, Cust_Address......Create a temp table of these columns and then do the BULK Insert of the values of these columns (i.e. from 2nd row onwards)

As suggested by you I cannot do the BULK Insert by keeping option as first_row and last_row as 1. It will give me conversion error.

In Oracle we have functions like utl_file.fopen, utl_file.get_line, etc...Likewise what do we have in SQL Server 2005?

Hope you understood my problem....

Thanks...]]></description>
		<content:encoded><![CDATA[<p>Hello Madhivanan,</p>
<p>I think you did not get my problem. My CSV file starts with say<br />
Cust_ID, Cust_Name, Cust_Address, Cust_Phone, etc&#8230;..<br />
and then from 2nd row onwards the actual data of these columns starts.<br />
Now my problem is that I want to get the first row of this file e.g. Cust_ID, Cust_name, Cust_Address&#8230;&#8230;Create a temp table of these columns and then do the BULK Insert of the values of these columns (i.e. from 2nd row onwards)</p>
<p>As suggested by you I cannot do the BULK Insert by keeping option as first_row and last_row as 1. It will give me conversion error.</p>
<p>In Oracle we have functions like utl_file.fopen, utl_file.get_line, etc&#8230;Likewise what do we have in SQL Server 2005?</p>
<p>Hope you understood my problem&#8230;.</p>
<p>Thanks&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael Waclawiczek</title>
		<link>http://blog.sqlauthority.com/2008/02/06/sql-server-import-csv-file-into-sql-server-using-bulk-insert-load-comma-delimited-file-into-sql-server/#comment-183086</link>
		<dc:creator><![CDATA[Michael Waclawiczek]]></dc:creator>
		<pubDate>Tue, 25 Oct 2011 00:21:14 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=497#comment-183086</guid>
		<description><![CDATA[Check out http://www.CSVexpress.com to load any CSV file to any database for free!]]></description>
		<content:encoded><![CDATA[<p>Check out <a href="http://www.CSVexpress.com" rel="nofollow">http://www.CSVexpress.com</a> to load any CSV file to any database for free!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: madhivanan</title>
		<link>http://blog.sqlauthority.com/2008/02/06/sql-server-import-csv-file-into-sql-server-using-bulk-insert-load-comma-delimited-file-into-sql-server/#comment-182948</link>
		<dc:creator><![CDATA[madhivanan]]></dc:creator>
		<pubDate>Mon, 24 Oct 2011 16:00:26 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=497#comment-182948</guid>
		<description><![CDATA[In Bulk insert specify first_row and last_row option as 1 so that it will pickup only the first row from the file]]></description>
		<content:encoded><![CDATA[<p>In Bulk insert specify first_row and last_row option as 1 so that it will pickup only the first row from the file</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shrikant Bothe</title>
		<link>http://blog.sqlauthority.com/2008/02/06/sql-server-import-csv-file-into-sql-server-using-bulk-insert-load-comma-delimited-file-into-sql-server/#comment-181457</link>
		<dc:creator><![CDATA[Shrikant Bothe]]></dc:creator>
		<pubDate>Fri, 21 Oct 2011 06:38:58 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=497#comment-181457</guid>
		<description><![CDATA[I am having a .CSV file with 1st row as column heading. I want to take these column headings and create # table of it and then do the BULK INSERT into this # table. I am not getting how to get the 1st row, seperate the column headings seperated by , and create a table of it. Please help.
Thanks in advance ...]]></description>
		<content:encoded><![CDATA[<p>I am having a .CSV file with 1st row as column heading. I want to take these column headings and create # table of it and then do the BULK INSERT into this # table. I am not getting how to get the 1st row, seperate the column headings seperated by , and create a table of it. Please help.<br />
Thanks in advance &#8230;</p>
]]></content:encoded>
	</item>
</channel>
</rss>

