SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2005 Forums
 Transact-SQL (2005)
 Bulk Insert failed
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

kkiranvr
Yak Posting Veteran

USA
54 Posts

Posted - 02/19/2008 :  14:42:09  Show Profile  Reply with Quote
Hi i am trying to bulk insert records from flat file to sql table, but i am getting the following error

Error: 0xC002F304 at Bulk Insert Task, Bulk Insert Task: An error occurred with the following error message: "Cannot fetch a row from OLE DB provider "BULK" for linked server "(null)".The OLE DB provider "BULK" for linked server "(null)" reported an error. The provider did not give any information about the error.Cannot bulk load because the maximum number of errors (10) was exceeded.".
Task failed: Bulk Insert Task


can any one guide me regarding this.

-Thanks N Regards,
Kanthi.

rmiao
Flowing Fount of Yak Knowledge

USA
7266 Posts

Posted - 02/19/2008 :  23:25:56  Show Profile  Reply with Quote
How's your bulk insert statement look like? Where is data file?
Go to Top of Page

anuksundar
Starting Member

India
4 Posts

Posted - 02/21/2008 :  06:19:49  Show Profile  Reply with Quote
hi

to bulk insert in sql server

create table emp1(
emp_id int,
emp_name varchar(20),
emp_sal decimal(10,2))

BULK INSERT emp1
FROM 'c:\bulk.txt'
WITH
(
DATAFILETYPE = 'char',
FIELDTERMINATOR = ',',
TABLOCK)

enter the values in bulk.txt as

6,sundar,30000
7,sesh,40000
8,anitha,20000

this will surely work


anuradhak
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.12 seconds. Powered By: Snitz Forums 2000