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
Reference a selected rows column value from a gridview in VB .Net 3.5
VBScript: Pulling lastLogonTimestamp
Find position of second to last period in a string
Running .exe in a logon script
Windows Mobile ActiveSync Calendar Items do not sync
How do I upgrade firmware on Netgear wg103
jQuery: Add div at beginning of other div
send mail to undisclosed receipent in lotus notes
How do I invoke a Java script for onkeypress for a dynamically added control?
When I encrypt/encode a string using codeigniter encryption class, it is different everytime, why?