database
newsgroups
Home
All Groups
Group
Topic
Archive
Search
About
Why cannot set a constant Unicode string?
microsoft.public.sqlserver.programming
19 Sep 2006 9:55 AM
Vu Quang Thang
Hi,
pls. see this code:
DECLARE @SQL nvarchar(4000)
SELECT @SQL = 'SELECT * FROM CUSTOMER WHERE CustomerName = N''Trần Tấn Háºn'''
PRINT @SQL
The result is this always:
SELECT * FROM CUSTOMER WHERE CustomerName = N'Tr?n T?n H?n'
Other interesting topics
How to concatenate strings from a column into a single row (with NULL value)?
xp_cmdshell - works with string in one format but not in another -
Query help
Single to Multiple columns
Assistance with SQL Script
related:
Net developer
Code news
Security news
Windows news
Server news
Outlook news