Click here to Skip to main content
15,889,315 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I am using ADO .net to write a string to a field in a table of Microsoft SQL Server 2005 database.
I am using SqlBulkCopy::WriteToServer api to write to SQL database.
The data type of the column in Sql database table is of type varchar2. If I change the datatype to nvarchar the chinese characters are written properly. But I think it should work with data type varchar2 also.
Please help.
Thanks in advance.
Posted

1 solution

No, nvarchar supports Unicode, while varchar doesn't.
You have to use nvarchar only for chinese character support.
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900