473,383 Members | 1,859 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

Support for Spanish and English language

Hi,
I have a database and want to store data in Spanish and English. To
accompish this:

1. Do i need to create separate tables for both the languages like
items_en and items_sp?

2. If I opt for the UTF16 charset what single collation setting can I
use?

Thanks and Regards
Jackal Hunt

Feb 20 '07 #1
1 3217
(ja************@yahoo.com) writes:
I have a database and want to store data in Spanish and English. To
accompish this:

1. Do i need to create separate tables for both the languages like
items_en and items_sp?
It's impossible to answer without more knowledge about your requirements
and what sort of data we are talking about. But seprate tables does not
sound like a good idea.

One upon a time, our tables looked like this:

CREATE TABLE entities (entityid int NOT NULL,
entityname varchar(30) NOT NULL,
entitynamefor varchar(30) NOT NULL,
...

Where "name" was the Swedish name, and "namefor" the English name. But
when we entered the Finnish market, that was not acceptable, so we
switched to:

CREATE TABLE entities (entityid int NOT NULL,
entityname varchar(30) NOT NULL,
...

CREATE TABLE entitynames(entityid int NOT NULL,
languageid smallint NOT NULL,
entityname varchar(30) NOT NULL,
PRIMARY KEY (entityid, languageid))

That is, for every entity we have a look-up table for, there is also
a name table, that holds the name for the various languages. The
main table also has the name in the home language of the system, since
we cannot ensure that the users enters name in all languages that the
system support.

But I have to idea whether this is applicable to your system.
2. If I opt for the UTF16 charset what single collation setting can I
use?
If all you need to support is English and Spanish, you can go with
varchar if you like.

If you need sorting of your data, our scheme with a subtable of the
names is not workable. You can set the collation per column, so you
can have one Spanish column with Modern_Spanish_CI_AS and one
English column with Latin1_General_CI_AS.

In practice, though, it should work just fine to have Modern_Spanish
everywhere, since the effect on English will be miniscule. It's different
if you want to use Traditional_Spanish, where CH and LL sorts as
separate letters; that is not suitable for English.


--
Erland Sommarskog, SQL Server MVP, es****@sommarskog.se

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/pro...ads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinf...ons/books.mspx
Feb 20 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: ..... | last post by:
I have an established program that I am changing to allow users to select one of eight languages and have all the label captions change accordingly. I have no problems with English, French, Dutch,...
4
by: Jim Adams | last post by:
Anyone have any insights into this? I'm planning an upgrade to an existing ASP.Net project to support multiple display languages (e.g. English, Spanish, ...). I'd like to use a solution that...
3
by: clintonG | last post by:
I'm messing around with the Request.UserLanguages and the Request.ServerVariables("HTTP_ACCEPT_LANGUAGE"); to see how similar or dissimilar they may be. I observe and conclude that both get...
3
by: Chip | last post by:
There is surprisingly little information on the various encoding options for reading a text file. I have what seems to be a very basic issue: I'm reading a text file that includes Spanish...
4
by: =?Utf-8?B?Q2hyaXMgRGF2b2xp?= | last post by:
I have a need to translate a web page from english to spanish. Is there anything in .NET framework that does this? -- Chris Davoli
0
by: pziggs | last post by:
I have been working on a page in English, and today began tackling the Spanish version of the site. I'm curious because on the homepage (www.nuestracasa.com/esp/) it displays the spanish language...
1
by: DR | last post by:
how to determine what language a c# string is written in? is there any C# method to take a string and return what language it is in? e.g. english, hindi, spanish, etc.
1
by: DR | last post by:
how to determine what language a string is written in? is there any method to take a string and return what language it is in? e.g. english, hindi, spanish, etc.
2
by: paragdi | last post by:
Hi Experts! I am developing heavy mathematical engineering windows application in VB.NET (VS2005) with MSAccess Db. This application has resource files in English, Spanish and German Language. I...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.