SiteExperts.com Logo Home | Community | Developer's Paradise
User Groups | Site Tools | Site Information | Search
 Main Menu
 Forums
SiteExperts.com Forums
All Discussions

SiteExperts Feedback
The Lounge
Dynamic HTML
Site Design/ Critiques
HTML and CSS
XML Technologies
The Wireless Internet
Internet Explorer
Microsoft .NET
The Server
Technical Support

Sponsored Links

User Groups : Forums : SiteExperts : The Server :

Previous DiscussionNext Discussion
 Case-sensitive SQL Server instance

Hey everyone,

Is it possible to alter SQL Server 2000 to be case sensitive with regards to passwords after the initial install?  I'd like to do that if possible.  I know you can do it on install, but not whether you can change it post-install.

-Chris

Started By PPIDC on Sep 30, 2004 at 4:30:09 AM

8 Response(s) | Reply

View All Replies | Goto Page: 2 1
ctcrmcou on Oct 28, 2004 at 12:00:30 PM

No I don't believe it is possible.  The references, indexes, etc. that are created throughout take case sensitivity into account when the keys are created.  It's not just about the data.  And SQL Server creates MANY MANY tables of its own for administrative purposes - all of which would be affected. 

Now if you want to just store a user's password in case sensitive fashion for a client application or something, then a simple approach would be to delimit each character with a code:

"MyPassWord" stored as "/M\y/P\a\s\s/W\o\r\d".  / denotes the next character is uppercase \ denotes lower case.  I would have used u and l but to hard to read here.  Here's why:

Case sensitive server:  "select * from usertable where password = '" + Password + "'"

The user's case sensitivity is compared exactly, which is ideal.

Non-case sensitive server: you must parse the supplied password to insert the case delimiters, then it will work:

"select * from usertable where password = '" + DelimitedPassword + "'"

Now since the passwords are stored in the database with the delimiters coded in, you will get the match assuming the case sensitive password is correct.

 

But if your looking at database user passwords, then you're out of luck.  Export your databases, reinstall, reimport your databases.


View All Replies | Goto Page: 2 1

To respond to a discussion, you must first logon.

If you are not registered, please register yourself to become a member of the SiteExperts.community.

User Name
Password
Copyright 1997-2000 InsideDHTML.com, LLC. All rights reserved.