Reply to topic
search unicode
ccdon


Joined: 27 Apr 2004
Posts: 11
Reply with quote
Hi,

Anyone know how to search unicode using Ms SQL 2000 and Cold Fusion MX? Thanks a lot!
byron
Forum Admin

Joined: 07 Mar 2004
Posts: 160
Location: Newark, DE, USA
Reply with quote
You may want to look at doing the search as a stored procedure. I've never done this via a cfquery. I general this should be easier than getting the driver to cooperate.
example
ccdon


Joined: 27 Apr 2004
Posts: 11
Reply with quote
Could you please give me an example of that?

Thank you very much!
byron
Forum Admin

Joined: 07 Mar 2004
Posts: 160
Location: Newark, DE, USA
Reply with quote
I believe all you will have to do is add a N in front of your search string. Which specifies the string as a nchar/nvarchar,ntext data type.

Something like this should work.

select *
from table
where col = N'Åkergatan 24'
ccdon


Joined: 27 Apr 2004
Posts: 11
Reply with quote
Thank you very much for your help!
search unicode
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT  
Page 1 of 1  

  
  
 Reply to topic