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

 All Forums
 Site Related Forums
 Article Discussion
 Bulk insert data conversion error (truncation) for

Author  Topic 

Nagraj Naik
Starting Member

2 Posts

Posted - 2006-06-28 : 03:32:37
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.........


Regards,
Nagraj

Nagraj Naik
Starting Member

2 Posts

Posted - 2006-06-28 : 03:59:10
Hi,
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'
WITH
(
FIELDTERMINATOR = ',',
ROWTERMINATOR = '\n'
)


Regards,
Nagraj
Let's Teach Life To Laugh........
Go to Top of Page
   

- Advertisement -