Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

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
add comment

1 Answer 1

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
add comment

Your Answer

 
discard

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.