DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    sunny Guest

    how to config the option of char non-sensitive


    dose DB2 can config the option of char non-sensitive.
    e.g. 'Abc' = 'aBc'

  2. #2
    MarkN Guest

    Re: how to config the option of char non-sensitive


    No. Because they don't equal. You will have to use UCase/Upper or LCase/Lower.
    Reason: Probably because DB2 runs on other systems besides Windows and that
    is how they work.

    Mark


    "sunny" <sunyu@hzcnc.com> wrote:
    >
    >dose DB2 can config the option of char non-sensitive.
    >e.g. 'Abc' = 'aBc'



  3. #3
    sunny Guest

    Re: how to config the option of char non-sensitive


    Oh. My god.
    You see, I an working on transform MS SQL Server database to DB2.
    In Ms Sql server, there are many stored procedure. and I config
    the ms sql server the option of non-insensitive of char/string.

    If in DB2 have to use UCase/Upper or LCase/Lower to solve the problem,
    I have to rewrite these SP. It's really a big trouble. :-(


    "MarkN" <m@n.com> wrote:
    >
    >No. Because they don't equal. You will have to use UCase/Upper or LCase/Lower.
    > Reason: Probably because DB2 runs on other systems besides Windows and

    that
    >is how they work.
    >
    >Mark
    >
    >
    >"sunny" <sunyu@hzcnc.com> wrote:
    >>
    >>dose DB2 can config the option of char non-sensitive.
    >>e.g. 'Abc' = 'aBc'

    >



  4. #4
    Greg Nash Guest

    Re: how to config the option of char non-sensitive

    Hi,

    One partial solution is to use generated columns that give themselves
    the UCASE of another column..
    or perhaps a trigger on insert or update of relevant fields to UCASE
    them whenever set..
    It all depends how you use the fields

    --Greg

    sunny wrote:

    > Oh. My god.
    > You see, I an working on transform MS SQL Server database to DB2.
    > In Ms Sql server, there are many stored procedure. and I config
    > the ms sql server the option of non-insensitive of char/string.
    >
    > If in DB2 have to use UCase/Upper or LCase/Lower to solve the problem,
    > I have to rewrite these SP. It's really a big trouble. :-(
    >
    >
    > "MarkN" <m@n.com> wrote:
    >
    >>No. Because they don't equal. You will have to use UCase/Upper or LCase/Lower.
    >>Reason: Probably because DB2 runs on other systems besides Windows and
    >>

    > that
    >
    >>is how they work.
    >>
    >>Mark
    >>
    >>
    >>"sunny" <sunyu@hzcnc.com> wrote:
    >>
    >>>dose DB2 can config the option of char non-sensitive.
    >>>e.g. 'Abc' = 'aBc'
    >>>

    >



  5. #5
    MarkN Guest

    Re: how to config the option of char non-sensitive


    You probably will have to rewrite them anyway because SPs are DB specific.
    If you did anything besides pure SQL you will have to look at every one
    anyway.

    I avoid SPs if I can. They are a last resort for me.

    Mark


    Greg Nash <GregNashdb2@bigpond.com> wrote:
    >Hi,
    >
    >One partial solution is to use generated columns that give themselves
    >the UCASE of another column..
    >or perhaps a trigger on insert or update of relevant fields to UCASE
    >them whenever set..
    >It all depends how you use the fields
    >
    >--Greg
    >
    >sunny wrote:
    >
    >> Oh. My god.
    >> You see, I an working on transform MS SQL Server database to DB2.
    >> In Ms Sql server, there are many stored procedure. and I config
    >> the ms sql server the option of non-insensitive of char/string.
    >>
    >> If in DB2 have to use UCase/Upper or LCase/Lower to solve the problem,


    >> I have to rewrite these SP. It's really a big trouble. :-(
    >>
    >>
    >> "MarkN" <m@n.com> wrote:
    >>
    >>>No. Because they don't equal. You will have to use UCase/Upper or LCase/Lower.
    >>>Reason: Probably because DB2 runs on other systems besides Windows and
    >>>

    >> that
    >>
    >>>is how they work.
    >>>
    >>>Mark
    >>>
    >>>
    >>>"sunny" <sunyu@hzcnc.com> wrote:
    >>>
    >>>>dose DB2 can config the option of char non-sensitive.
    >>>>e.g. 'Abc' = 'aBc'
    >>>>

    >>

    >



Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links