Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

MCSA Guide to Microsoft SQL Server 2012 (Exam 70-462) 1st edition Complete the s

ID: 3742719 • Letter: M

Question

MCSA Guide to Microsoft SQL Server 2012 (Exam 70-462) 1st edition

Complete the steps in Microsoft SQL Server and take screenshots for each step. Include steps on how you got to the screenshot if possible. Thanks!

INSTRUCTIONS TO CREATE THE TABLES YOU NEED:

Hands-On Project 7-1: Monitoring and Analyzing Performance For this hands-on project, you will use the SQL Server named instance SQLSERVERHOA and the HandsOnOne database and tables that you created in previous chapters. The objective of this project is to practice using Windows utilitics and SQL Server management tools to monitor nce and diagnose query perf 1. Using the Windows Performance Monitor utility, add a set of counters to the real-time performance monitor display that you consider most relevant to the performance of your SQL Server instance. Document this step by taking a screen shot of the real-time displa 2. In SQL Server Management Studio, construct a SQL query that uses a SELECT statement and a JOIN clause to query data from both the Customer and Address tables. Analyze the cstimatcd cxecution plan. Identify the most costly plan steps. a. b. c. Are any of the steps that you identified in Step 2(a) a cause for concern? Explain. Describe how the performance of the query could be improved, or explain why the query is already optimal. 3. Implement any changes identified in 2(c) and execute the query using the option Include Actual Exccution Plan. Document this step by taking a screen shot of the actual exccution an 4. Use SQL Server Profiler to capture a trace and execute the query again. Analyze the trace ution of your query to document this 5. Launch the Database Engine Tuning Advisor from Qucry Editor to analyze your query. Did Run the sp_who2 procedure to determine the current sessions that are connected to the and determine how many milliscconds the query took to execute. Take a screen shot of the trace that shows the excc the analysis gencrate any recommendations? Explain why or why not. SQLSERVERHOA instance step

Explanation / Answer

As per given data SQL statements:

This following explanation for determine the number of sessions which are are connected to any database server that is SQL server.

Following procedure for viewing the DB connections which are currently connected to DB:

*SQL select statement*

SELECT

DataBase_NAME(dbid) as DBName,

COUNT(dbid) as ConnectionsCount,

loginame as LoginName

FROM

sys.sysprocesses

*where condition for which is grater then bdid*

WHERE

dbid > 0

*grouping statements through bbid,loginame by using GOUP BY statement*

GROUP BY

dbid, loginame

*this statement gives toatal *

SELECT

COUNT(dbid) as TotalConnections

FROM

sys.sysprocesses

WHERE

dbid > 0

To performing all the above statements in SQL server for count of number of connections we need to use ‘sysadmin’ role , if we are not using it will shows single row and a count of only one connection as the result.