Solved

SQL Server - Multi-diminsions on a column value?

Posted on 2014-02-22
1
190 Views
Last Modified: 2014-02-27
Is there an easy way for SQL Server to manage multiple dimensions of a column value like languge?  For example; if I wanted to maintain 27 different languages of a table column called "Product Description" is the only solution to create one column for each language?  What is the best solution for this?  

ProductDescription-English    varchar(max)
ProductDescription-French    varchar(max)
ProductDescription-German    varchar(max)
ProductDescription-Spanish    varchar(max)
.
.
0
Comment
Question by:hojohappy
1 Comment
 
LVL 34

Accepted Solution

by:
Brian Crowe earned 500 total points
ID: 39880270
typically I would recommend creating a separate product entry for each language since there are likely to be other values that will vary by locale like currency.

For general localization issues I would create a table called String and store the descriptions in there and then establish a foreign key relationship from the product table to the string table.

CREATE TABLE String
(
   StringID INT IDENTITY(1,1),
   Text NVARCHAR(MAX),
   LanguageID INT  --foreign key reference to a
)
0

Featured Post

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
SQL date incremented 11 31
Sql server function help 15 31
SQL Insert parts by customer 12 34
SQL Query assistance 16 26
Nowadays, some of developer are too much worried about data. Who is using data, who is updating it etc. etc. Because, data is more costlier in term of money and information. So security of data is focusing concern in days. Lets' understand the Au…
This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
Via a live example, show how to shrink a transaction log file down to a reasonable size.
Viewers will learn how to use the SELECT statement in SQL to return specific rows and columns, with various degrees of sorting and limits in place.

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question