A Microsoft platform for building enterprise-level data integration and data transformations solutions.
anonymous user : If I do that I will get error 'column and text can't be same' as you suggested text to be '' .
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hi
I am exporting data from Sql server to Csv. My table has special characters which are important to retrieve but SSIS task throw error while exporting data. Characters like ' ồ ' and many more in different columns.
Datatype in SQL Server for this column is nvarchar(50) and in flat file I am using unicode string [DT_WSTR]. If I check Unicode in General tab data gets exported by I get a comma delimited file. When i do not check Unicode checkbox my csv gives perfect data but fails at these special characters.
I am using 1252 ANSI-Latin 1
Error: [Flat File Destination 1 [34]] Error: Data conversion failed. The data conversion for column "Column10" returned status value 4 and status text "Text was truncated or one or more characters had no match in the target code page.".
Thanks !
A Microsoft platform for building enterprise-level data integration and data transformations solutions.
A Microsoft extension to the ANSI SQL language that includes procedural programming, local variables, and various support functions.
Additional SQL Server features and topics not covered by specific categories
Answer accepted by question author
anonymous user : If I do that I will get error 'column and text can't be same' as you suggested text to be '' .
In order to get Unicode characters out of NVARCHAR columns into a CSV, you need to do 1 of 2 things.
This will enable to the characters to be output in csv files. The file output will be a Unicode file and if opened in a text editor that can read Unicode (notepad++) you will see the special characters.
My main motive is to export this data to sharepoint without using third party tool. I was able to achieve this with xls file but xls changes all numeric data to text.
So i considred using csv file which fails for special characters. Is there a way I can show that data in seperate column(not comma delimited) when I check Unicode?
I export data to csv on local machine and wrote some C# code to upload this csv to Sharepoint.
Thanks !
Hi @InderjeetKaur-3272 ,
If I check Unicode in General tab data gets exported by I get a comma delimited file.
When we use unicode string [DT_WSTR], we should check Unicode in the flat file connection manager.
Please refer to Unicode And Non-Unicode.
Best Regards,
Mona
----------
If the answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
Export to UTF-8 instead. This avoids a lot of troubles.. and consider using XML.
For your error: It is unavoidable. As you try to export data, which has no representation in your required destination format. Thus any way to make it run will lead to data loss.