SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


SSIS File Import Collation


SSIS File Import Collation

Author
Message
p.m.kavanagh
p.m.kavanagh
Grasshopper
Grasshopper (17 reputation)Grasshopper (17 reputation)Grasshopper (17 reputation)Grasshopper (17 reputation)Grasshopper (17 reputation)Grasshopper (17 reputation)Grasshopper (17 reputation)Grasshopper (17 reputation)

Group: General Forum Members
Points: 17 Visits: 52
I am using SSIS to import text files, which include french accented characters in some fields, from a remote database into a local database. Table structures, collation, etc., are identical in local and remote databases.

The collation on the target database is set to Latin general 1252. There is no problem storing the data in the current varchar fields (not nvarchar), in either the source or target databases, of course.

Here is the problem. When I set up the file connector, I can only see the french characters properly if I use UTF8 collation. Otherwise I get odd character substitutions. however, in this setup, the ole db destination object complains about "more that one codepage specified...".

I am guessing (hoping) that there is something simple I am missing to make this work.

My question is: what is the simplest way to pull in the file data correctly (which looks like I will need to use unicode, or utf-8), but then pass that data back to the ole db destination object which is connecting to the 1252 codepage database?

Thanks in advance for any suggestions.

Paul
j.felix.s
j.felix.s
Forum Newbie
Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)

Group: General Forum Members
Points: 3 Visits: 38
I just had the same issue myself and managed to get around it by using 2 data conversion tasks.

The first to convert UTF-8 data read from the file to unicode
and then the second to convert from unicode to correct code page. 1252 in my case

Has to be a 2 step process because it will not let you convert directly from UTF-8
Silvia Acevedo
Silvia Acevedo
Forum Newbie
Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)

Group: General Forum Members
Points: 7 Visits: 42
Hi...I am havig the same problem but I dont know if I understood I added the 2 data conversions as you said but I am getting the same problem. I am missing the accent SQL adde + signs instead of the french accent.

I added one data conversion as Unicode string an the other as STRINg 1252. Let me know if I am doing something wrong.

Thanks
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum







































































































































































SQLServerCentral


Search