Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am searching a field on a layer in ArcGIS Server 10 with wildcards.

The query will be something similar to "STREETNAME like '%MAIN%'"

Right now the searches are case sensitive, so it will only return results with MAIN in the STREETNAME field as opposed to Main.

Is it possible for me to disable case sensitive searching?

Thanks, Seth

share|improve this question
what is your data store? i'm on sql server 2008 and like statements are case insensitive, so STREET_NAME LIKE '%MaNgO%' and STREET_NAME LIKE '%MANGO%' return the same results. – Jay Cummins Sep 30 '10 at 15:29
File GeoDatabase – Seth P. Sep 30 '10 at 15:46
up vote 6 down vote accepted

You can use a SQL function to modify the value before making the comparison. Example:

upper(STREETNAME) like '%MAIN%'

The SQL function may vary from the example depending on the datasource (file GDB, SDE, etc).

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.