Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 Insert data unicode

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2002-05-22 : 10:26:16
Quyen writes "How to insert data unicode into the table? For example :

Create table Test(
Id numeric(9,0) indentity primary key
Name nchar(20),

)

Insert into Test
Values('Mừng Xu n')"

robvolk
Most Valuable Yak

15732 Posts

Posted - 2002-05-22 : 11:11:15
Use the N prefix in front of the value, that will convert it to unicode:

INSERT INTO Test(name) VALUES(N'Mừng Xu n')

Go to Top of Page
   

- Advertisement -