Home All Groups Group Topic Archive Search About

Why cannot set a constant Unicode string?

Author
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'

AddThis Social Bookmark Button