|
Posted by Erland Sommarskog on 04/26/07 11:07
Ryan (ryanofford@hotmail.com) writes:
> SELECT * FROM Report_Locale
>
> SELECT * FROM Report_Locale WHERE Text_Name = '???.????. - ??.'?????.-
> ????.'
>
> Hopefully the Greek characters will display properly within this post,
They didn't, but that's my newsreader that is not able to handle them.
Anwyay, you need to prefix the characater literal with N, to make it a
Unicode literal:
WHERE Text_Name = N'???.????...'
Else it's a varchar literal, and characters will be replaced with fallback
characters in your current 8-bit character set. If you try:
SELECT '???.????...', N'???.????...'
(Replacing the question marks with the original Greek characters, that my
newsreader mashed.)
--
Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se
Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx
Navigation:
[Reply to this message]
|