Re: Like Operator with Unicode
- From: "Sylvain Lafontaine" <sylvain aei ca (fill the blanks, no spam please)>
- Date: Fri, 24 Oct 2008 00:23:49 -0400
The first thing to do would be to replace the old ODBC driver ({SQL Server})
with something more recent; preferably the SQL Native Client ODBC Driver;
see http://www.connectionstrings.com/?carrier=sqlserver2005
The second would be to make sure that the data is correct on the server side
by using the Unicode function to display what's you really have on the
server. You could also use the same Unicode function for testing what's you
are sending to the server as the string constant.
Finally, you should also take a look with the SQL-Server Profiler to see
what the ODBC Driver is sending exactly to the server.
--
Sylvain Lafontaine, ing.
MVP - Technologies Virtual-PC
E-mail: sylvain aei ca (fill the blanks, no spam please)
"Charax" <chopkins@xxxxxxxxxxxxxxxxxxx> wrote in message
news:%23$1mdoWNJHA.6044@xxxxxxxxxxxxxxxxxxxxxxx
Sylvain,
Thanks for your reply. These are just simple ad hoc queries initiated by
opening a simple New query from the Access MDB database window, no
parameters, the only criteria is a Like operator. The table is linked
through ODBC, SQL Server Native Client driver is 2005.90.3042.00. Database
sort order is General on a US English system.
The connect string:
ODBC;Driver={SQL
Server};Server=XPS;UID=Foobar;DATABASE=mylocaldb;Trusted_Connection=Yes
The objective is to return all records that contain ARSAKOU in the
txtSellwood field (where for this posting I've substituted Latin letters
ARSAKOU for the Greek letters, all uppercase Alpha Rho Sigma Alpha Kappa
Omicron Upsilon).
This query won't return data:
SELECT Coins.dwSellwood, Coins.txtSellwood
FROM Coins
WHERE (Coins.txtSellwood) Like "*ARSAKOU*"
WITH OWNERACCESS OPTION;
This query works:
SELECT dwSellwood, txtSellwood
FROM Coins
WHERE (txtSellwood) Like "*[A][R][S][A][K][O][U]*"
WITH OWNERACCESS OPTION;
Your thoughts appreciated,
Charax
.
- Follow-Ups:
- Re: Like Operator with Unicode
- From: Charax
- Re: Like Operator with Unicode
- References:
- Like Operator with Unicode
- From: Charax
- Re: Like Operator with Unicode
- From: Charax
- Re: Like Operator with Unicode
- From: Sylvain Lafontaine
- Re: Like Operator with Unicode
- From: Charax
- Like Operator with Unicode
- Prev by Date: RE: Using Criteria in Query
- Next by Date: Re: IN Clause using multi-select form parameter
- Previous by thread: Re: Like Operator with Unicode
- Next by thread: Re: Like Operator with Unicode
- Index(es):
Relevant Pages
|