Articles
DevASP - ASP and XML Articles, Samples, Toturials, Sample Chapters and resources for Developers Tuesday, February 07, 2012
Home
Articles & Samples
Dev Search
Sample Chapters
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

FREE 12 month online training for ASP.NET & MS Expression Studio and a Free copy of MS Expression Web with Windows Server Purchase

User Rating!

Home > Search
PRB: Windows Collations Ignore Single Quote and Hyphen When Ordering (Q305704)       
Total Hits: 71  |  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