Solved

Bulk insert EOF error on file

Posted on 2004-09-16
1
736 Views
Last Modified: 2010-05-18
I am getting this error when trying to load a csv comma delimited file:

Server: Msg 4832, Level 16, State 1, Line 1
Bulk Insert: Unexpected end-of-file (EOF) encountered in data file.
Server: Msg 7399, Level 16, State 1, Line 1
OLE DB provider 'STREAM' reported an error. The provider did not give any information about the error.
OLE DB error trace [OLE/DB Provider 'STREAM' IRowset::GetNextRows returned 0x80004005:  The provider did not give any information about the error.].
The statement has been terminated.

I am wondering if I have something wrong in my insert statement
go
BULK INSERT DOCSDB..Temp FROM 'c:\SER\new\import.csv'
   WITH
      (
         FIELDTERMINATOR = ',',
         ROWTERMINATOR ='\n'
      )
0
Comment
Question by:running32
1 Comment
 
LVL 42

Accepted Solution

by:
EugeneZ earned 125 total points
ID: 12077586
try DTS Wizard to import the csv - to see what are delimeters for row and field..

or\and


BULK INSERT DOCSDB..Temp FROM 'c:\SER\new\import.csv'
   WITH
      (
         MAXERRORS=100
      )

0

Featured Post

Zoho SalesIQ

Hassle-free live chat software re-imagined for business growth. 2 users, always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction In my previous article (http://www.experts-exchange.com/Microsoft/Development/MS-SQL-Server/SSIS/A_9150-Loading-XML-Using-SSIS.html) I showed you how the XML Source component can be used to load XML files into a SQL Server database, us…
Everyone has problem when going to load data into Data warehouse (EDW). They all need to confirm that data quality is good but they don't no how to proceed. Microsoft has provided new task within SSIS 2008 called "Data Profiler Task". It solve th…
Via a live example combined with referencing Books Online, show some of the information that can be extracted from the Catalog Views in SQL Server.
Viewers will learn how the fundamental information of how to create a table.

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now