Skip to content

Commit bfe863f

Browse files
authored
Update create-type-transact-sql.md
1 parent ebb46e0 commit bfe863f

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

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

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ ms.author: wiassaf
3636
The ability to run CLR code is off by default in [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)]. You can create, modify and drop database objects that reference managed code modules, but these references will not execute in [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] unless the [clr enabled Option](../../database-engine/configure-windows/clr-enabled-server-configuration-option.md) is enabled by using [sp_configure](../../relational-databases/system-stored-procedures/sp-configure-transact-sql.md).
3737

3838
> [!NOTE]
39-
> The integration of .NET Framework CLR into SQL Server is discussed in this topic. CLR integration does not apply to Azure [!INCLUDE[ssSDS](../../includes/sssds-md.md)].
39+
> The integration of .NET Framework CLR into [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] is discussed in this topic. CLR integration does not apply to [!INCLUDE[ssazure_md](../../includes/ssazure_md.md)].
4040
4141
![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)
4242

@@ -113,7 +113,7 @@ column_name AS computed_column_expression
113113
114114
< table_index > ::=
115115
INDEX constraint_name
116-
[ CLUSTERED | NONCLUSTERED ] (column [ ASC | DESC ] [ ,... n ] )} }
116+
[ CLUSTERED | NONCLUSTERED ] (column [ ASC | DESC ] [ ,... n ] )} }
117117
```
118118

119119
```syntaxsql
@@ -127,26 +127,26 @@ AS TABLE ( { <column_definition> [ ,... n ] }
127127
128128
<column_definition> ::=
129129
column_name <data_type>
130-
[ COLLATE collation_name ] [ NULL | NOT NULL ] [
130+
[ COLLATE collation_name ] [ NULL | NOT NULL ] [
131131
[ IDENTITY [ (1 , 1) ]
132132
]
133133
[ <column_constraint> [ ... n ] ] [ <column_index> ]
134134
135135
<data type> ::=
136-
[type_schema_name . ] type_name [ (precision [ , scale ]) ]
136+
[type_schema_name . ] type_name [ ( precision [ , scale ]) ]
137137
138138
<column_constraint> ::=
139-
{ PRIMARY KEY { NONCLUSTERED HASH WITH (BUCKET_COUNT = bucket_count)
139+
{ PRIMARY KEY { NONCLUSTERED HASH WITH ( BUCKET_COUNT = bucket_count )
140140
| NONCLUSTERED } }
141141
142142
< table_constraint > ::=
143143
{ PRIMARY KEY { NONCLUSTERED HASH (column [ ,... n ] )
144-
WITH (BUCKET_COUNT = bucket_count)
145-
| NONCLUSTERED (column [ ASC | DESC ] [ ,... n ] ) } }
144+
WITH ( BUCKET_COUNT = bucket_count )
145+
| NONCLUSTERED ( column [ ASC | DESC ] [ ,... n ] ) } }
146146
147147
<column_index> ::=
148148
INDEX index_name
149-
{ { [ NONCLUSTERED ] HASH WITH (BUCKET_COUNT = bucket_count)
149+
{ { [ NONCLUSTERED ] HASH WITH ( BUCKET_COUNT = bucket_count )
150150
| NONCLUSTERED } }
151151
152152
< table_index > ::=
@@ -156,7 +156,7 @@ column_name <data_type>
156156
157157
<table_option> ::=
158158
{
159-
[MEMORY_OPTIMIZED = {ON | OFF}]
159+
[MEMORY_OPTIMIZED = { ON | OFF}]
160160
}
161161
```
162162

@@ -208,15 +208,15 @@ Is the [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] supplied data t
208208
Specifies whether the type can hold a null value. If not specified, NULL is the default.
209209

210210
*assembly_name*
211-
**Applies to**: [!INCLUDE[ssKatmai](../../includes/sskatmai-md.md)] and later.
211+
**Applies to**: [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] (Starting with [!INCLUDE[ssKatmai](../../includes/sskatmai-md.md)]).
212212

213213
Specifies the [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] assembly that references the implementation of the user-defined type in the common language runtime. *assembly_name* should match an existing assembly in [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] in the current database.
214214

215215
> [!NOTE]
216216
> EXTERNAL_NAME is not available in a contained database.
217217
218218
**[.** *class_name* **]**
219-
**Applies to**: [!INCLUDE[ssKatmai](../../includes/sskatmai-md.md)] and later.
219+
**Applies to**: [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] (Starting with [!INCLUDE[ssKatmai](../../includes/sskatmai-md.md)]).
220220

221221
Specifies the class within the assembly that implements the user-defined type. *class_name* must be a valid identifier and must exist as a class in the assembly with assembly visibility. *class_name* is case-sensitive, regardless of the database collation, and must exactly match the class name in the corresponding assembly. The class name can be a namespace-qualified name enclosed in square brackets (**[ ]**) if the programming language that is used to write the class uses the concept of namespaces, such as C#. If *class_name* is not specified, [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] assumes it is the same as *type_name*.
222222

@@ -240,25 +240,25 @@ Is the [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] supplied data t
240240

241241
`INDEX *index_name* [ CLUSTERED | NONCLUSTERED ] (*column_name* [ ASC | DESC ] [ ,... *n* ] )`
242242

243-
**Applies to**: [!INCLUDE[ssSQL14](../../includes/sssql14-md.md)] and later and [!INCLUDE[ssSDSfull](../../includes/sssdsfull-md.md)].
243+
**Applies to**: [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] (Starting with [!INCLUDE[ssSQL14](../../includes/sssql14-md.md)]), [!INCLUDE[ssSDSfull](../../includes/sssdsfull-md.md)], and [!INCLUDE[ssSDSMIfull](../../includes/sssdsmifull-md.md)].
244244

245245
Specifies to create an index on the table. This can be a clustered index, or a nonclustered index. The index will contain the columns listed, and will sort the data in either ascending or descending order.
246246

247247
INDEX
248248
You must specify column and table indexes as part of the CREATE TABLE statement. CREATE INDEX and DROP INDEX are not supported for memory-optimized tables.
249249

250250
MEMORY_OPTIMIZED
251-
**Applies to**: [!INCLUDE[ssSQL14](../../includes/sssql14-md.md)] and later and [!INCLUDE[ssSDSfull](../../includes/sssdsfull-md.md)].
251+
**Applies to**: [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] (Starting with [!INCLUDE[ssSQL14](../../includes/sssql14-md.md)]), [!INCLUDE[ssSDSfull](../../includes/sssdsfull-md.md)], and [!INCLUDE[ssSDSMIfull](../../includes/sssdsmifull-md.md)]. [!INCLUDE[ssSDSMIfull](../../includes/sssdsmifull-md.md)] does not support memory optimized tables in General Purpose tier.
252252

253253
Indicates whether the table type is memory optimized. This option is off by default; the table (type) is not a memory optimized table (type). Memory optimized table types are memory-optimized user tables, the schema of which is persisted on disk similar to other user tables.
254254

255255
BUCKET_COUNT
256-
**Applies to**: [!INCLUDE[ssSQL14](../../includes/sssql14-md.md)] and later and [!INCLUDE[ssSDSfull](../../includes/sssdsfull-md.md)].
256+
**Applies to**: [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] (Starting with [!INCLUDE[ssSQL14](../../includes/sssql14-md.md)]) and [!INCLUDE[ssSDSfull](../../includes/sssdsfull-md.md)], [!INCLUDE[ssSDSfull](../../includes/sssdsfull-md.md)], and [!INCLUDE[ssSDSMIfull](../../includes/sssdsmifull-md.md)].
257257

258258
Indicates the number of buckets that should be created in the hash index. The maximum value for BUCKET_COUNT in hash indexes is 1,073,741,824. For more information about bucket counts, see [Indexes for Memory-Optimized Tables](../../relational-databases/in-memory-oltp/indexes-for-memory-optimized-tables.md). *bucket_count* is a required argument.
259259

260260
HASH
261-
**Applies to**: [!INCLUDE[ssSQL14](../../includes/sssql14-md.md)] and later and [!INCLUDE[ssSDSfull](../../includes/sssdsfull-md.md)].
261+
**Applies to**: [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] (Starting with [!INCLUDE[ssSQL14](../../includes/sssql14-md.md)]) and [!INCLUDE[ssSDSfull](../../includes/sssdsfull-md.md)], [!INCLUDE[ssSDSfull](../../includes/sssdsfull-md.md)], and [!INCLUDE[ssSDSMIfull](../../includes/sssdsmifull-md.md)].
262262

263263
Indicates that a HASH index is created. Hash indexes are supported only on memory optimized tables.
264264

@@ -308,7 +308,7 @@ FROM varchar(11) NOT NULL ;
308308
### B. Creating a user-defined type
309309
The following example creates a type `Utf8String` that references class `utf8string` in the assembly `utf8string`. Before creating the type, assembly `utf8string` is registered in the local database. Replace the binary portion of the CREATE ASSEMBLY statement with a valid description.
310310

311-
**Applies to**: [!INCLUDE[ssKatmai](../../includes/sskatmai-md.md)] and later.
311+
**Applies to**: [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] (Starting with [!INCLUDE[ssKatmai](../../includes/sskatmai-md.md)]).
312312

313313
```sql
314314
CREATE ASSEMBLY utf8string

0 commit comments

Comments
 (0)