Please start any new threads on our new site at We've got lots of great SQL Server experts to answer whatever question you can come up with.

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
Save Password
Forgot your Password?

 All Forums
 Site Related Forums
 Article Discussion
 Bulk insert data conversion error (truncation) for
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Nagraj Naik
Starting Member

2 Posts

Posted - 06/28/2006 :  03:32:37  Show Profile  Reply with Quote
Hi All,
I tried Your code but it gives error
"Bulk insert data conversion error (truncation) for row 1, column 1 (id)."

Steps I followed

I open notepad
Entered data into it i.e One,Two
save it with name bulk
My database table is Table1 having only Id field

BULK INSERT table1 FROM 'c:\bulk.txt' WITH (FIELDTERMINATOR = ',')

hope you will help.........


Nagraj Naik
Starting Member

2 Posts

Posted - 06/28/2006 :  03:59:10  Show Profile  Reply with Quote
I myself find solution I just change datafield size.
Along with this i want to share one more issue that in your article you specified code is working with single line in text file.If data in text file is in more than one line ten this code work perfectly

BULK INSERT Resume.dbo.[table1]
FROM 'c:\Bulk.txt'

Let's Teach Life To Laugh........
Go to Top of Page
  Previous Topic Topic Next Topic  
 Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2019 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.02 seconds. Powered By: Snitz Forums 2000