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
DHCP Client service keeps stopping when you reboot.
show ip eigrp neighbors - What does the 'H' stand for ?
How to open .BMP file with Internet Explorer in Windows XP OS.
can't find Printer Setup Utility in Mac OS X 10.5.8
Microsoft.SqlServer.Dts.Pi
peline in XML
Exchange 2007 Incremental backup
Include page headers when printing HTML pages with different headers on some of each page
Disable IPv6 on windows 2008
VMware Workstation 7.1 Won't Install
urgent: how to change the nic speed from 100 half to 1000full in Solaris10