Skip to content

Commit db21b9d

Browse files
authored
Merge pull request #692 from divega/patch-1
Fix [!IMPORTANT] note inside code block
2 parents 64ffe9f + 27bebe8 commit db21b9d

1 file changed

Lines changed: 10 additions & 9 deletions

File tree

docs/t-sql/statements/create-index-transact-sql.md

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
---
1+
---
22
title: "CREATE INDEX (Transact-SQL) | Microsoft Docs"
33
ms.custom: ""
44
ms.date: "12/21/2017"
@@ -103,10 +103,10 @@ CREATE UNIQUE INDEX i1 ON t1 (col1 DESC, col2 ASC, col3 DESC);
103103
![Topic link icon](../../database-engine/configure-windows/media/topic-link.gif "Topic link icon") [Transact-SQL Syntax Conventions](../../t-sql/language-elements/transact-sql-syntax-conventions-transact-sql.md)
104104

105105
## Syntax
106-
106+
107+
### Syntax for SQL Server and Azure SQL Database
108+
107109
```
108-
-- Syntax for SQL Server and Azure SQL Database
109-
110110
CREATE [ UNIQUE ] [ CLUSTERED | NONCLUSTERED ] INDEX index_name
111111
ON <object> ( column [ ASC | DESC ] [ ,...n ] )
112112
[ INCLUDE ( column_name [ ,...n ] ) ]
@@ -162,14 +162,16 @@ CREATE [ UNIQUE ] [ CLUSTERED | NONCLUSTERED ] INDEX index_name
162162
163163
<range> ::=
164164
<partition_number_expression> TO <partition_number_expression>
165-
166-
Backward Compatible Relational Index
165+
```
166+
167+
### Backward Compatible Relational Index
167168

168169
> [!IMPORTANT]
169170
> The backward compatible relational index syntax structure will be removed in a future version of [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)].
170171
> Avoid using this syntax structure in new development work, and plan to modify applications that currently use the feature.
171172
> Use the syntax structure specified in <relational_index_option> instead.
172-
173+
174+
```
173175
CREATE [ UNIQUE ] [ CLUSTERED | NONCLUSTERED ] INDEX index_name
174176
ON <object> ( column_name [ ASC | DESC ] [ ,...n ] )
175177
[ WITH <backward_compatible_index_option> [ ,...n ] ]
@@ -191,10 +193,9 @@ CREATE [ UNIQUE ] [ CLUSTERED | NONCLUSTERED ] INDEX index_name
191193
| DROP_EXISTING
192194
}
193195
```
194-
196+
### Syntax for Azure SQL Data Warehouse and Parallel Data Warehouse
195197

196198
```
197-
-- Syntax for Azure SQL Data Warehouse and Parallel Data Warehouse
198199
199200
CREATE [ CLUSTERED | NONCLUSTERED ] INDEX index_name
200201
ON [ database_name . [ schema ] . | schema . ] table_name

0 commit comments

Comments
 (0)