Wrox Programmer Forums
|
Classic ASP Databases Discuss using ASP 3 to work with data in databases, including ASP Database Setup issues from the old P2P forum on this specific subtopic. See also the book forum Beginning ASP.NET Databases for questions specific to that book. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Databases 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, 03:30 AM
Authorized User
 
Join Date: Aug 2003
Posts: 52
Thanks: 0
Thanked 0 Times in 0 Posts
Default How to do case sensitive comparison in SQL SERVER

Hi all,
Below is my code to verify user. Can anyone suggest me how can i do username and password case sensitive check (SQL SERVER 2000), which the below code lacks.
Code:
CREATE PROCEDURE sp_VerifyUser
@uname varchar(30),
@pwd varchar(30),
@uid varchar(20) out
AS
if exists(select * from users where [email protected] and [email protected])
    select @uid=cast(uid as varchar)  from users where [email protected] and [email protected]
else
    select @uid="notfound"
GO
Thanks

Vinay


 
Old January 24th, 2005, 04:55 AM
Authorized User
 
Join Date: Aug 2004
Posts: 58
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Use the code below

select * from [tbl_name] WHERE CAST(string1 AS VARBINARY(999))=CAST(string2 AS VARBINARY(999))

Shibu Narayanan
Software Associates
 
Old January 24th, 2005, 01:46 PM
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

http://vyaskn.tripod.com/case_sensit...sql_server.htm

Best Regards
Vadivel

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





Similar Threads
Thread Thread Starter Forum Replies Last Post
How to check the password field for case-sensitive zubash73 ASP.NET 2.0 Basics 4 November 27th, 2016 02:47 AM
Case sensitive search prabodh_mishra SQL Server 2000 6 June 10th, 2008 04:54 AM
Case Sensitive hymavathy_kr VB Databases Basics 1 August 10th, 2007 06:43 AM
making login case sensitive with mysql database crmpicco MySQL 0 August 18th, 2006 05:48 AM
Case Insensitive Comparison in Oracle 9i ashu_from_india Oracle 0 December 29th, 2005 02:53 AM





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