Book a Demo

Author Topic: Perform a case sensitive search  (Read 2880 times)

arphex

  • EA Novice
  • *
  • Posts: 18
  • Karma: +0/-1
    • View Profile
Perform a case sensitive search
« on: September 12, 2012, 12:15:20 am »
Hi all,

Is it possible to make a case sensitive search?

I want so search for lowerLimit and the search returns all:

LOWERLIMIT, lowerlimit and lowerLimit

thx

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Perform a case sensitive search
« Reply #1 on: September 12, 2012, 06:03:46 pm »
It depends on the underlying database. Some are case sensitive others aren't.

q.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Perform a case sensitive search
« Reply #2 on: September 12, 2012, 06:59:22 pm »
If you are on SQL Server that might be possible if you include the collection into your query.
I found this on the interwebs (but I haven't tried it myself)

http://SELECT *
FROM dbo.CaseSensitiveTest
WHERE Value1 LIKE '%Test%' Collate SQL_Latin1_General_CP1_[highlight]CS[/highlight]_AS

where apparently the CS part means Case Sensitive (as opposed to CI for Case Insensitive)

Geert