What should you recommend?

You have a query that is used by a reporting dashboard.
Users report that the query sometimes takes a long time to run.
You need to recommend a solution to identify what is causing the issue.
What should you recommend?
More than one answer choice may achieve the goal. Select the BEST answer.

You have a query that is used by a reporting dashboard.
Users report that the query sometimes takes a long time to run.
You need to recommend a solution to identify what is causing the issue.
What should you recommend?
More than one answer choice may achieve the goal. Select the BEST answer.

A.
Set the blocked process threshold, and then run SQL Server Profiler.

B.
Set the blocked process threshold, and then create an alert.

C.
Enable trace flag 1204, and then create an alert.

D.
Create a job that queries the sys.dm_os_waiting_tasks dynamic management view.

Explanation:
Step 1: Turn on the blocked process report. This will look for any blocking taking 20 seconds or longer.
–Make sure you don’t have any pending changes
SELECT *
FROM sys.configurations
WHERE value <> value_in_use;
GO
exec sp_configure ‘show advanced options’, 1;
GO
RECONFIGURE
GO
exec sp_configure ‘blocked process threshold (s)’, 20;
GO
RECONFIGURE
GO
Step 2: Set up a trace to capture the blocked process report. Run it as a server side trace.
blocked process threshold Server Configuration Option



Leave a Reply 0

Your email address will not be published. Required fields are marked *