List of utf-8 and utf-16 sql collations

Monica K 1 Reputation point
2022-07-19T06:50:30.527+00:00

Hi,

can anyone share the list of utf-8 and utf-16 collations avaliable in SQL server 2017 or 2019.

Thanks,
Monica

Developer technologies Transact-SQL
SQL Server Other
{count} votes

4 answers

Sort by: Most helpful
  1. Bert Zhou-msft 3,436 Reputation points
    2022-07-19T07:06:06.687+00:00

    Try this code:

    SELECT name, description FROM sys.fn_helpcollations();  
    

    If you want to learn more about sql collations ,please refer to this document.

    Bert Zhou

    0 comments No comments

  2. CathyJi-MSFT 22,396 Reputation points Microsoft External Staff
    2022-07-19T07:08:35.29+00:00

    Hi @Monica K ,

    Please refer to MS document Collation and Unicode support.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    0 comments No comments

  3. Olaf Helper 47,436 Reputation points
    2022-07-19T08:10:00.937+00:00

    can anyone share the list of utf-8 and utf-16 collations avaliable in SQL server 2017 or 2019.

    The collation effects the way ASCII code is stored & interpreted = data type varchar. Therefore there can exists a UTF-8/16 collation.

    0 comments No comments

  4. Erland Sommarskog 121.4K Reputation points MVP Volunteer Moderator
    2022-07-19T08:55:11.187+00:00

    All collations in SQL Server support UTF-16 - that is how the nvarchar data type is stored.

    There is no support for UTF-8 in SQL 2017; those collations were added in SQL 2019.

    For a full list of collations that supports UTF8 in SQL 2019, run

       SELECT * FROM sys.fn_helpcollations() WHERE name LIKE '%UTF8'  
    

    There is only 1553 of them.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.