Microsoft
Software
Hardware
Network
Question : Query To Detect if unicode data exists in field in SQL Server 2005
Hello,
I was wondering if there was a way to detect if a particular field in an MSSQL 2k5 database table contains unicode characters ( i.e. russian, chinese, etc ).
Essentially, I have a table with lots of values in different languages and I want to pull the info for ONLY the ones that contain unicode data and not fields that do not contain unicode data.
1:
Answer : Query To Detect if unicode data exists in field in SQL Server 2005
One quick way would be to use something like this:
SELECT * FROM mytable WHERE PATINDEX('%[^[ a-z0-9!@#$%^&*()-_=+]%' ,myfield) > 0
You might have to add more characters to this, but this is just a quick example.
Random Solutions
Error string in catch block?
Need Manual (PDF) for Canon ImageRunner C4080
exchange 2003 and ISA 2006 certificate renew - RPC-HTTPS not working
Having problems getting my VOIP setup working?
typing software that allows me to type my own text
AS3 tween multiple arrows along a path
This search script is presenting the option for Next 10 when there aren't any results. What do I need to add to not show when there aren't results?
Meta redirect question
classic asp recordset paging
sendAndLoad onHTTPStatus issue