简体   繁体   中英

Cyrillic alphabet doesnt work with Microsoft SQL Server Management Studio

Scenario

I am using SQL Server database, and I need to store some texts written using Cyrillic alphabet.

I use Microsoft SQL Server Management Studio to enter, view and manipulate data.

But when I insert data like

INSERT INTO USP14_Table (Tip_DB, Suma_DB, Opisanie_DB,Kategoria_DB, Data_DB, Mesec_DB) 
VALUES ('саса', 21, 'саса', 'саса', 'саса',2);

The result is:

[ 问题图片[1]

I search the problem, but I only find the following solution. I had to change the column type from varchar to nvarchar , but this doesn't work. Help me to fix it please.

Problem is that your database collation does not support the letters.

Right-click the database that you want and click Properties.

Click the Options page, and select a right collation from the Collation drop-down list.

in this case - collation is the worst decision. just use N symbol before string for exmpl: select N'Коментатор выше нуб'

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM