Standing on the shoulders of giants. RSS 2.0
# Tuesday, August 23, 2005

The easiest way on sql server 2000 is to change the collation on the column you want to do the search on:

ALTER TABLE dbo.Customers ALTER COLUMN CustID char(8) COLLATE SQL_Latin1_General_CP1_CS_AS NOT NULL

Tuesday, August 23, 2005 9:32:39 AM (Pacific Daylight Time, UTC-07:00)  #    Comments [1] - Trackback
Codesnippet | SQL
Monday, October 24, 2005 12:09:58 AM (Pacific Daylight Time, UTC-07:00)
my status column was 1 char
i had problems where the case was 'a' and i needed 'A'
a third party app was case sensitive but the database collation was not
here is the sql

SELECT * FROM name
WHERE
CONVERT( varbinary(1), status) = CONVERT( varbinary( 1), 'a') AND status='a'
order by last_updated desc
anon
Comments are closed.
Ads
About
© Copyright 2012
Paul van Brenk
Sign In
newtelligence dasBlog 2.3.2011.0
All Content © 2012, Paul van Brenk
DasBlog theme 'Business' created by Christoph De Baene (delarou)