Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 494933
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T05:32:43+00:00 2026-05-13T05:32:43+00:00

I need database structure for storing versions of site’s content in different languages. Right

  • 0

I need database structure for storing versions of site’s content in different languages. Right now I’m doing it like this:

[Item]  
Id  
SomeColumn  

[ItemStrings]  
ItemId  
LanguageId  
Title  
Description  
...

[Languages]  
Id  
Culture  

Although, it is a pretty neat way to do translation, it requires a lot of monkey coding when adding new entities into the system.
The other solution, that I thought of, was some global table for ALL strings that need to be translated, with unique id and language id as primary key.
I like the second way much more because it is more DRY.

Now, real question is: can I use nvarchar(MAX) for all my records? Will it consume much more memory, when, say only 20% of values will be worth varchar(max) and others would easily fit in nvarchar(50-something)?

I’m using SQL Server 2008.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T05:32:43+00:00Added an answer on May 13, 2026 at 5:32 am

    The second approach is closer to how localization is typically done (each string has an ID of some sort and can be looked up for various languages.)

    Regarding using nvarchar(MAX), that should be fine. varchar types only use as much space as they need.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to manage hierarchy data storing in my database. But now I am
I need to store a tree data structure in my database, for which I
I need a database where one (or more) fields behave like a wiki. I
I need to load database content into a JTable . Many times I search
I have a question about database 'style'. I need a method of storing user
I have a list of recipes obtained from a database that looks like this:
What is a good data structure for storing phone numbers in database fields? I'm
I have this database structure CREATE TABLE `productinfo` ( `ProductID` int(11) NOT NULL AUTO_INCREMENT,
I need a database that could be stored network drive and would allow multiple
We need a database driven CSS menu . How would you do that? I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.