Unix Technical Forum

Case Sensitivity in DB2 on linux

This is a discussion on Case Sensitivity in DB2 on linux within the DB2 forums, part of the Database Server Software category; --> Hi All I am new to Db2. This question may be very simple. In SQL Server I can set ...


Go Back   Unix Technical Forum > Database Server Software > DB2

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-27-2008, 07:30 AM
Suresh
 
Posts: n/a
Default Case Sensitivity in DB2 on linux

Hi All

I am new to Db2. This question may be very simple.
In SQL Server I can set database option as case sensitive or
insensitive. Because of this if I set option as case insensitive than
'a'='A' or 'suResH'='SURESH'
Is there any such option in DB2 8.1 For linux. Can I set proper
collating sequence to achieve this then how?

Thanks and regards
Suresh

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-27-2008, 07:30 AM
Serge Rielau
 
Posts: n/a
Default Re: Case Sensitivity in DB2 on linux

Suresh wrote:
> Hi All
>
> I am new to Db2. This question may be very simple.
> In SQL Server I can set database option as case sensitive or
> insensitive. Because of this if I set option as case insensitive than
> 'a'='A' or 'suResH'='SURESH'
> Is there any such option in DB2 8.1 For linux. Can I set proper
> collating sequence to achieve this then how?

There is no database wide switch in DB2.
If you have certain columns you want to treat as case-insensitive you
can take a peek at this article:
http://www-128.ibm.com/developerwork...adamache3.html
A more sophisticated version (culturally correct collation) can be found
here:
http://www-128.ibm.com/developerwork.../dm-0602doole/

The user defined collation sequences facility provided by DB2 can be
used to change the order, but it does not allow for two different glyphs
to be equal.

Cheers
Serge
--
Serge Rielau
DB2 Solutions Development
IBM Toronto Lab
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 01:30 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com