Results 1 to 2 of 2

Thread: sql server LIKE problem with unicode

  1. #1

    Thread Starter
    Member n0vembr's Avatar
    Join Date
    Jun 2005
    Location
    pilipinas kong minumutya
    Posts
    60

    sql server LIKE problem with unicode

    have anyone had any problem with sql server LIKE keyword?
    im trying to build a searching module..the program is in Japanese.
    problem is when I try to search using one Japanese character it will
    display all records.. what am I missing?? :S

    my query looks like this:

    SELECT * FROM SHAIN_T WHERE shain_name LIKE '%SHAIN_INPUT%'
    any ideas?
    thanks..salamat..arigatou..gracias

  2. #2
    Fanatic Member kaffenils's Avatar
    Join Date
    Apr 2004
    Location
    Norway
    Posts
    946

    Re: sql server LIKE problem with unicode

    What collation is the column SHAIN_NAME?

    Execute
    Code:
    sp_help 'area'
    and post the column names and their collation here.

    Try
    Code:
    SELECT * FROM SHAIN_T WHERE shain_name LIKE '%SHAIN_INPUT%' COLLATE {Name of collation from sp_help}

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width