Skip to content

Commit 3887ebd

Browse files
authored
Merge pull request #21725 from markingmyname/issues
[Issue-a-thon - 04/2022] Updates suggested by external contributors
2 parents d1a032c + e72881f commit 3887ebd

3 files changed

Lines changed: 31 additions & 31 deletions

File tree

59.1 KB
Loading

docs/azure-data-studio/extensions/schema-compare-extension.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ author: "yualan"
88
ms.author: "alayu"
99
ms.reviewer: "maghan"
1010
ms.custom:
11-
ms.date: 11/04/2019
11+
ms.date: 04/15/2022
1212
---
1313

1414
# Schema Compare extension
@@ -36,7 +36,7 @@ It can be tedious to manually manage and synchronize different database versions
3636

3737
1. Select the Extensions Icon to view the available extensions.
3838

39-
![extension manager icon](media/add-extensions/extension-manager-icon.png)
39+
:::image type="content" source="media/schema-compare-extension/schema-compare-marketplace-search.png" alt-text="marketplace search":::
4040

4141
2. Search for the **Schema Compare** extension and select it to view its details. Select **Install** to add the extension.
4242

@@ -46,11 +46,11 @@ It can be tedious to manually manage and synchronize different database versions
4646

4747
1. To open the Schema Compare dialog, **right-click** a database in the Object Explorer and Select **Schema Compare**. The database you select is set as the Source database in the comparison.
4848

49-
![schema compare launch menu](media/schema-compare-extension/schema-compare-launch.png)
49+
:::image type="content" source="media/schema-compare-extension/schema-compare-launch.png" alt-text="schema compare launch":::
5050

5151
2. Select one of the ellipses (...) to change the Source and Target of your Schema Compare and Select OK.
5252

53-
![schema compare select source/target](media/schema-compare-extension/schema-compare-select-source-target.png)
53+
:::image type="content" source="media/schema-compare-extension/schema-compare-select-source-target.png" alt-text="schema compare select source target":::
5454

5555
3. To customize your comparison, Select the **Options** button in the toolbar.
5656

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,56 +1,57 @@
11
---
22
title: View and Analyze Traces
3-
titleSuffix: SQL Server Profiler
43
description: Find out how to use SQL Server Profiler to view trace data, find specific events, display object names, and troubleshoot problems.
54
ms.prod: sql
65
ms.prod_service: sql-tools
7-
ms.reviewer: ""
86
ms.technology: profiler
97
ms.topic: conceptual
10-
ms.assetid: 17e821ca-a12e-4192-acc1-96765d9ae266
118
author: markingmyname
129
ms.author: maghan
10+
ms.reviewer: ""
1311
ms.custom: seo-lt-2019
1412
ms.date: 03/14/2017
1513
---
1614

1715
# View and Analyze Traces with SQL Server Profiler
1816

19-
[!INCLUDE [SQL Server](../../includes/applies-to-version/sqlserver.md)]
17+
[!INCLUDE [SQL Server](../../includes/applies-to-version/sqlserver.md)]
2018

21-
Use [!INCLUDE[ssSqlProfiler](../../includes/sssqlprofiler-md.md)] to view captured event data in a trace. [!INCLUDE[ssSqlProfiler](../../includes/sssqlprofiler-md.md)] displays data based on defined trace properties. One way to analyze [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] data is to copy the data to another program, such as [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] or [!INCLUDE[ssDE](../../includes/ssde-md.md)] Tuning Advisor. [!INCLUDE[ssDE](../../includes/ssde-md.md)] Tuning Advisor can use a trace file that contains SQL batch and remote procedure call (RPC) events if the **Text** data column is included in the trace. To make sure that the correct events and columns are captured for use with [!INCLUDE[ssDE](../../includes/ssde-md.md)] Tuning Advisor, use the predefined Tuning template that is supplied with [!INCLUDE[ssSqlProfiler](../../includes/sssqlprofiler-md.md)].
19+
Use SQL Server Profiler to view captured event data in a trace. SQL Server Profiler displays data based on defined trace properties. One way to analyze SQL Server data is to copy the data to another program, such as SQL Server or Database Engine Tuning Advisor. Database Engine Tuning Advisor can use a trace file that contains SQL batch and remote procedure call (RPC) events if the **Text** data column is included in the trace. To make sure that the correct events and columns are captured for use with Database Engine Tuning Advisor, use the predefined Tuning template that is supplied with SQL Server Profiler .
2220

23-
When you open a trace by using [!INCLUDE[ssSqlProfiler](../../includes/sssqlprofiler-md.md)], the trace file does not need to have the .trc file extension if the file was created by either [!INCLUDE[ssSqlProfiler](../../includes/sssqlprofiler-md.md)] or SQL Trace system stored procedures.
21+
When you open a trace by using SQL Server Profiler , the trace file does not need to have the .trc file extension if the file was created by either SQL Server Profiler or SQL Trace system stored procedures.
2422

2523
> [!NOTE]
26-
> [!INCLUDE[ssSqlProfiler](../../includes/sssqlprofiler-md.md)] can also read SQL Trace .log files and generic SQL script files. When opening a SQL Trace .log file that does not have a .log file extension, such as trace.txt, specify **SQLTrace_Log** as the file format.
24+
> SQL Server Profiler can also read SQL Trace .log files and generic SQL script files. When opening a SQL Trace .log file that does not have a .log file extension, such as trace.txt, specify **SQLTrace_Log** as the file format.
2725
28-
You can configure the [!INCLUDE[ssSqlProfiler](../../includes/sssqlprofiler-md.md)] date and time display format to assist in trace analysis.
26+
You can configure the SQL Server Profiler date and time display format to assist in trace analysis.
2927

30-
## Troubleshooting Data
31-
Using [!INCLUDE[ssSqlProfiler](../../includes/sssqlprofiler-md.md)], you can troubleshoot data by grouping traces or trace files by the **Duration**, **CPU**, **Reads**, or **Writes** data columns. Examples of data you might troubleshoot are queries that perform poorly or that have exceptionally high numbers of logical read operations.
28+
## Troubleshooting Data
29+
30+
Using SQL Server Profiler, you can troubleshoot data by grouping traces or trace files by the **Duration**, **CPU**, **Reads**, or **Writes** data columns. Examples of data you might troubleshoot are queries that perform poorly or that have exceptionally high numbers of logical read operations.
3231

3332
Additional information can be found by saving traces to tables and using [!INCLUDE[tsql](../../includes/tsql-md.md)] to query the event data. For example, to determine which **SQL:BatchCompleted** events had excessive wait time, execute the following:
3433

35-
```
34+
```sql
3635
SELECT TextData, Duration, CPU
3736
FROM trace_table_name
3837
WHERE EventClass = 12 -- SQL:BatchCompleted events
3938
AND CPU < (Duration * 1000)
4039
```
4140

4241
> [!NOTE]
43-
> The server reports the duration of an event in microseconds (10^-6 seconds) and the amount of CPU time used by the event in milliseconds (10^-3 seconds). The [!INCLUDE[ssSqlProfiler](../../includes/sssqlprofiler-md.md)] graphical user interface displays the **Duration** column in milliseconds by default, but when a trace is saved to either a file or a database table, the **Duration** column value is written in microseconds.
42+
> The server reports the duration of an event in microseconds (10^-6 seconds) and the amount of CPU time used by the event in milliseconds (10^-3 seconds). The SQL Server Profiler graphical user interface displays the **Duration** column in milliseconds by default, but when a trace is saved to either a file or a database table, the **Duration** column value is written in microseconds. These measurements are for Transact-SQL (T-SQL) queries.
4443
45-
## Displaying Object Names When Viewing Traces
46-
If you wish to display the name of an object rather than the object identifier (**Object ID**), you must capture the **Server Name** and **Database ID** data columns along with the **Object Name** data column.
44+
## Displaying Object Names When Viewing Traces
45+
46+
If you wish to display the name of an object rather than the object identifier (**Object ID**), you must capture the **Server Name** and **Database ID** data columns along with the **Object Name** data column.
4747

4848
If you choose to group by the **Object ID** data column, make sure you group by the **Server Name** and **Database ID** data columns first, and then by the **Object ID** data column. Similarly, if you choose to group by the **Index ID** data column, make sure you group by the **Server Name**, **Database ID**, and **Object ID** data columns first, and then by the **Index ID** data columns. You must group in this order because object and index IDs are not unique among servers and databases (and among objects for index IDs).
4949

50-
## Finding Specific Events Within a Trace
51-
To find and group events in a trace, follow these steps:
50+
## Finding Specific Events Within a Trace
51+
52+
To find and group events in a trace, follow these steps:
5253

53-
1. Create your trace.
54+
1. Create your trace.
5455

5556
- When defining the trace, capture the **Event Class**, **ClientProcessID**, and **Start Time** data columns in addition to any other data columns you want to capture. For more information, see [Create a Trace &#40;SQL Server Profiler&#41;](../../tools/sql-server-profiler/create-a-trace-sql-server-profiler.md).
5657

@@ -62,7 +63,7 @@ AND CPU < (Duration * 1000)
6263

6364
- Open the trace file or table, and expand the node of the desired event class; for example, **Deadlock Chain**. For more information, see [Open a Trace File &#40;SQL Server Profiler&#41;](../../tools/sql-server-profiler/open-a-trace-file-sql-server-profiler.md) or [Open a Trace Table &#40;SQL Server Profiler&#41;](../../tools/sql-server-profiler/open-a-trace-table-sql-server-profiler.md).
6465

65-
- Search through the trace data until you find the events for which you are looking (use the **Find** command on the **Edit** menu of [!INCLUDE[ssSqlProfiler](../../includes/sssqlprofiler-md.md)] to help you find values in the trace). Note the values in the **ClientProcessID** and **Start Time** data columns of the events you trace.
66+
- Search through the trace data until you find the events for which you are looking (use the **Find** command on the **Edit** menu of SQL Server Profiler to help you find values in the trace). Note the values in the **ClientProcessID** and **Start Time** data columns of the events you trace.
6667

6768
3. Display the events in context.
6869

@@ -72,12 +73,11 @@ AND CPU < (Duration * 1000)
7273

7374
The same technique can be used to find any grouped events. Once you have found the events you seek, group them by **ClientProcessID**, **ApplicationName**, or another event class to view related activity in chronological order.
7475

75-
## See Also
76-
[View a Saved Trace &#40;Transact-SQL&#41;](../../relational-databases/sql-trace/view-a-saved-trace-transact-sql.md)
77-
[sys.fn_trace_getinfo &#40;Transact-SQL&#41;](../../relational-databases/system-functions/sys-fn-trace-getinfo-transact-sql.md)
78-
[View Filter Information &#40;SQL Server Profiler&#41;](../../tools/sql-server-profiler/view-filter-information-sql-server-profiler.md)
79-
[View Filter Information &#40;Transact-SQL&#41;](../../relational-databases/sql-trace/view-filter-information-transact-sql.md)
80-
[Open a Trace File &#40;SQL Server Profiler&#41;](../../tools/sql-server-profiler/open-a-trace-file-sql-server-profiler.md)
81-
[Open a Trace Table &#40;SQL Server Profiler&#41;](../../tools/sql-server-profiler/open-a-trace-table-sql-server-profiler.md)
82-
83-
76+
## See Also
77+
78+
- [View a Saved Trace &#40;Transact-SQL&#41;](../../relational-databases/sql-trace/view-a-saved-trace-transact-sql.md)
79+
- [sys.fn_trace_getinfo &#40;Transact-SQL&#41;](../../relational-databases/system-functions/sys-fn-trace-getinfo-transact-sql.md)
80+
- [View Filter Information &#40;SQL Server Profiler&#41;](../../tools/sql-server-profiler/view-filter-information-sql-server-profiler.md)
81+
- [View Filter Information &#40;Transact-SQL&#41;](../../relational-databases/sql-trace/view-filter-information-transact-sql.md)
82+
- [Open a Trace File &#40;SQL Server Profiler&#41;](../../tools/sql-server-profiler/open-a-trace-file-sql-server-profiler.md)
83+
- [Open a Trace Table &#40;SQL Server Profiler&#41;](../../tools/sql-server-profiler/open-a-trace-table-sql-server-profiler.md)

0 commit comments

Comments
 (0)