Skip to Main Content

ODP.NET

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Case-insensitive search using ODP.Net provider

763899Nov 15 2010 — edited Nov 16 2010
Is there a way i can achieve case-insensitive search using ODP.Net provider? such a query will both return FOO and Foo just like where column_name = 'FOO' or column_name = 'Foo'

Comments

319958
CASE INSENSITIVE SEARCH ORACLE (http://www.orafaq.com/node/91) 10R2+
Either set the NLR_SORT/NLS_COMP globablly for this, on user_logon, or right before your calls
as such
   cmd.CommandText="alter session set NLS_SORT=BINARY_CI;";
   cmd.ExecuteNonQuery();
   
   
   cmd.CommandText="alter session set NLS_COMP=LINGUISTIC;";
   cmd.ExecuteNonQuery();
   
   cmd.CommandText = "insert query here";
   ...
   
1 - 1
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Dec 14 2010
Added on Nov 15 2010
1 comment
517 views