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 316065
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T08:20:58+00:00 2026-05-12T08:20:58+00:00

I’m running SQL Server 2005 and .Net 2.0. I have some tables that need

  • 0

I’m running SQL Server 2005 and .Net 2.0.
I have some tables that need to store data in multiple languages, in the same column.
E.g. an Article table, with ArticleID (identity) and ArticleName (nvarchar 100)
The data in ArticleName might be in various languages.

My database is using the default collation of SQL_Latin1_General_CP1_CI_AS,
as most of our data is in English.

Each user in my application can select his/her preferred culture.
In the user interface, the articles data is displayed in a data grid and the user can sort them by ArticleName.

Right now, the sort order is not correct because of my database collation.
I am thinking of fixing this by using the ORDER BY … COLLATE clause.
But how do I map the correct user culture to the SQL Server collation?
Do I have to specify for each culture, like this –
eg. if culture = zh-CN (Chinese PRC), then use collation Chinese_PRC_CI_AS
and so on…

Is there a better way to get the collation?
Is my approach correct? Or is there a better way to handle this?
(I did think of actually performing the sorting in .Net, but that seems like a waste of CPU time.)
Thanks for reading.

  • 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-12T08:20:58+00:00Added an answer on May 12, 2026 at 8:20 am

    SQL Server 2005 has a fn_helpcollations() table function, which returns all supported collations:

    select *, 
    COLLATIONPROPERTY(name, 'CodePage') as CodePage,
    COLLATIONPROPERTY(name, 'LCID') as LCID,
    COLLATIONPROPERTY(name, 'ComparisonStyle') as ComparisonStyle,
    COLLATIONPROPERTY(name, 'Version') as Version
    from fn_helpcollations()
    

    This MSDN article deals with SQL Server collations in detail and states:

    However, because there is no direct
    mapping between LCID and collations,
    you cannot determine the correct
    collation from an LCID.

    This is inconvenient if you would like to be able automatically to assign the best sorting order for users, based on their locale ID.

    I suggest you build a custom table mapping SQL collations to the languages you support for your users, retrieve the user’s collation from this mapping table, and use ORDER BY COLLATE as you intended.

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

Sidebar

Ask A Question

Stats

  • Questions 230k
  • Answers 230k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer One way would be to define an extension point "plugin_a_wizard_page"… May 13, 2026 at 1:57 am
  • Editorial Team
    Editorial Team added an answer Hands down, SQLite - so long as your data entities… May 13, 2026 at 1:57 am
  • Editorial Team
    Editorial Team added an answer Actually MultiTenant plugin's "SingleTenant" mode is what you are looking… May 13, 2026 at 1:57 am

Related Questions

I want use html5's new tag to play a wav file (currently only supported
I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
I ran into a problem. Wrote the following code snippet: teksti = teksti.Trim() teksti
In order to apply a triggered animation to all ToolTip s in my app,
I have a French site that I want to parse, but am running into

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.