O
O
Omur T2018-12-04 20:36:16
Transact SQL
Omur T, 2018-12-04 20:36:16

How to set Encoding in T-Sql?

when creating a database, it is not possible to set the
DBMS encoding = management studio( t-sql )
what do I do = create database kurs set utf8 COLLATE utf8_general_ci;
result = incorrect syntax near COLLATE
what I did to solve the issue = googled and searched for information (did not help)
what to do?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sumor, 2018-12-04
@black_niggar1998

In MS SQL Server, the syntax is slightly different

CREATE DATABASE kurs 
COLLATE utf8_general_ci

I don't remember if there is utf8_general_ci in sql server.
Unicode is built into SqlServer by default as nchar nvarchar types, so it makes sense to specify encodings if you intend to use char varchar.
For Russian, cyrillic_general_ci_as is usually used.

K
Konstantin Tsvetkov, 2018-12-04
@tsklab

General Issues Collation and Unicode Support .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question