Ever wonder what the difference between varchar and nvarchar was? Well I'm still not sure what it is but one thing I discovered today was that to add japanese characters in a database, you have to use the nxxx version datatype.
For example, I have to develop a japanese version of a website I created at work and ended up with a bunch of ??????? instead of the japanese characters in the table I store the content.
To my surprise, the only thing I was missing was the letter 'N'. I changed the datatype of the column containing the content from text to ntext and did something similar to the following:
insert into CMS_MYTABLE (LOCATION, LANGID, REGION, CONTENT)
values ('About', 4, 'Main', N'??????????????????????????????');
Now, when ever I need to add some japanese characters, I just use the 'N' prefix in the string I am inserting.
Simple as 'N'.