I have a table UserType:
id (int),
type nvarchar(50)
I have inserted some rows into that table
INSERT INTO [UserType] VALUES (N'កក្កដា');
INSERT INTO [UserType] VALUES (N'វិច្ឆិកា');
And it's successfully inserted.
Then when I tried to query it back
select *
from [UserType]
where type=N'កក្កដា';
It returns all rows.
What's wrong? Please help!
are you seriouswhat does the*in your query mean.. you are telling it toselect * from [UserType] where type=N'កក្កដា';perhaps you should alter your query to only returnUserTypealso do a google search on how to returnUnicode String from Sql ServerI would also recommend reading up on whatSELECT *means here is a start for you msdn.microsoft.com/en-us/library/ms180059.aspx