Как прокомментировал nonnb, вы, вероятно, можете просто использовать литеральный синтаксис Unicode в ваших операторах INSERT. Если по какой-либо причине вы не можете использовать буквальный синтаксис Unicode и должны кодировать конкретную кодовую точку, используйте функцию NCHAR (). В следующем примере показаны оба:
-- create temp table for this example
create table #TestDictionary (
[Key] nchar(10),
Value nvarchar(100)
)
-- insert dictionary entries for the 3 specific code points mentioned
insert into #TestDictionary ([Key],Value)
values (nchar(0x0C2D), 'TELUGU LETTER BHA')
insert into #TestDictionary ([Key],Value)
values (nchar(0x0C3E), 'TELUGU VOWEL SIGN AA')
insert into #TestDictionary ([Key],Value)
values (nchar(0x0C37), 'TELUGU LETTER SSA')
-- If your keyboard allows you to type it into the script directly then it
-- is probably easiest to just use unicode literal syntax.
insert into #TestDictionary ([Key],Value)
values (N'క ', 'TELUGU LETTER KA')
-- Non-unicode string literals can also be inserted into NCHAR/NVARCHAR columns
insert into #TestDictionary ([Key],Value)
values ('A', 'LATIN CAPITAL LETTER A')
select *
from #TestDictionary
Справочную информацию и примеры для NCHAR () можно найти по адресу http://msdn.microsoft.com/en-us/library/ms182673.aspx