Note: This question is part of a series of questions that use the same or similar answer choices. An Answer
choice may be correct for more than one question in the series. Each question independent of the other
questions in this series. Information and details provided in a question apply only to that question.
You are a database developer for a company. The company has a server that has multiple physical disks. The
disks are not part of a RAID array. The server hosts three Microsoft SQL Server instances. There are many
SQL jobs that run during off-peak hours.
You must monitor the SQL Server instances in real time and optimize the server to maximize throughput,
response time, and overall SQL performance.
What should you do?
A.
A. Create asys.dm_os_waiting_tasks query.
B.
Create a sys.dm_exec_sessions query.
C.
Create a Performance Monitor Data Collector Set.
D.
Create a sys.dm_os_memory_objects query.
E.
Create a sp_configure ‘max server memory’ query.
F.
Create a SQL Profiler trace.
G.
Create a sys.dm_os_wait_stats query.
H.
Create an Extended Event.
Explanation:
sys.dm_exec_sessions returns one row per authenticated session on SQL Server. sys.dm_exec_sessions is a
server-scope view that shows information about all active user connections and internal tasks. This information
includes client version, client program name, client login time, login user, current session setting, and more.
Use sys.dm_exec_sessions to first view the current system load and to identify a session of interest, and then
learn more information about that session by using other dynamic management views or dynamic management
functions.Examples of use include finding long-running cursors, and finding idle sessions that have open transactions.