Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

Commit aed70ab

Browse files
committed
[SSMS] [TSQL Debugger] Added version include to files
1 parent 59bb2f2 commit aed70ab

13 files changed

Lines changed: 155 additions & 112 deletions
Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,23 @@
11
---
2-
title: "Transact-SQL Code Snippets"
3-
ms.custom: ""
4-
ms.date: "03/14/2017"
2+
title: Transact-SQL Code Snippets
53
ms.prod: sql
64
ms.technology: scripting
7-
ms.reviewer: ""
85
ms.topic: conceptual
96
ms.assetid: 12834855-535a-4102-8b19-5d18b4080926
107
author: markingmyname
118
ms.author: maghan
9+
ms.reviewer: ""
10+
ms.custom: ""
11+
ms.date: 03/16/2017
1212
monikerRange: ">=aps-pdw-2016||=azuresqldb-current||=azure-sqldw-latest||>=sql-server-2016||=sqlallproducts-allversions||>=sql-server-linux-2017||=azuresqldb-mi-current"
1313
---
14+
1415
# Transact-SQL Code Snippets
16+
1517
[!INCLUDE[appliesto-ss-asdb-asdw-pdw-md](../../includes/appliesto-ss-asdb-asdw-pdw-md.md)]
16-
A [!INCLUDE[tsql](../../includes/tsql-md.md)].code snippet is a template containing the basic structure of a [!INCLUDE[tsql](../../includes/tsql-md.md)] statement or block. You can use snippets as a starting point when adding statements in the [!INCLUDE[ssDE](../../includes/ssde-md.md)] Query Editor. You can insert the pre-defined snippets supplied with SQL Server, or create your own.
17-
18+
19+
A [!INCLUDE[tsql](../../includes/tsql-md.md)].code snippet is a template containing the basic structure of a [!INCLUDE[tsql](../../includes/tsql-md.md)] statement or block. You can use snippets as a starting point when adding statements in the [!INCLUDE[ssDE](../../includes/ssde-md.md)] Query Editor. You can insert the pre-defined snippets supplied with SQL Server, or create your own.
20+
1821
## Transact-SQL Code Snippet Tasks
1922

2023
|Task Description|Topic|
@@ -24,7 +27,6 @@ monikerRange: ">=aps-pdw-2016||=azuresqldb-current||=azure-sqldw-latest||>=sql-s
2427
|Describes how to finish building a complete [!INCLUDE[tsql](../../includes/tsql-md.md)] statement or block after inserting a code snippet.|[Complete Transact-SQL Snippets](../../relational-databases/scripting/complete-transact-sql-snippets.md)|
2528
|Describes how to build your own custom snippets and add them to the set of SQL Server snippets.|[Add Transact-SQL Snippets](../../relational-databases/scripting/add-transact-sql-snippets.md)|
2629

27-
## See Also
28-
[Query and Text Editors (SQL Server Management Studio)](../../relational-databases/scripting/query-and-text-editors-sql-server-management-studio.md)
29-
30-
30+
## See Also
31+
32+
[Query and Text Editors (SQL Server Management Studio)](../../relational-databases/scripting/query-and-text-editors-sql-server-management-studio.md)

docs/ssms/scripting/transact-sql-debugger-breakpoints-window.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
---
2-
title: "Breakpoints Window"
2+
title: Breakpoints Window
33
ms.prod: sql
44
ms.technology: scripting
55
ms.topic: conceptual
6+
helpviewer_keywords:
7+
- "Breakpoints Window [Transact-SQL]"
8+
ms.assetid: bad88d10-fdd5-4d3d-b5ea-a4f063847485
69
author: markingmyname
710
ms.author: maghan
811
ms.reviewer: ""
912
ms.custom: ""
10-
ms.date: 11/04/2019
11-
helpviewer_keywords:
12-
- "Breakpoints Window [Transact-SQL]"
13-
ms.assetid: bad88d10-fdd5-4d3d-b5ea-a4f063847485
13+
ms.date: 12/04/2019
1414
monikerRange: ">= sql-server-2014 || = sqlallproducts-allversions"
1515
---
1616

@@ -20,6 +20,8 @@ monikerRange: ">= sql-server-2014 || = sqlallproducts-allversions"
2020

2121
The **Breakpoints** window lists all the breakpoints that are set in the current [!INCLUDE[ssDE](../../includes/ssde-md.md)] Query Editor. To manage the breakpoints, use the toolbar in the **Breakpoints** window. Breakpoints are locations in the code where execution pauses in debug mode so that you can view debugging data.
2222

23+
[!INCLUDE[ssms-old-versions](../../includes/ssms-old-versions.md)]
24+
2325
## Task List
2426

2527
**To access the Breakpoints window**
Lines changed: 42 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,53 @@
11
---
2-
title: "Call Stack Window"
3-
ms.custom: ""
4-
ms.date: "03/14/2017"
2+
title: Call Stack Window
53
ms.prod: sql
64
ms.technology: scripting
7-
ms.reviewer: ""
85
ms.topic: conceptual
96
helpviewer_keywords:
107
- "Call Stack Window [Transact-SQL]"
118
ms.assetid: ddb0b19c-87cd-4883-bcb8-ec09ffb30369
129
author: markingmyname
1310
ms.author: maghan
11+
ms.reviewer: ""
12+
ms.custom: ""
13+
ms.date: 12/04/2019
1414
monikerRange: ">=aps-pdw-2016||=azuresqldb-current||=azure-sqldw-latest||>=sql-server-2016||=sqlallproducts-allversions||>=sql-server-linux-2017||=azuresqldb-mi-current"
1515
---
16+
1617
# Transact-SQL Debugger - Call Stack Window
18+
1719
[!INCLUDE[appliesto-ss-xxxx-xxxx-xxx-md](../../includes/appliesto-ss-xxxx-xxxx-xxx-md.md)]
18-
The **Call Stack** window displays the modules on the call stack, and the data types and values of any parameters that are passed to the modules. [!INCLUDE[tsql](../../includes/tsql-md.md)] modules include stored procedures, functions, and triggers. To display the call stack, you must be in debug mode.
19-
20-
## Task List
21-
**To access the Call Stack window**
22-
23-
- On the **Debug** menu, click **Windows**, and then click **Call Stack**.
24-
25-
**To change the current Call Stack frame**
26-
27-
You can use either of the following procedures to make a stack frame the current frame:
28-
29-
- Right-click the stack frame, and then click **Switch To Frame**.
30-
31-
- Double-click the stack frame.
32-
33-
**To view the source of a frame other than the current frame**
34-
35-
- Right-click the stack frame, and then click **Go To Source Code**.
36-
37-
## Stack Frames
38-
Each row in the **Call Stack** window is called a stack frame and represents either a call from a [!INCLUDE[tsql](../../includes/tsql-md.md)] script file to a module or a call from one module to another. The bottom stack frame in the display indicates the line in the [!INCLUDE[ssDE](../../includes/ssde-md.md)] Query Editor window that made the first call into the stack. The top row indicates the line on which the debugger paused execution, and is identified by a yellow arrow in the left margin of the window. Each intermediate row indicates the module and the line number of the source code that called the next higher stack frame.
39-
40-
All expressions in the **Locals**, **Watch**, and **QuickWatch** windows are evaluated based on the current stack frame. The Query Editor window displays the code for the current frame. By default, the current stack frame is the frame in which the [!INCLUDE[tsql](../../includes/tsql-md.md)] debugger paused execution. When you change the current stack frame to another frame, the expressions in the **Locals**, **Watch**, and **QuickWatch** windows are reevaluated in the context of the new frame, and the source code of the new frame is displayed in the Query Editor window.
41-
42-
## Columns
20+
21+
The **Call Stack** window displays the modules on the call stack, and the data types and values of any parameters that are passed to the modules. [!INCLUDE[tsql](../../includes/tsql-md.md)] modules include stored procedures, functions, and triggers. To display the call stack, you must be in debug mode.
22+
23+
[!INCLUDE[ssms-old-versions](../../includes/ssms-old-versions.md)]
24+
25+
## Task List
26+
27+
**To access the Call Stack window**
28+
29+
- On the **Debug** menu, click **Windows**, and then click **Call Stack**.
30+
31+
**To change the current Call Stack frame**
32+
33+
You can use either of the following procedures to make a stack frame the current frame:
34+
35+
- Right-click the stack frame, and then click **Switch To Frame**.
36+
37+
- Double-click the stack frame.
38+
39+
**To view the source of a frame other than the current frame**
40+
41+
- Right-click the stack frame, and then click **Go To Source Code**.
42+
43+
## Stack Frames
44+
45+
Each row in the **Call Stack** window is called a stack frame and represents either a call from a [!INCLUDE[tsql](../../includes/tsql-md.md)] script file to a module or a call from one module to another. The bottom stack frame in the display indicates the line in the [!INCLUDE[ssDE](../../includes/ssde-md.md)] Query Editor window that made the first call into the stack. The top row indicates the line on which the debugger paused execution, and is identified by a yellow arrow in the left margin of the window. Each intermediate row indicates the module and the line number of the source code that called the next higher stack frame.
46+
47+
All expressions in the **Locals**, **Watch**, and **QuickWatch** windows are evaluated based on the current stack frame. The Query Editor window displays the code for the current frame. By default, the current stack frame is the frame in which the [!INCLUDE[tsql](../../includes/tsql-md.md)] debugger paused execution. When you change the current stack frame to another frame, the expressions in the **Locals**, **Watch**, and **QuickWatch** windows are reevaluated in the context of the new frame, and the source code of the new frame is displayed in the Query Editor window.
48+
49+
## Columns
50+
4351
**Name**
4452
Displays information about a module on the call stack.
4553

@@ -60,7 +68,8 @@ monikerRange: ">=aps-pdw-2016||=azuresqldb-current||=azure-sqldw-latest||>=sql-s
6068
**Language**
6169
Displays **Transact-SQL** for [!INCLUDE[tsql](../../includes/tsql-md.md)].
6270

63-
## See Also
64-
[Transact-SQL Debugger](../../relational-databases/scripting/transact-sql-debugger.md)
65-
[Transact-SQL Debugger Information](../../relational-databases/scripting/transact-sql-debugger-information.md)
66-
[Step Through Transact-SQL Code](../../relational-databases/scripting/step-through-transact-sql-code.md)
71+
## See Also
72+
73+
- [Transact-SQL Debugger](../../relational-databases/scripting/transact-sql-debugger.md)
74+
- [Transact-SQL Debugger Information](../../relational-databases/scripting/transact-sql-debugger-information.md)
75+
- [Step Through Transact-SQL Code](../../relational-databases/scripting/step-through-transact-sql-code.md)
Lines changed: 31 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,45 @@
11
---
22
title: "Command Window"
3-
ms.custom: ""
4-
ms.date: "03/14/2017"
53
ms.prod: sql
64
ms.technology: scripting
7-
ms.reviewer: ""
85
ms.topic: conceptual
96
helpviewer_keywords:
107
- "Command Window [Transact-SQL]"
118
ms.assetid: e567ebf9-0793-451b-92c7-26193a02d9da
129
author: markingmyname
1310
ms.author: maghan
11+
ms.reviewer: ""
12+
ms.custom: ""
13+
ms.date: 12/04/2019
1414
monikerRange: ">=aps-pdw-2016||=azuresqldb-current||=azure-sqldw-latest||>=sql-server-2016||=sqlallproducts-allversions||>=sql-server-linux-2017||=azuresqldb-mi-current"
1515
---
16+
1617
# Transact-SQL Debugger - Command Window
18+
1719
[!INCLUDE[appliesto-ss-xxxx-xxxx-xxx-md](../../includes/appliesto-ss-xxxx-xxxx-xxx-md.md)]
18-
Use the **CommandWindow** to run commands, such as debug and edit commands, against the code in the [!INCLUDE[ssDEnoversion](../../includes/ssdenoversion-md.md)] Query Editor window that is currently being debugged. You must be in debug mode to use the **Command Window**. The [!INCLUDE[tsql](../../includes/tsql-md.md)] debugger supports many of the commands that are also supported in the [!INCLUDE[msCoName](../../includes/msconame-md.md)] [!INCLUDE[vsprvs](../../includes/vsprvs-md.md)] **Command** window. For more information, see [Visual Studio Command Window](https://go.microsoft.com/fwlink/?LinkId=112007).
19-
20-
## Task List
21-
**To access the Command Window**
22-
23-
- On the **Debug** menu, click **Start Debugging**.
24-
25-
**To print the value of a variable**
26-
27-
- In the **CommandWindow**, type **Debug.Print \<VariableName>**, and then press ENTER.
28-
29-
**To list information about the current thread**
30-
31-
- In the **CommandWindow**, type **Debug.ListThread**, and then press ENTER.
32-
33-
**To add a variable to the QuickWatch window**
34-
35-
- In the **CommandWindow**, type **Debug.QuickWatch \<VariableName>**, and then press ENTER.
36-
37-
## See Also
38-
[Transact-SQL Debugger](../../relational-databases/scripting/transact-sql-debugger.md)
20+
21+
Use the **CommandWindow** to run commands, such as debug and edit commands, against the code in the [!INCLUDE[ssDEnoversion](../../includes/ssdenoversion-md.md)] Query Editor window that is currently being debugged. You must be in debug mode to use the **Command Window**. The [!INCLUDE[tsql](../../includes/tsql-md.md)] debugger supports many of the commands that are also supported in the [!INCLUDE[msCoName](../../includes/msconame-md.md)] [!INCLUDE[vsprvs](../../includes/vsprvs-md.md)] **Command** window. For more information, see [Visual Studio Command Window](https://go.microsoft.com/fwlink/?LinkId=112007).
22+
23+
[!INCLUDE[ssms-old-versions](../../includes/ssms-old-versions.md)]
24+
25+
## Task List
26+
27+
**To access the Command Window**
28+
29+
- On the **Debug** menu, click **Start Debugging**.
30+
31+
**To print the value of a variable**
32+
33+
- In the **CommandWindow**, type **Debug.Print \<VariableName>**, and then press ENTER.
34+
35+
**To list information about the current thread**
36+
37+
- In the **CommandWindow**, type **Debug.ListThread**, and then press ENTER.
38+
39+
**To add a variable to the QuickWatch window**
40+
41+
- In the **CommandWindow**, type **Debug.QuickWatch \<VariableName>**, and then press ENTER.
42+
43+
## See Also
44+
45+
[Transact-SQL Debugger](../../relational-databases/scripting/transact-sql-debugger.md)

docs/ssms/scripting/transact-sql-debugger-error-list-window.md

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
---
2-
title: "Error List Window (Management Studio)"
3-
ms.custom: ""
4-
ms.date: "03/14/2017"
2+
title: Error List Window
53
ms.prod: sql
64
ms.technology: scripting
7-
ms.reviewer: ""
85
ms.topic: conceptual
96
dev_langs:
107
- "TSQL"
@@ -14,14 +11,23 @@ helpviewer_keywords:
1411
ms.assetid: fae6327d-e268-44ae-a474-4a8f8f843129
1512
author: markingmyname
1613
ms.author: maghan
14+
ms.reviewer: ""
15+
ms.custom: ""
16+
ms.date: 12/04/2019
1717
monikerRange: ">=aps-pdw-2016||=azuresqldb-current||=azure-sqldw-latest||>=sql-server-2016||=sqlallproducts-allversions||>=sql-server-linux-2017||=azuresqldb-mi-current"
1818
---
19+
1920
# Transact-SQL Debugger - Error List Window
21+
2022
[!INCLUDE[appliesto-ss-xxxx-xxxx-xxx-md](../../includes/appliesto-ss-xxxx-xxxx-xxx-md.md)]
21-
The [!INCLUDE[ssManStudioFull](../../includes/ssmanstudiofull-md.md)] **Error List** displays the syntax and semantic errors that are generated from the IntelliSense code in the [!INCLUDE[ssDE](../../includes/ssde-md.md)] Query Editor.
22-
23+
24+
The [!INCLUDE[ssManStudioFull](../../includes/ssmanstudiofull-md.md)] **Error List** displays the syntax and semantic errors that are generated from the IntelliSense code in the [!INCLUDE[ssDE](../../includes/ssde-md.md)] Query Editor.
25+
26+
[!INCLUDE[ssms-old-versions](../../includes/ssms-old-versions.md)]
27+
2328
## Features of the Error List
24-
The **Error List** provides the following functionality:
29+
30+
The **Error List** provides the following functionality:
2531

2632
- As you edit scripts, the **Error List** displays the errors and warnings produced by IntelliSense in the [!INCLUDE[ssDE](../../includes/ssde-md.md)] Query Editor.
2733

docs/ssms/scripting/transact-sql-debugger-information.md

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
---
22
title: "Transact-SQL Debugger Information"
3-
ms.custom: ""
4-
ms.date: "03/14/2017"
53
ms.prod: sql
64
ms.technology: scripting
7-
ms.reviewer: ""
85
ms.topic: conceptual
96
helpviewer_keywords:
107
- "Transact-SQL debugger, Locals Window"
@@ -16,14 +13,23 @@ helpviewer_keywords:
1613
ms.assetid: b99819cc-f388-41a1-b304-36e78ce24147
1714
author: markingmyname
1815
ms.author: maghan
16+
ms.reviewer: ""
17+
ms.custom: ""
18+
ms.date: 12/04/2019
1919
monikerRange: ">=aps-pdw-2016||=azuresqldb-current||=azure-sqldw-latest||>=sql-server-2016||=sqlallproducts-allversions||>=sql-server-linux-2017||=azuresqldb-mi-current"
2020
---
21+
2122
# Transact-SQL Debugger - Information
23+
2224
[!INCLUDE[appliesto-ss-xxxx-xxxx-xxx-md](../../includes/appliesto-ss-xxxx-xxxx-xxx-md.md)]
23-
Every time that the debugger pauses execution on a specific [!INCLUDE[tsql](../../includes/tsql-md.md)] statement, you can use the various debugger windows to view the current execution state.
24-
25+
26+
Every time that the debugger pauses execution on a specific [!INCLUDE[tsql](../../includes/tsql-md.md)] statement, you can use the various debugger windows to view the current execution state.
27+
28+
[!INCLUDE[ssms-old-versions](../../includes/ssms-old-versions.md)]
29+
2530
## Debugger Windows
26-
In debugger mode, the debugger opens two windows at the bottom of the main [!INCLUDE[ssManStudioFull](../../includes/ssmanstudiofull-md.md)] window. The debugger displays all its information in these two windows. Each of the debugger windows has tabs that you can select to control which set of information is displayed in the window. The left debugger window contains the **Locals**, **Watch1**, **Watch2**, **Watch3**, and **Watch4** tabs. The right debugger window contains the **Call Stack**, **Threads**, **Breakpoints**, **Command Window**, and **Output** tabs.
31+
32+
In debugger mode, the debugger opens two windows at the bottom of the main [!INCLUDE[ssManStudioFull](../../includes/ssmanstudiofull-md.md)] window. The debugger displays all its information in these two windows. Each of the debugger windows has tabs that you can select to control which set of information is displayed in the window. The left debugger window contains the **Locals**, **Watch1**, **Watch2**, **Watch3**, and **Watch4** tabs. The right debugger window contains the **Call Stack**, **Threads**, **Breakpoints**, **Command Window**, and **Output** tabs.
2733

2834
> [!NOTE]
2935
> The previous descriptions apply to the default locations of the debugger windows. You can drag a tab to move it from one window to another, or you can undock a tab to create a new window that you can put wherever you want.

docs/ssms/scripting/transact-sql-debugger-locals-window.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,27 @@
11
---
2-
title: "Locals Window"
3-
ms.custom: ""
4-
ms.date: "03/14/2017"
2+
title: Locals Window
53
ms.prod: sql
64
ms.technology: scripting
7-
ms.reviewer: ""
85
ms.topic: conceptual
96
helpviewer_keywords:
107
- "Locals Window [Transact-SQL]"
118
ms.assetid: 59bea640-7823-4b4d-832c-f384d83cca2f
129
author: markingmyname
1310
ms.author: maghan
11+
ms.reviewer: ""
12+
ms.custom: ""
13+
ms.date: 12/04/2019
1414
monikerRange: ">=aps-pdw-2016||=azuresqldb-current||=azure-sqldw-latest||>=sql-server-2016||=sqlallproducts-allversions||>=sql-server-linux-2017||=azuresqldb-mi-current"
1515
---
16+
1617
# Transact-SQL Debugger - Locals Window
1718

1819
[!INCLUDE[appliesto-ss-xxxx-xxxx-xxx-md](../../includes/appliesto-ss-xxxx-xxxx-xxx-md.md)]
1920

2021
The **Locals** window displays information about the local expressions in the current scope of the [!INCLUDE[tsql](../../includes/tsql-md.md)] debugger. The scope is set to the current call stack frame that is selected in the **Call Stack** window. You must be in debug mode to display the local expressions.
21-
22+
23+
[!INCLUDE[ssms-old-versions](../../includes/ssms-old-versions.md)]
24+
2225
## Task List
2326

2427
**To access the Locals window**

docs/ssms/scripting/transact-sql-debugger-output-window.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ author: markingmyname
1212
ms.author: maghan
1313
ms.reviewer: ""
1414
ms.custom: ""
15-
ms.date: "03/14/2017"
15+
ms.date: 12/04/2019
1616
monikerRange: ">=aps-pdw-2016||=azuresqldb-current||=azure-sqldw-latest||>=sql-server-2016||=sqlallproducts-allversions||>=sql-server-linux-2017||=azuresqldb-mi-current"
1717
---
1818

docs/ssms/scripting/transact-sql-debugger-quickwatch-dialog-box.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ author: markingmyname
1212
ms.author: maghan
1313
ms.reviewer: ""
1414
ms.custom: ""
15-
ms.date: "03/14/2017"
15+
ms.date: 12/04/2019
1616
monikerRange: ">=aps-pdw-2016||=azuresqldb-current||=azure-sqldw-latest||>=sql-server-2016||=sqlallproducts-allversions||>=sql-server-linux-2017||=azuresqldb-mi-current"
1717

1818
---

docs/ssms/scripting/transact-sql-debugger-threads-window.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ author: markingmyname
1111
ms.author: maghan
1212
ms.reviewer: ""
1313
ms.custom: ""
14-
ms.date: "03/14/2017"
14+
ms.date: 12/04/2019
1515
monikerRange: ">=aps-pdw-2016||=azuresqldb-current||=azure-sqldw-latest||>=sql-server-2016||=sqlallproducts-allversions||>=sql-server-linux-2017||=azuresqldb-mi-current"
1616
---
1717

0 commit comments

Comments
 (0)