You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/synapse-analytics/sql/reference-collation-types.md
+25-13Lines changed: 25 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,16 +1,16 @@
1
1
---
2
2
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.
4
4
author: filippopovic
5
-
ms.service: synapse-analytics
6
-
ms.topic: reference
7
-
ms.subservice: sql
8
-
ms.date: 02/15/2023
9
5
ms.author: fipopovi
10
6
ms.reviewer: wiassaf, kecona
7
+
ms.date: 01/30/2024
8
+
ms.service: synapse-analytics
9
+
ms.subservice: sql
10
+
ms.topic: reference
11
11
---
12
12
13
-
# Database collation support for Synapse SQL in Azure Synapse Analytics
13
+
# Database collation support for Synapse SQL in Azure Synapse Analytics
14
14
15
15
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.
16
16
@@ -37,10 +37,10 @@ The following table shows which collation types are supported by which service.
| 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 |
44
44
45
45
46
46
## Check the current collation
@@ -53,9 +53,21 @@ SELECT DATABASEPROPERTYEX(DB_NAME(), 'Collation') AS Collation;
53
53
54
54
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).
55
55
56
-
## Next steps
56
+
## Check supported collation
57
+
58
+
To check the list of supported collations in your dedicated SQL pool:
59
+
60
+
```sql
61
+
USE master
62
+
GO
63
+
SELECT*FROMsys.fn_helpcollations();
64
+
```
65
+
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
57
69
58
70
Additional information on best practices for dedicated SQL pool and serverless SQL pool can be found in the following articles:
59
71
60
-
-[Best practices for dedicated SQL pool](./best-practices-dedicated-sql-pool.md)
61
-
-[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