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

  • Home
  • SEARCH
  • 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 730625
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T06:56:01+00:00 2026-05-14T06:56:01+00:00

The question is about Armenian. I’m using sql server 2005, collation SQL_Latin1_General_CP1_CI_AS, data mostly

  • 0

The question is about Armenian. I’m using sql server 2005, collation
SQL_Latin1_General_CP1_CI_AS, data mostly is in Armenian and we can’t use unicode.

I tested on ms sql 2008 with a windows collation for armenian language ( Cyrillic_General_100_ ), I have found here, ( http://msdn.microsoft.com/en-us/library/ms188046.aspx ) but it didn’t help.

I have a function, that orders hex values and a lower function, which takes each char in each string and converts it to it’s lower form, but it’s not acceptable solution, it works really slow, calling that functions on every column of a huge table.

Is there any solution for this issue not using unicode and not working with hex values manually?

UPDATE:

On the left side are mixed case words, sorted in the right order and with lower case representations on the right side. Hope this will help. Thank You.
Words are written in unicode.

  1. ԱբԳդԵզ -> աբգդեզ

  2. ԱգԳսԴԼ -> ագգսդլ

  3. ԲաԴֆդԴ -> բադֆդդ

  4. ԳԳԼասա -> գգլասա

  5. ԴմմլօՏ -> դմմլօտ

  6. ԵլԲնՆն -> ելբննն

  7. ԶՎլուտ -> զվլուտ

  8. էԹփձջՐ -> էթփձջր

  9. ԸխԾդսՂ -> ըխծդսղ

  10. ԹԶէըԿր -> թզէըկր

  • 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-14T06:56:01+00:00Added an answer on May 14, 2026 at 6:56 am

    One solution would be to create a computed column for each text column which converts the value into Armenian collation and sets it to lower case like so:

    Alter Table TableName
        Add TextValueArmenian As ( LOWER(TextColumn COLLATE Latin1_General_CI_AS) ) PERSISTED
    

    Once you do this, you can put indexes on these columns and query for them.

    If that isn’t your flavor of tea, then another solution would be an indexed view where you create a view with SCHEMABINDING that casts each of the various columns to lower case and to the right collation and then put indexes on that view.

    EDIT I notice in your examples, that your are using a Case-insensitive, Accent-sensitive. Perhaps the simple solution to your ordering issues would be to use Latin1_General_CS_AS or Cyrillic_General_100_CS_AS if available.

    EDIT

    Whew. After quite a bit of research, I think I have an answer which unfortunately may not be you will want. First, yes I can copy the text you provided into code or something like Notepad++ because StackOverflow is encoded using UTF-8 and Armenian will fit into UTF-8. Second, this hints at what you are trying to achieve: storing UTF-8 in SQL Server. Unfortunately, SQL Server 2008 (or any prior version) does not natively support UTF-8. In order to store data in UTF-8, you have a handful of choices:

    1. Store it in binary and convert it to UTF-8 on the client (which pretty much eliminates any sorting done on the server)
    2. Store it in Unicode and convert it to UTF-8 on the client. It should be noted that the SQL Server driver will already convert most strings to Unicode and your example does work fine in Unicode. The obvious downside is that it eats up twice the space.
    3. Create a CLR user defined type in SQL Server to store UTF-8 values. Microsoft provides a sample that comes with SQL Server to do just this. You can download the samples from CodePlex from here. You can also find more information on the sample in this article in the Books Online. The downside is that you have to have the CLR enabled in SQL Server and I’m not sure how well it will perform.

    Now, that said, I was able to get you sample working with no problem using Unicode in SQL Server.

    If object_id('tempdb..#Test') Is Not Null
        Drop Table #Test
    GO
    Create Table #Test
    (
        EntrySort int identity(1,1) not null
        , ProperSort int 
        , MixedCase nvarchar(50)
        , Lowercase nvarchar(50)
    )
    GO
    Insert #Test(ProperSort, MixedCase, Lowercase)
    Select 1, N'ԱբԳդԵզ',N'աբգդեզ'
    Union All Select 6, N'ԵլԲնՆն',N'ելբննն'
    Union All Select 2, N'ԱգԳսԴԼ',N'ագգսդլ'
    Union All Select 3, N'ԲաԴֆդԴ',N'բադֆդդ'
    Union All Select 4, N'ԳԳԼասա',N'գգլասա'
    Union All Select 5, N'ԴմմլօՏ',N'դմմլօտ'
    Union All Select 9, N'ԸխԾդսՂ',N'ըխծդսղ'
    Union All Select 7, N'ԶՎլուտ',N'զվլուտ'
    Union All Select 10, N'ԹԶէըԿր',N'թզէըկր'
    Union All Select 8,N'էԹփձջՐ',N'էթփձջր'
    
    Select * From #Test Order by ProperSort
    Select * From #Test Order by Lowercase
    Select * From #Test Order by Lower(MixedCase)
    

    All three of these queries return the same result.

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

Sidebar

Ask A Question

Stats

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

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

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

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

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Apple likes to use underscores to mean "private", according to… May 16, 2026 at 10:32 am
  • Editorial Team
    Editorial Team added an answer Do, assembly.GetTypes() .SelectMany(type => type.GetMembers()) .Union(assembly.GetTypes()) .Where(type => Attribute.IsDefined(type, attributeType));… May 16, 2026 at 10:32 am
  • Editorial Team
    Editorial Team added an answer This is my method: it uses the fact that physical… May 16, 2026 at 10:32 am

Trending Tags

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

Top Members

Related Questions

Question about controllers. Can controller call it`s own class methods inside an action? EDIT:
Quick question about SP 2010 licensing. Is it totally free? Can I install onto
i have question about why should we use return in get,if dont use what
Question about Eclipse RCP and whole perspective/view/editor design - what is the best way
Question about subclassing in matlab, under the new class system. I've got class A
Question about GridView sorting in VB.NET: I have a GridView with AutoGenerateColumns = True
Question about the MAC-protocol of 802.11 Wifi. We have learned that when a station
Question about paths while working in Visual Studio. In my master page I have
Question about Cassandra Why the hell on earth would anybody write a database ENGINE
I have a question about the event dispatch. I am trying to write the

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.