Skip to content

Commit 623fed9

Browse files
committed
Bringing even with master.
2 parents ae0a5ed + d9ee771 commit 623fed9

2 files changed

Lines changed: 38 additions & 35 deletions

File tree

docs/relational-databases/collations/view-collation-information.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ monikerRange: "=azuresqldb-current||>=sql-server-2016||=sqlallproducts-allversio
2020
# View Collation Information
2121
[!INCLUDE[appliesto-ss-asdb-xxxx-xxx-md](../../includes/appliesto-ss-asdb-xxxx-xxx-md.md)]
2222

23-
## <a name="Top"></a> You can view the collation of a server, database, or column in [!INCLUDE[ssManStudioFull](../../includes/ssmanstudiofull-md.md)] using Object Explorer menu options or by using [!INCLUDE[tsql](../../includes/tsql-md.md)].
23+
<a name="Top"></a> You can view the collation of a server, database, or column in [!INCLUDE[ssManStudioFull](../../includes/ssmanstudiofull-md.md)] using Object Explorer menu options or by using [!INCLUDE[tsql](../../includes/tsql-md.md)].
2424

2525
## <a name="Procedures"></a> How to View a Collation Setting
2626
You can use one of the following:
@@ -59,13 +59,13 @@ monikerRange: "=azuresqldb-current||>=sql-server-2016||=sqlallproducts-allversio
5959

6060
2. In the query window, enter the following statement that uses the SERVERPROPERTY system function.
6161

62-
```
62+
```sql
6363
SELECT CONVERT (varchar, SERVERPROPERTY('collation'));
6464
```
6565

6666
3. Alternatively, you can use the sp_helpsort system stored procedure.
6767

68-
```
68+
```sql
6969
EXECUTE sp_helpsort;
7070
```
7171

@@ -75,7 +75,7 @@ monikerRange: "=azuresqldb-current||>=sql-server-2016||=sqlallproducts-allversio
7575

7676
2. In the query window, enter the following statement that uses the SERVERPROPERTY system function.
7777

78-
```
78+
```sql
7979
SELECT name, description FROM sys.fn_helpcollations();
8080
```
8181

@@ -85,13 +85,13 @@ monikerRange: "=azuresqldb-current||>=sql-server-2016||=sqlallproducts-allversio
8585

8686
2. In the query window, enter the following statement that uses the sys.databases system catalog view.
8787

88-
```
88+
```sql
8989
SELECT name, collation_name FROM sys.databases;
9090
```
9191

9292
3. Alternatively, you can use the DATABASEPROPERTYEX system function.
9393

94-
```
94+
```sql
9595
SELECT CONVERT (varchar, DATABASEPROPERTYEX('database_name','collation'));
9696
```
9797

@@ -101,7 +101,7 @@ monikerRange: "=azuresqldb-current||>=sql-server-2016||=sqlallproducts-allversio
101101

102102
2. In the query window, enter the following statement that uses the sys.columns system catalog view.
103103

104-
```
104+
```sql
105105
SELECT name, collation_name FROM sys.columns WHERE name = N'<insert character data type column name>';
106106
```
107107

@@ -111,6 +111,7 @@ monikerRange: "=azuresqldb-current||>=sql-server-2016||=sqlallproducts-allversio
111111
[sys.databases &#40;Transact-SQL&#41;](../../relational-databases/system-catalog-views/sys-databases-transact-sql.md)
112112
[sys.columns &#40;Transact-SQL&#41;](../../relational-databases/system-catalog-views/sys-columns-transact-sql.md)
113113
[Collation Precedence &#40;Transact-SQL&#41;](../../t-sql/statements/collation-precedence-transact-sql.md)
114+
[Collation and Unicode Support](../../relational-databases/collations/collation-and-unicode-support.md)
114115
[sp_helpsort &#40;Transact-SQL&#41;](../../relational-databases/system-stored-procedures/sp-helpsort-transact-sql.md)
115116

116117

0 commit comments

Comments
 (0)