Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Bulk insert EOF error on file

Posted on 2004-09-16
1
Medium Priority
?
750 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 43

Accepted Solution

by:
Eugene Z earned 500 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

Veeam Disaster Recovery in Microsoft Azure

Veeam PN for Microsoft Azure is a FREE solution designed to simplify and automate the setup of a DR site in Microsoft Azure using lightweight software-defined networking. It reduces the complexity of VPN deployments and is designed for businesses of ALL sizes.

Question has a verified solution.

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

In part one, we reviewed the prerequisites required for installing SQL Server vNext. In this part we will explore how to install Microsoft's SQL Server on Ubuntu 16.04.
It is possible to export the data of a SQL Table in SSMS and generate INSERT statements. It's neatly tucked away in the generate scripts option of a database.
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.
Via a live example, show how to shrink a transaction log file down to a reasonable size.

885 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