Articles   Dev Forums   Personalize   Favorites   Member Login        Active Users:  817
DevASP - ASP and XML Articles, Samples, Toturials, Sample Chapters and resources for Developers Thursday, September 02, 2010
Home
Articles & Samples
Dev Search
Dev Forum
Add a Listing
Sample Chapters
Directory Feed
Link to US
Contact

Search Directory
Applications
Articles & Samples
Components
Community
Database
Developer Sites
Downloads
Hosting Services
Introduction
Knowledge Base
Sample Chapters
WebCasts
ASP Directory
Applications
Articles & Samples
Components
Developer Sites
Knowledge Base
Sample Chapters
WebCasts
XML Directory
Applications
Articles & Samples
Developer Sites
Error, Bugs & Fixes
Downloads
Introduction
Knowledge Base
Sample Chapters
WebCasts

Build the right apps the right way with powerful development tools.
Visual Studio 2010. Learn more...

User Rating!

Home > Search
PRB: Windows Collations Ignore Single Quote and Hyphen When Ordering (Q305704)       
Total Hits: 68  |  Today: 0       Rating:  
Read Reviews | Write Review |              Your Rating: 

A single quote ('') or an apostrophe ('') and hyphen (-) are considered last when SQL Server 2000 sorts data stored with Microsoft Windows collations. To illustrate this behavior consider the following example:

CREATE TABLE t1(c1 VARCHAR(10) COLLATE Latin1_General_CI_AI)
INSERT INTO t1 VALUES (''car''''s'')
INSERT INTO t1 VALUES (''cars'')
INSERT INTO t1 VALUES (''carps'')
INSERT INTO t1 VALUES (''car-s'')
GO
SELECT * FROM t1 ORDER BY c1 ASC
GO

The output is:

c1
----------
carps
cars
car''s
car-s

(4 row(s) affected)

DevASP.com users Rating
What is your opinion?
Is this your listing?

    If this is your listing and you like to add the rating box
    displayed on the right side on your site you can use the following code.

Go Back
DevASP - Privacy - Disclaimer
Copyright © 2008 DevASP.com