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


Column level collation to store multi linguage characters.


Column level collation to store multi linguage characters.

Author
Message
anthony.green
anthony.green
SSC-Insane
SSC-Insane (23K reputation)SSC-Insane (23K reputation)SSC-Insane (23K reputation)SSC-Insane (23K reputation)SSC-Insane (23K reputation)SSC-Insane (23K reputation)SSC-Insane (23K reputation)SSC-Insane (23K reputation)

Group: General Forum Members
Points: 23694 Visits: 6519
Morning all.

We receive data from a 3rd party, the flat file is correct in that it contains the right characters in the file

Flat file data
Emplea la calculadora como instrumento de exploración y verificación de resultados

Database data
Emplea la calculadora como instrumento de exploración y verificación de resultados

I changed the collation at the column to Latin1_General_BIN and Modern_Spanish_BIN, reimported the data, but still the data is showing with the ó instead of ó (it is also doing it for other characters).

The data that we receive is a mixture of English and Spanish (Mexican).

What would be the best collation for the import so that it stores the ó and not the ó, would of thought a binary collation but doesnt seem that way?

Thanks in advance.

Edit, the column is NVARCHAR already, but the file is not unicode, if I try to change to unicode in the SSIS package it doesnt recognise the columns any more.

Edit 2 - got to be the file not being in unicode, inserted the value manually for a number of collations and came back as it should for all collations tried, now to try and convert the flat file to unicode before import as it is already doing a data conversion on the import and still not generating the right output.



Want an answer fast? Try here
How to post data/code for the best help - Jeff Moden
When a question, really isn't a question - Jeff Smith
Need a string splitter, try this - Jeff Moden
How to post performance problems - Gail Shaw
CrossTabs-Part1 & Part2 - Jeff Moden
SQL Server Backup, Integrity Check, and Index and Statistics Maintenance - Ola Hallengren
Managing Transaction Logs - Gail Shaw
Troubleshooting SQL Server: A Guide for the Accidental DBA - Jonathan Kehayias and Ted Krueger


Jeff Moden
Jeff Moden
SSC Guru
SSC Guru (209K reputation)SSC Guru (209K reputation)SSC Guru (209K reputation)SSC Guru (209K reputation)SSC Guru (209K reputation)SSC Guru (209K reputation)SSC Guru (209K reputation)SSC Guru (209K reputation)

Group: General Forum Members
Points: 209607 Visits: 41973
How are you importing the data? For example, if you're using BULK INSERT, the probable way to fix this is to use the RAW file type which will bring the data in with no conversion.

--Jeff Moden

RBAR is pronounced ree-bar and is a Modenism for Row-By-Agonizing-Row.
First step towards the paradigm shift of writing Set Based code:
Stop thinking about what you want to do to a row... think, instead, of what you want to do to a column.
If you think its expensive to hire a professional to do the job, wait until you hire an amateur. -- Red Adair

Helpful Links:
How to post code problems
How to post performance problems
Forum FAQs
anthony.green
anthony.green
SSC-Insane
SSC-Insane (23K reputation)SSC-Insane (23K reputation)SSC-Insane (23K reputation)SSC-Insane (23K reputation)SSC-Insane (23K reputation)SSC-Insane (23K reputation)SSC-Insane (23K reputation)SSC-Insane (23K reputation)

Group: General Forum Members
Points: 23694 Visits: 6519
The data is inserted via SSIS, we receive around 10 files which are loaded into holding tables and a vary large set of manipulation is run on the data to create the correct data what we need for our apps.

The process is run so infrequently that we have made a decision to download the files before hand, and open / save this file in notepad etc as Unicode then upload it to the servers.

Going to investigate a C# or VB script which will do the conversion for us before it is passed to the data flow task.



Want an answer fast? Try here
How to post data/code for the best help - Jeff Moden
When a question, really isn't a question - Jeff Smith
Need a string splitter, try this - Jeff Moden
How to post performance problems - Gail Shaw
CrossTabs-Part1 & Part2 - Jeff Moden
SQL Server Backup, Integrity Check, and Index and Statistics Maintenance - Ola Hallengren
Managing Transaction Logs - Gail Shaw
Troubleshooting SQL Server: A Guide for the Accidental DBA - Jonathan Kehayias and Ted Krueger


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