Solved

Bulk insert EOF error on file

Posted on 2004-09-16
1
732 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
Comment Utility
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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Introduced in Microsoft SQL Server 2005, the Copy Database Wizard (http://msdn.microsoft.com/en-us/library/ms188664.aspx) is useful in copying databases and associated objects between SQL instances; therefore, it is a good migration and upgrade tool…
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…
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
Via a live example, show how to backup a database, simulate a failure backup the tail of the database transaction log and perform the restore.

763 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

9 Experts available now in Live!

Get 1:1 Help Now