Home
About
Search
Welcome to M-Files Empower – our new support experience. We'd love to hear what you think!Give feedback
Home/Support and troubleshooting/Examples and how to

Using SQL Server Activity Monitor

Last updated on 20 February 2021

Admin
Server Activity Monitor

Overview

This is a brief instruction how to use Microsoft SQL Server Activity Monitor to analyze possible issues in SQL server instance. The goal is to be able to capture screenshots and get some of the queries to M-Files support for more detail analysis.

Typical scenario is that that M-Files technical support or dev support has already done this sort of analysis with the customer, and these are more like reminder steps how to get the same details for the support to do next set of assessment.

Solution

Connect to the SQL Server instance with Microsoft SQL Server Management Studio. If possible, use remote desktop connection to get MSSMS running directly on the target server.

Launch Activity Monitor from context menu of the SQL instance

Take screen captures of the following looking way, please do note that some columns need to be made wider and sorting can be changed to show some relevant.

Overview:

Processes:

Resource Waits:

Data File I/O:

Recent Expensive Queries

If a high value is found, open the query's execution plan

Open Edit Query Text

Select all CTRL+A, copy that to clip board CTRL+C, and paste to email CTRL+V for example:
UPDATE BackgroundOperation SET RegTime = @P1, ServerID = @P2 WHERE ID = @P3 AND RegTime = @P4 AND ServerID = @P5

Close the query profile and query editor without executing the queries. Use the small x in the tabbing.

Do the same with Active Expensive Queries, take a full screen capture and try looking for the ones that have been running longest and take most CPU, open the queries and copy them to email along with screen capture.

Still need help?

On this page