Solved

Bulk insert EOF error on file

Posted on 2004-09-16
1
740 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
The Delta outage: 650 cancelled flights, more than 1200 delayed flights, thousands of frustrated customers, tens of millions of dollars in damages – plus untold reputational damage to one of the world’s most trusted airlines. All due to a catastroph…
Via a live example, show how to extract insert data into a SQL Server database table using the Import/Export option and Bulk Insert.
Viewers will learn how to use the INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.

813 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

11 Experts available now in Live!

Get 1:1 Help Now