Skip to content

Commit 74daee3

Browse files
committed
Merging changes synced from https://github.com/MicrosoftDocs/sql-docs-pr (branch live)
2 parents df7f88d + 2208a90 commit 74daee3

377 files changed

Lines changed: 1163 additions & 1162 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/analysis-services/instances/monitor-analysis-services-with-sql-server-extended-events.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: "Monitor Analysis Services with SQL Server Extended Events | Microsoft Docs"
33
ms.custom: ""
4-
ms.date: "03/01/2017"
4+
ms.date: "12/29/2017"
55
ms.prod: "analysis-services"
66
ms.prod_service: "analysis-services"
77
ms.service: ""
@@ -28,7 +28,7 @@ manager: "kfile"
2828
ms.workload: "On Demand"
2929
---
3030
# Monitor Analysis Services with SQL Server Extended Events
31-
[!INCLUDE[ssas-appliesto-sqlas](../../includes/ssas-appliesto-sqlas.md)]
31+
[!INCLUDE[ssas-appliesto-sqlas](../../includes/ssas-appliesto-sqlas-all-aas.md)]
3232
Extended Events (*xEvents*) is a light-weight tracing and performance monitoring system that uses very few system resources, making it an ideal tool for diagnosing problems on both production and test servers. It's also highly scalable, configurable, and in SQL Server 2016 , easier to use through new built-in tool support. In SQL Server Management Studio, on connections to Analysis Services instances, you can configure, run, and monitor a live trace, similar to using SQL Server Profiler. The addition of better tooling should make xEvents a more reasonable replacement for SQL Server Profiler and creates more symmetry in how you diagnose issues in your database engine and Analysis Services workloads.
3333

3434
Besides [!INCLUDE[ssManStudioFull](../../includes/ssmanstudiofull-md.md)], you can also configure [!INCLUDE[ssASnoversion](../../includes/ssasnoversion-md.md)] Extended Event sessions the old way, through XMLA scripting, as was supported in previous releases.

docs/database-engine/availability-groups/windows/active-secondaries-readable-secondary-replicas-always-on-availability-groups.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ ms.workload: "On Demand"
206206
## <a name="bkmk_AccessInMemTables"></a> Accessing memory-optimized tables on a Secondary Replica
207207
The transaction isolation levels that can be used with memory-optimized tables on a secondary replica are the same as on the primary replica. The recommendation is to set the session-level isolation level to READ COMMITTED and set the database-level option MEMORY_OPTIMIZED_ELEVATE_TO_SNAPSHOT to ON. For example:
208208

209-
```tsql
209+
```sql
210210
ALTER DATABASE CURRENT SET MEMORY_OPTIMIZED_ELEVATE_TO_SNAPSHOT=ON
211211
GO
212212
SET TRANSACTION ISOLATION LEVEL READ COMMITTED

docs/database-engine/availability-groups/windows/configure-read-only-routing-for-an-availability-group-sql-server.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,13 +133,13 @@ Read-only routing is available in [!INCLUDE[sssql15](../../../includes/sssql15-m
133133

134134
For example, the following routing list load balances read-intent connection request across two read-only replicas, `Server1` and `Server2`. The nested parentheses that surround these servers identify the load-balanced set. If neither replica is available in that set, it will proceed to attempt to sequentially connect to the other replicas, `Server3` and `Server4`, in the read-only routing list.
135135

136-
```tsql
136+
```sql
137137
READ_ONLY_ROUTING_LIST = (('Server1','Server2'), 'Server3', 'Server4')
138138
```
139139

140140
Note that each entry in the routing list can itself be a set of load-balanced read-only replicas. The following example demonstrates this.
141141

142-
```tsql
142+
```sql
143143
READ_ONLY_ROUTING_LIST = (('Server1','Server2'), ('Server3', 'Server4', 'Server5'), 'Server6')
144144
```
145145

docs/database-engine/availability-groups/windows/create-clustered-dtc-for-an-always-on-availability-group.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ foreach ($node in $nodes) {
117117
## 3. Configure **in-doubt xact resolution**
118118
This script will configure the **in-doubt xact resolution** server configuration option to “presume commit” for in-doubt transactions. Run the following T-SQL script in SQL Server Management Studio (SSMS) against `SQLNODE1` in **SQLCMD mode**.
119119

120-
```tsql
120+
```sql
121121
/*******************************************************************
122122
Execute script in its entirety on SQLNODE1 in SQLCMD mode
123123
*******************************************************************/
@@ -158,7 +158,7 @@ GO
158158
## 4. Create test databases
159159
The script will create a database named `AG1` on `SQLNODE1` and a database named `dtcDemoAG1` on `SQLNODE2`. Run the following T-SQL script in SSMS against `SQLNODE1` in **SQLCMD mode**.
160160

161-
```tsql
161+
```sql
162162
/*******************************************************************
163163
Execute script in its entirety on SQLNODE1 in SQLCMD mode
164164
*******************************************************************/
@@ -216,7 +216,7 @@ GO
216216
## 5. Create Endpoints
217217
This script will create an endpoint called `AG1_endpoint` that listens on TCP port `5022`. Run the following T-SQL script in SSMS against `SQLNODE1` in **SQLCMD mode**.
218218

219-
```tsql
219+
```sql
220220
/**********************************************
221221
Execute on SQLNODE1 in SQLCMD mode
222222
**********************************************/
@@ -249,7 +249,7 @@ GO
249249
## 6. Prepare databases for Availability Group
250250
The script will back up `AG1` on `SQLNODE1` and restore it to `SQLNODE2`. Run the following T-SQL script in SSMS against `SQLNODE1` in **SQLCMD mode**.
251251

252-
```tsql
252+
```sql
253253
/*******************************************************************
254254
Execute script in its entirety on SQLNODE1 in SQLCMD mode
255255
*******************************************************************/
@@ -282,7 +282,7 @@ GO
282282
## 7. Create Availability Group
283283
[!INCLUDE[ssHADR](../../../includes/sshadr-md.md)] must be created with the **CREATE AVAILABILITY GROUP** command and the **WITH DTC_SUPPORT = PER_DB** clause. You cannot currently alter an existing Availability Group. The New Availability Group wizard does not allow you to enable DTC support for a new Availability Group. The following script will create the new Availability Group and join the secondary. Run the following T-SQL script in SSMS against `SQLNODE1` in **SQLCMD mode**.
284284

285-
```tsql
285+
```sql
286286
/*******************************************************************
287287
Execute script in its entirety on SQLNODE1 in SQLCMD mode
288288
*******************************************************************/
@@ -485,7 +485,7 @@ With the clustered DTC service completely configured, you need to stop and resta
485485
The first time [!INCLUDE[ssNoVersion](../../../includes/ssnoversion-md.md)] service requires a distributed transaction, it enrolls with a DTC service. SQL Server service will continue to use that DTC service until it is restarted. If a clustered DTC service is available, [!INCLUDE[ssNoVersion](../../../includes/ssnoversion-md.md)] will enroll with the clustered DTC service. If a clustered DTC service is not available, [!INCLUDE[ssNoVersion](../../../includes/ssnoversion-md.md)] will enroll with the local DTC service. In order to verify that [!INCLUDE[ssNoVersion](../../../includes/ssnoversion-md.md)] enrolls with the clustered DTC service, stop and restart each instance of [!INCLUDE[ssNoVersion](../../../includes/ssnoversion-md.md)].
486486

487487
Follow the steps contained in the T-SQL script below:
488-
```tsql
488+
```sql
489489
/*
490490
Gracefully cycle the SQL Server service and failover the Availability Group
491491
a. On SQLNODE2, cycle the SQL Server service from SQL Server Configuration Manger
@@ -546,7 +546,7 @@ This test uses a linked server from `SQLNODE1` to `SQLNODE2` to create a distrib
546546
### Create linked servers
547547
The following script will create two linked servers on `SQLNODE1`. Run the following T-SQL script in SSMS against `SQLNODE1`.
548548

549-
```tsql
549+
```sql
550550
-- SQLNODE1
551551
IF NOT EXISTS (SELECT * FROM sys.servers where name = N'SQLNODE1')
552552
BEGIN
@@ -562,7 +562,7 @@ END
562562
### Execute a distributed transaction
563563
This script will first return the current DTC transaction statistics. Then the script will execute a distributed transaction utilizing databases on `SQLNODE1` and `SQLNODE2`. Then the script will again return the DTC transaction statics which will now should an increased count. Physically connect to `SQLNODE1` and run the following T-SQL Script in SSSMS against `SQLNODE1` in **SQLCMD mode**.
564564

565-
```tsql
565+
```sql
566566
/*******************************************************************
567567
Execute script in its entirety on SQLNODE1 in SQLCMD mode
568568
Must be physically connected to SQLNODE1

docs/database-engine/configure-windows/agent-xps-server-configuration-option.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ ms.workload: "On Demand"
4949

5050
3. Copy and paste the following example into the query window and click **Execute**.
5151

52-
```tsql
52+
```sql
5353
sp_configure 'show advanced options', 1;
5454
GO
5555
RECONFIGURE;

docs/database-engine/configure-windows/clr-enabled-server-configuration-option.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ When you run RECONFIGURE, and the run value of the clr enabled option is changed
4444
## Example
4545
The following example first displays the current setting of the clr enabled option and then enables the option by setting the option value to 1. To disable the option, set the value to 0.
4646

47-
```tsql
47+
```sql
4848
EXEC sp_configure 'clr enabled';
4949
EXEC sp_configure 'clr enabled' , '1';
5050
RECONFIGURE;

docs/database-engine/configure-windows/configure-the-cost-threshold-for-parallelism-server-configuration-option.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ FROM sys.dm_os_sys_info
9797

9898
3. Copy and paste the following example into the query window and click **Execute**. This example shows how to use [sp_configure](../../relational-databases/system-stored-procedures/sp-configure-transact-sql.md) to set the value of the `cost threshold for parallelism` option to `10`.
9999

100-
```tsql
100+
```sql
101101
USE AdventureWorks2012 ;
102102
GO
103103
EXEC sp_configure 'show advanced options', 1 ;

docs/database-engine/configure-windows/configure-the-cursor-threshold-server-configuration-option.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ ms.workload: "Inactive"
8383

8484
3. Copy and paste the following example into the query window and click **Execute**. This example shows how to use [sp_configure](../../relational-databases/system-stored-procedures/sp-configure-transact-sql.md) to set the `cursor threshold` option to `0` so that cursor keysets are generated asynchronously.
8585

86-
```tsql
86+
```sql
8787
USE AdventureWorks2012 ;
8888
GO
8989
EXEC sp_configure 'show advanced options', 1 ;

docs/database-engine/configure-windows/configure-the-default-full-text-language-server-configuration-option.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ ms.workload: "Inactive"
8282

8383
3. Copy and paste the following example into the query window and click **Execute**. This example shows how to use [sp_configure](../../relational-databases/system-stored-procedures/sp-configure-transact-sql.md) to set the value of the `default full-text` option to Dutch (`1043`).
8484

85-
```tsql
85+
```sql
8686
USE AdventureWorks2012 ;
8787
GO
8888
EXEC sp_configure 'show advanced options', 1 ;

docs/database-engine/configure-windows/configure-the-default-language-server-configuration-option.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ ms.workload: "On Demand"
7575

7676
3. Copy and paste the following example into the query window and click **Execute**. This example shows how to use [sp_configure](../../relational-databases/system-stored-procedures/sp-configure-transact-sql.md) to configure the `default language` option to French (`2`).
7777

78-
```tsql
78+
```sql
7979
USE AdventureWorks2012 ;
8080
GO
8181
EXEC sp_configure 'default language', 2 ;

0 commit comments

Comments
 (0)