Solved

SQL Server - Multi-diminsions on a column value?

Posted on 2014-02-22
1
185 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

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.
JSON is being used more and more, besides XML, and you surely wanted to parse the data out into SQL instead of doing it in some Javascript. The below function in SQL Server can do the job for you, returning a quick table with the parsed data.
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Viewers will learn how to use the UPDATE and DELETE statements to change or remove existing data from their tables. Make a table: Update a specific column given a specific row using the UPDATE statement: Remove a set of values using the DELETE s…

930 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now