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.
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 followedI open notepadEntered data into it i.e One,Twosave it with name bulk My database table is Table1 having only Id fieldBULK 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 perfectlyBULK INSERT Resume.dbo.[table1] FROM 'c:\Bulk.txt' WITH ( FIELDTERMINATOR = ',', ROWTERMINATOR = '\n' )Regards,NagrajLet's Teach Life To Laugh........ |
|
|
|
|
|