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
 SQL Server 2005 Forums
 SSIS and Import/Export (2005)
 Text file import failed

Author  Topic 

CSK
Constraint Violating Yak Guru

489 Posts

Posted - 2008-08-03 : 13:08:23
Dear all,

I am importing a textfile with Space(1) delimited. it is throwing the eror
quote:
"[Source - a_txt [1]] Error: Data conversion failed. The data conversion for column "Column 0" returned status value 4 and status text "Text was truncated or one or more characters had no match in the target code page.". "


The textfile is having only one row.
Here is the data (Inbetwwen data i have lot of spaces)
quote:

9999 USA MN Chandra M Mohan 07/07/2008 Storeoperator



My stage table structure
tbl_Store_Stage (Bkdata Varchar(max))

Could anyone help me what i am doing wrong in import and export wizard.. please

Thanks
Krishna

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2008-08-03 : 13:28:22
are you trying to put th entire row into single column?Then i think as per error that there might be some collation conflict happening.
Go to Top of Page

CSK
Constraint Violating Yak Guru

489 Posts

Posted - 2008-08-03 : 13:40:25
Yes I am importing the entire row in single column. is there any way to solve this issue..?
Go to Top of Page

CSK
Constraint Violating Yak Guru

489 Posts

Posted - 2008-08-03 : 14:05:46
I got the script from www.sqlteam.com/article/import-text-files-script. It is working fine for me.Thanks for the valuable reply!
Any how let me try to figure out what was wrong with my Import/Export process.

Thanks Once again..
Go to Top of Page

rmiao
Master Smack Fu Yak Hacker

7266 Posts

Posted - 2008-08-03 : 18:05:59
Did you specify correct row terminator in the wizard?
Go to Top of Page
   

- Advertisement -