Skip to content

Commit 178b550

Browse files
committed
added another screenshot for clarity
1 parent 4fccb20 commit 178b550

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

72.6 KB
Loading

docs/ssms/tutorials/scripting-ssms.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,9 +173,17 @@ This section covers how to script out [extended events](https://docs.microsoft.c
173173
2. Expand your **Management** node.
174174
3. Expand your **Extended Events** node.
175175
4. Expand your **Sessions** node.
176-
5. Right-click the extended session you're interested in > **Script Session As**:
176+
5. Right-click the extended session you're interested in > **Script Session As** > **New Query Editor Window**:
177177

178178
![Script xEvents](media/scripting-ssms/scriptxevents.png)
179+
6. In the **New Query Window**, modify the new name of the session from *system_health* to *system_health2* and select **Execute** to execute the query.
180+
181+
a. Right-click **Sessions** in **Object Explorer** and select **Refresh** to see your new Extended Event Session. The green icon next to the session indicates the session is running whereas the red icon indicates the session is stopped.
182+
183+
![New xEvent](media/scripting-ssms/newxevent.png)
184+
185+
>[!NOTE]
186+
> You can start the session by right-clicking it and selecting **Start**. However, since this is a copy of the already-running *system_health* session, this step can be skipped. You can delete the copy of the extended event session by right-clicking it and selecting **Delete**.
179187
180188
## Next steps
181189
The next article introduces you to the pre-built T-SQL templates found within SSMS.

0 commit comments

Comments
 (0)