Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 SQL Server Administration (2005)
 SQL sort based on user lanaguage

Author  Topic 

R
Constraint Violating Yak Guru

328 Posts

Posted - 2010-07-01 : 06:38:28
Hi

My application uses SQL 2005 and ASP.NET, and retrieves data using stored procedures.
SQL is installed on a Win2003 server, and all versions are in English UK.

Recently, I enhanced the application to support the Norwegian language, but now the Norwegian users are complaining that sorting is not being done correctly. For example, SQL produces this alphabetically-sorted list...


Annet språk
Anvende ny kunnskap
Åpen for nye rutiner og metoder
Årsregnskap
Avdekke signaler og behov
Beholde ro og vennlighet


...but this is incorrect as apparently the Norwegian symbol Å comes at the end of their alphabet. Therefore, is it possible to use some kind of culture flag on the connection object to get the sorting to work correctly? I really could do with avoiding editing the stored procedures because I have hundreds of them...!
   

- Advertisement -