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

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
Save Password
Forgot your Password?

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 Unicode sort
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Posting Yak Master

215 Posts

Posted - 10/30/2006 :  11:53:53  Show Profile  Reply with Quote
I run the following, but the result show char-224 before char-65 !!!

create table ling( str nvarchar(1000))

insert into ling values( N'Ann Smith')
insert into ling values( N'Anna')
insert into ling values( N'Becky')
insert into ling values( N'Clara')
insert into ling values( N'Deanna')
insert into ling values( N'#913;#961;#953;#963;#964;#959;#964;#941;#955;#951;#962;')
insert into ling values( N'#1040;#1083;#1077;#1082;#1089;#1072;#1085;#1076;#1088;#1072;')
insert into ling values( N'à#262;Æ')
insert into ling values( N'DF#282;è')
insert into ling values( N'Zxr')
insert into ling values( N'89')
insert into ling values( N'#&^')

select * from ling
order by str asc

Noam Graizer

Cybernetic Yak Master

11752 Posts

Posted - 10/30/2006 :  12:03:54  Show Profile  Visit spirit1's Homepage  Reply with Quote
this is because of collation settings
create table ling( str nvarchar(1000) collate Latin1_General_BIN)

for all collations see
SELECT * FROM ::fn_helpcollations()

Go with the flow & have fun! Else fight the flow
blog thingie:

Edited by - spirit1 on 10/30/2006 12:04:21
Go to Top of Page

Patron Saint of Lost Yaks

30421 Posts

Posted - 10/30/2006 :  12:13:56  Show Profile  Visit SwePeso's Homepage  Reply with Quote
Or just sort them collated when using the records in the output, as
select * from ling
order by [str] collate Latin1_General_BIN

Peter Larsson
Helsingborg, Sweden
Go to Top of Page
  Previous Topic Topic Next Topic  
 Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.02 seconds. Powered By: Snitz Forums 2000