The default language on my database is set to SQL_Latin1_General_CP1_CI_AS
.
I'm looking to return results where the name
field contains characters from another language, such as Arabic or Chinese):
Albra اابومحمد
I've tried the following pieces of code below in my WHERE clause, but the result set is always empty:
a.Name NOT LIKE '%[^A-z]%'
PATINDEX('%[A-Z,0-9]%',a.Name) > 0
ASCII(a.Name) NOT BETWEEN 65/* A */ and 90/* Z */ AND ASCII(a.Name) NOT BETWEEN 97 /* a */ AND 122 /* z */
a.Name COLLATE SQL_Latin1_General_CP1_CI_AS NOT LIKE '%[^0-9a-zA-Z]%'
Update
I'm using SQL Server 2012 (not SQL Server 2005.) I tried the code in the accepted answer to "how to select rows that contains non-english characters in sql server 2005(it should filter only non-english chars, not special characters)" but it does not work on my database.