Wrox Programmer Forums
|
SQL Server 2000 General discussion of Microsoft SQL Server -- for topics that don't fit in one of the more specific SQL Server forums. version 2000 only. There's a new forum for SQL Server 2005.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Server 2000 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 24th, 2005, 10:29 PM
Authorized User
 
Join Date: Aug 2004
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
Default uppercase and lowercase


Hi All,

I was using MS SQL Server 2000.

When I select user_name from [user] where user_name='minhpx'

Then Results as following:

minhpx
MinhPX
MINHPX

Above results is not difference between upper-case letter and lower-case letter?

Can you help me?

Thanks.

Best Regards.

Minh


 
Old January 25th, 2005, 12:10 AM
Friend of Wrox
 
Join Date: Dec 2004
Posts: 307
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Vadivel Send a message via Yahoo to Vadivel
Default

1. Edit two records in Authors table in PUBS database. For one record changed the au_fname as 'Anne'. For the next record change the au_fname as 'anne'.
2. Execute the below query to see it doing a case sensitive search.

select * from authors where cast(au_fname as varbinary(8)) = cast('anne' as varbinary(8))

When we do binary comparison the values of 'A' and 'a' (first character of anne) doesn't match .. so you would get only one record as output

instead if you execute the below query it would show both the records as output,
select * from authors where au_fname = 'anne'

Best Regards
Vadivel

MVP ASP/ASP.NET
http://vadivel.thinkingms.com





Similar Threads
Thread Thread Starter Forum Replies Last Post
lowercase problem deean SQL Language 1 June 25th, 2008 02:10 PM
Enforcing uppercase in a cell in a DataGridView cole C# 2005 2 April 24th, 2007 02:33 PM
convert string to Uppercase in Classic asp MyronCope Classic ASP Basics 1 November 16th, 2006 04:12 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.