Skip to content

Commit 61bb32a

Browse files
authored
Merge pull request #264692 from WilliamDAssafMSFT/patch-19
20240130 add check supported collations sample query
2 parents 662f6d6 + c5e411d commit 61bb32a

File tree

1 file changed

+25
-13
lines changed

1 file changed

+25
-13
lines changed

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

Lines changed: 25 additions & 13 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
@@ -53,9 +53,21 @@ SELECT DATABASEPROPERTYEX(DB_NAME(), 'Collation') AS Collation;
5353

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

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 * FROM sys.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
5769

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

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

Comments
 (0)