Skip to content

Commit dc12827

Browse files
authored
Merge pull request #15982 from markingmyname/versionphase3
[Versioning] T-SQL/Statements folder batch #3
2 parents 12e51ca + d41e150 commit dc12827

41 files changed

Lines changed: 161 additions & 64 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

docs/t-sql/statements/alter-table-transact-sql.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -761,7 +761,7 @@ For **SWITCH** restriction when using replication, see [Replicate Partitioned Ta
761761

762762
Nonclustered columnstore indexes built for [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] 2016 CTP1, and for SQL Database before version V12 were in a read-only format. You must rebuild Nonclustered columnstore indexes to the current format (which is updatable) before any PARTITION operations can be run.
763763

764-
SET **(** FILESTREAM_ON = { *partition_scheme_name* | *filestream_filegroup_name* | **"**default**"** | **"**NULL**"** }**)**
764+
SET **(** FILESTREAM_ON = { *partition_scheme_name* \| *filestream_filegroup_name* \| **"**default**"** \| **"**NULL**"** }**)**
765765
**Applies to**: [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] ( [!INCLUDE[ssKatmai](../../includes/sskatmai-md.md)] and later). [!INCLUDE[ssSDSfull](../../includes/sssdsfull-md.md)]doesn't support `FILESTREAM`.
766766

767767
Specifies where FILESTREAM data is stored.

docs/t-sql/statements/create-application-role-transact-sql.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,9 @@ CREATE APPLICATION ROLE application_role_name
3939
WITH PASSWORD = 'password' [ , DEFAULT_SCHEMA = schema_name ]
4040
```
4141

42-
## Arguments
42+
[!INCLUDE[sql-server-tsql-previous-offline-documentation](../../includes/sql-server-tsql-previous-offline-documentation.md)]
43+
44+
## Arguments
4345
*application_role_name*
4446
Specifies the name of the application role. This name must not already be used to refer to any principal in the database.
4547

docs/t-sql/statements/create-asymmetric-key-transact-sql.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,9 @@ CREATE ASYMMETRIC KEY asym_key_name
6363
PASSWORD = 'password'
6464
```
6565

66-
## Arguments
66+
[!INCLUDE[sql-server-tsql-previous-offline-documentation](../../includes/sql-server-tsql-previous-offline-documentation.md)]
67+
68+
## Arguments
6769
*asym_key_name*
6870
Is the name for the asymmetric key in the database. Asymmetric key names must comply with the rules for [identifiers](../../relational-databases/databases/database-identifiers.md) and must be unique within the database.
6971

docs/t-sql/statements/create-availability-group-transact-sql.md

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,12 @@ ms.assetid: a3d55df7-b4e4-43f3-a14b-056cba36ab98
2525
author: "MikeRayMSFT"
2626
ms.author: "mikeray"
2727
---
28+
2829
# CREATE AVAILABILITY GROUP (Transact-SQL)
30+
2931
[!INCLUDE [SQL Server](../../includes/applies-to-version/sqlserver.md)]
3032

31-
Creates a new availability group, if the instance of [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] is enabled for the [!INCLUDE[ssHADR](../../includes/sshadr-md.md)] feature.
33+
Creates a new availability group, if the instance of [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] is enabled for the [!INCLUDE[ssHADR](../../includes/sshadr-md.md)] feature.
3234

3335
> [!IMPORTANT]
3436
> Execute CREATE AVAILABILITY GROUP on the instance of [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] that you intend to use as the initial primary replica of your new availability group. This server instance must reside on a Windows Server Failover Clustering (WSFC) node.
@@ -107,11 +109,14 @@ CREATE AVAILABILITY GROUP group_name
107109
108110
```
109111

110-
## Arguments
111-
*group_name*
112-
Specifies the name of the new availability group. *group_name* must be a valid [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)][identifier](../../relational-databases/databases/database-identifiers.md), and it must be unique across all availability groups in the WSFC cluster. The maximum length for an availability group name is 128 characters.
113-
114-
AUTOMATED_BACKUP_PREFERENCE **=** { PRIMARY | SECONDARY_ONLY| SECONDARY | NONE }
112+
[!INCLUDE[sql-server-tsql-previous-offline-documentation](../../includes/sql-server-tsql-previous-offline-documentation.md)]
113+
114+
## Arguments
115+
116+
*group_name*
117+
Specifies the name of the new availability group. *group_name* must be a valid [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)][identifier](../../relational-databases/databases/database-identifiers.md), and it must be unique across all availability groups in the WSFC cluster. The maximum length for an availability group name is 128 characters.
118+
119+
AUTOMATED_BACKUP_PREFERENCE **=** { PRIMARY \| SECONDARY_ONLY \| SECONDARY \| NONE }
115120
Specifies a preference about how a backup job should evaluate the primary replica when choosing where to perform backups. You can script a given backup job to take the automated backup preference into account. It is important to understand that the preference is not enforced by [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)], so it has no impact on ad-hoc backups.
116121

117122
The supported values are as follows:
@@ -137,7 +142,7 @@ CREATE AVAILABILITY GROUP group_name
137142
> [!NOTE]
138143
> To view the automated backup preference of an existing availability group, select the **automated_backup_preference** or **automated_backup_preference_desc** column of the [sys.availability_groups](../../relational-databases/system-catalog-views/sys-availability-groups-transact-sql.md) catalog view. Additionally, [sys.fn_hadr_backup_is_preferred_replica (Transact-SQL)](../../relational-databases/system-functions/sys-fn-hadr-backup-is-preferred-replica-transact-sql.md) can be used to determine the preferred backup replica. This function returns 1 for at least one of the replicas, even when `AUTOMATED_BACKUP_PREFERENCE = NONE`.
139144
140-
FAILURE_CONDITION_LEVEL **=** { 1 | 2 | **3** | 4 | 5 }
145+
FAILURE_CONDITION_LEVEL **=** { 1 \| 2 \| **3** \| 4 \| 5 }
141146
Specifies what failure conditions trigger an automatic failover for this availability group. FAILURE_CONDITION_LEVEL is set at the group level but is relevant only on availability replicas that are configured for synchronous-commit availability mode (AVAILABILITY_MODE **=** SYNCHRONOUS_COMMIT). Furthermore, failure conditions can trigger an automatic failover only if both the primary and secondary replicas are configured for automatic failover mode (FAILOVER_MODE **=** AUTOMATIC) and the secondary replica is currently synchronized with the primary replica.
142147

143148
The failure-condition levels (1-5) range from the least restrictive, level 1, to the most restrictive, level 5. A given condition level encompasses all the less restrictive levels. Thus, the strictest condition level, 5, includes the four less restrictive condition levels (1-4), level 4 includes levels 1-3, and so forth. The following table describes the failure-condition that corresponds to each level.

docs/t-sql/statements/create-broker-priority-transact-sql.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,9 @@ FOR CONVERSATION
4949
5050
```
5151

52-
## Arguments
52+
[!INCLUDE[sql-server-tsql-previous-offline-documentation](../../includes/sql-server-tsql-previous-offline-documentation.md)]
53+
54+
## Arguments
5355
*ConversationPriorityName*
5456
Specifies the name for this conversation priority. The name must be unique in the current database, and must conform to the rules for [!INCLUDE[ssDE](../../includes/ssde-md.md)] [identifiers](../../relational-databases/databases/database-identifiers.md).
5557

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,9 @@ CREATE CERTIFICATE certificate_name
106106
START_DATE ='datetime' | EXPIRY_DATE ='datetime'
107107
```
108108

109-
## Arguments
109+
[!INCLUDE[sql-server-tsql-previous-offline-documentation](../../includes/sql-server-tsql-previous-offline-documentation.md)]
110+
111+
## Arguments
110112
*certificate_name*
111113
Is the name for the certificate in the database.
112114

docs/t-sql/statements/create-column-encryption-key-transact-sql.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,9 @@ WITH VALUES
5454
[;]
5555
```
5656

57-
## Arguments
57+
[!INCLUDE[sql-server-tsql-previous-offline-documentation](../../includes/sql-server-tsql-previous-offline-documentation.md)]
58+
59+
## Arguments
5860
_key\_name_
5961
Is the name by which the column encryption key will be known in the database.
6062

docs/t-sql/statements/create-column-master-key-transact-sql.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,9 @@ CREATE COLUMN MASTER KEY key_name
5050
[;]
5151
```
5252

53-
## Arguments
53+
[!INCLUDE[sql-server-tsql-previous-offline-documentation](../../includes/sql-server-tsql-previous-offline-documentation.md)]
54+
55+
## Arguments
5456
*key_name*
5557
The name of the column master key in the database.
5658

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,10 @@ CREATE CONTRACT contract_name
4040
} [ ,...n] )
4141
[ ; ]
4242
```
43-
44-
## Arguments
43+
44+
[!INCLUDE[sql-server-tsql-previous-offline-documentation](../../includes/sql-server-tsql-previous-offline-documentation.md)]
45+
46+
## Arguments
4547
*contract_name*
4648
Is the name of the contract to create. A new contract is created in the current database and owned by the principal specified in the AUTHORIZATION clause. Server, database, and schema names cannot be specified. The *contract_name* can be up to 128 characters.
4749

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ WITH IDENTITY = 'identity_name'
4545
[ FOR CRYPTOGRAPHIC PROVIDER cryptographic_provider_name ]
4646
```
4747

48+
[!INCLUDE[sql-server-tsql-previous-offline-documentation](../../includes/sql-server-tsql-previous-offline-documentation.md)]
49+
4850
## Arguments
4951

5052
*credential_name*

0 commit comments

Comments
 (0)