Skip to content

Commit c5e411d

Browse files
20240130 add check supported collations sample query
1 parent 3b5a80d commit c5e411d

File tree

1 file changed

+19
-17
lines changed

1 file changed

+19
-17
lines changed

articles/synapse-analytics/sql/reference-collation-types.md

Lines changed: 19 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
---
22
title: Collation support
3-
description: Collation types support for Synapse SQL in Azure Synapse Analytics
3+
description: Collation types support for Synapse SQL in Azure Synapse Analytics.
44
author: filippopovic
5-
ms.service: synapse-analytics
6-
ms.topic: reference
7-
ms.subservice: sql
8-
ms.date: 02/15/2023
95
ms.author: fipopovi
106
ms.reviewer: wiassaf, kecona
7+
ms.date: 01/30/2024
8+
ms.service: synapse-analytics
9+
ms.subservice: sql
10+
ms.topic: reference
1111
---
1212

13-
# Database collation support for Synapse SQL in Azure Synapse Analytics
13+
# Database collation support for Synapse SQL in Azure Synapse Analytics
1414

1515
Collations provide the locale, code page, sort order, and character sensitivity rules for character-based data types. Once chosen, all columns and expressions requiring collation information inherit the chosen collation from the database setting. The default inheritance can be overridden by explicitly stating a different collation for a character-based data type.
1616

@@ -37,10 +37,10 @@ The following table shows which collation types are supported by which service.
3737
|:-----------------------------------------:|:-------------------:|:-----------------------:|:------------------:|:------------------:|
3838
| Non-UTF-8 Collations | Yes | Yes | Yes | Yes |
3939
| UTF-8 | Yes | Yes | No | No |
40-
| Japanese_Bushu_Kakusu_140_* | Yes | Yes | No | No |
41-
| Japanese_XJIS_140_* | Yes | Yes | No | No |
42-
| SQL_EBCDIC1141_CP1_CS_AS | No | No | No | No |
43-
| SQL_EBCDIC277_2_CP1_CS_AS | No | No | No | No |
40+
| `Japanese_Bushu_Kakusu_140_*` | Yes | Yes | No | No |
41+
| `Japanese_XJIS_140_*` | Yes | Yes | No | No |
42+
| `SQL_EBCDIC1141_CP1_CS_AS` | No | No | No | No |
43+
| `SQL_EBCDIC277_2_CP1_CS_AS` | No | No | No | No |
4444

4545

4646
## Check the current collation
@@ -54,18 +54,20 @@ SELECT DATABASEPROPERTYEX(DB_NAME(), 'Collation') AS Collation;
5454
When passed 'Collation' as the property parameter, the DatabasePropertyEx function returns the current collation for the database specified. For more information, see [DATABASEPROPERTYEX](/sql/t-sql/functions/databasepropertyex-transact-sql?toc=/azure/synapse-analytics/sql-data-warehouse/toc.json&bc=/azure/synapse-analytics/sql-data-warehouse/breadcrumb/toc.json&view=azure-sqldw-latest&preserve-view=true).
5555

5656
## Check supported collation
57-
To check the list of currently supported collations for dedicated SQL pool database
58-
```
57+
58+
To check the list of supported collations in your dedicated SQL pool:
59+
60+
```sql
5961
USE master
6062
GO
6163
SELECT * FROM sys.fn_helpcollations();
6264
```
63-
> [!NOTE]
64-
> You must run this from the master database
6565

66-
## Next steps
66+
Run the [sys.fn_helpcollations](/sql/relational-databases/system-functions/sys-fn-helpcollations-transact-sql?view=azure-sqldw-latest&preserve-view=true) function from the `master` database.
67+
68+
## Related content
6769

6870
Additional information on best practices for dedicated SQL pool and serverless SQL pool can be found in the following articles:
6971

70-
- [Best practices for dedicated SQL pool](./best-practices-dedicated-sql-pool.md)
71-
- [Best practices for serverless SQL pool](./best-practices-serverless-sql-pool.md)
72+
- [Best practices for dedicated SQL pools in Azure Synapse Analytics](best-practices-dedicated-sql-pool.md)
73+
- [Best practices for serverless SQL pool in Azure Synapse Analytics](best-practices-serverless-sql-pool.md)

0 commit comments

Comments
 (0)