Re: Are SQL logins case sensitive

From: Uri Dimant (urid_at_iscar.co.il)
Date: 01/28/04


Date: Wed, 28 Jan 2004 11:04:35 +0200

Don
Look at below examle helo to solve the problem
create table ABCD
(
 [password] varchar(20) null
)
insert into ABCD([password])values ('ABCD')

DECLARE @p VARCHAR(100)
SET @p='AbcD'
SELECT [password] FROM ABCD
 where charindex(cast(@p as varbinary(20)),cast([password] as
varbinary(20)))> 0

SELECT [password]
FROM ABCD
WHERE [password] =@p COLLATE Latin1_General_BIN

SELECT [password]
FROM ABCD
WHERE charindex(@p,[password] COLLATE Latin1_General_BIN)>0

drop table ABCD
"Don Grover" <spamfree@assoft.com.au> wrote in message
news:ujdZn7U5DHA.2764@TK2MSFTNGP09.phx.gbl...
> I tried BOL, but it does not specify case sensitive.?
> Im also wondering what characters can only be entered by the keyboard
etc,.
> and not through a sp or the like.
>
> Don
>
> "Satish Balusa" <sbalusa_nospam@corillian.com> wrote in message
> news:uwThpdT5DHA.1632@TK2MSFTNGP12.phx.gbl...
> > It depends upon the Collation you are using.
> > If you are using Dictionary Order Case Insensitive, which is the
default,
> I
> > guess it should not make a difference.
> >
> > --
> > HTH
> > Satish Balusa
> > Corillian Corp.
> >
> >
> > "Don Grover" <spamfree@assoft.com.au> wrote in message
> > news:e7fFlXT5DHA.2404@TK2MSFTNGP12.phx.gbl...
> > > SQL2k
> > > Are user passwords case sensitive, ie Ab234 <> ab234
> > > If not can I make this happen?.
> > >
> > > Don
> > >
> > >
> >
> >
>
>



Relevant Pages

  • Re: how to make case sensitive query
    ... SELECT description FROM ABCD where charindex(cast('H' as ... WHERE charindex('h',description COLLATE Latin1_General_BIN)>0 ... > I need to retrive the a case sensitive value from a string. ...
    (microsoft.public.sqlserver.programming)
  • Re: Comment Balloon
    ... I believe the name of the reviewer is picked up from the document ... If you clear the name here it won't display (In my Word ... HTH -- Henk ... What I need is: Comment: abcd ...
    (microsoft.public.word.docmanagement)