Optimizing Queries and Tuning SQL Server For this Lab you will use the default instance of...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Optimizing Queries and Tuning SQL Server For this Lab you will use the default instance of SQL Server that you installed during Lab 1. Partial answers or answers that are partially correct will result in minimal partial credit. 1. Run the SQL Script Included with this Lab specification (the Microsoft Recursive CTE example) and show me the Estimated Execution Plan, Actual Execution Plan, and Client Statistics for several runs. I will need a screenshot of each (3 screenshots, make sure the statistics show several runs). Please record your screenshots in a Word Document for upload. 2. Create a simulated Workload file by running the SQL Profiler on you instance of SQL Server while executing the included script file twenty times (20). Include your simulated Workload file in your upload. 3. Run the Database Engine Tuning Advisor on the AdventueWorks database using the Workload file generated in Step 2. I will need a screenshot of the Database Engine Tuning Advisor recommendation screen. Please record your screenshot in the Word Document created in Step 1 for upload. 4. If there were tunings suggested in Step 3, implement it if the improvement is above 5%. Save the requested tunings to an SQL script for upload, execute the script, and then rerun the Database Engine Tuning Advisor. I will need a screenshot of the Database Engine Tuning Advisor recommendation screen. Please record your screenshot in the Word Document created in Step 1 for upload. Also make sure to keep the script with the requested tunings. I will require this to be uploaded as well. 5. If there were tunings suggested in Step 3, clear your client statistics, and rerun the query from Step 1 a couple of times looking at the Client Statistics and the Actual Execution Plan. Please take a screenshot of the Client Statistics Comparison and the Actual Execution Plan. Include these in the Word Document from Step 1 for upload. 6. Answer the following questions (if there were tunings indicated with over 5% improvement). Include these in the Word Document from Step 1 for upload. a. Why do you think the Database Engine Tuning Advisor indicated that you should implement the requested tuning(s)? b. Did the tunings you implemented (if you did) make a difference? Deliverables 1. The Microsoft Document file created in Step 1 and added to throughout the Lab. It should have multiple screenshots as well as the answers to the Item 6 questions. 2. Simulated Workload File from Step 2. 3. The SQL Script that has the tunings suggested by the Database Engine Tuning Advisor from Step 4. Rubric 1. Correctly running the SQL Server Profiler to create Workload file - 30 points 2. Correctly running the Database Engine Tuning Advisor - 30 points 3. Correctly implementing the Tuning Advise from the Tuning Advisor - 30 points 4. Correctly answering questions 6a and 6b - 10 points Optimizing Queries and Tuning SQL Server For this Lab you will use the default instance of SQL Server that you installed during Lab 1. Partial answers or answers that are partially correct will result in minimal partial credit. 1. Run the SQL Script Included with this Lab specification (the Microsoft Recursive CTE example) and show me the Estimated Execution Plan, Actual Execution Plan, and Client Statistics for several runs. I will need a screenshot of each (3 screenshots, make sure the statistics show several runs). Please record your screenshots in a Word Document for upload. 2. Create a simulated Workload file by running the SQL Profiler on you instance of SQL Server while executing the included script file twenty times (20). Include your simulated Workload file in your upload. 3. Run the Database Engine Tuning Advisor on the AdventueWorks database using the Workload file generated in Step 2. I will need a screenshot of the Database Engine Tuning Advisor recommendation screen. Please record your screenshot in the Word Document created in Step 1 for upload. 4. If there were tunings suggested in Step 3, implement it if the improvement is above 5%. Save the requested tunings to an SQL script for upload, execute the script, and then rerun the Database Engine Tuning Advisor. I will need a screenshot of the Database Engine Tuning Advisor recommendation screen. Please record your screenshot in the Word Document created in Step 1 for upload. Also make sure to keep the script with the requested tunings. I will require this to be uploaded as well. 5. If there were tunings suggested in Step 3, clear your client statistics, and rerun the query from Step 1 a couple of times looking at the Client Statistics and the Actual Execution Plan. Please take a screenshot of the Client Statistics Comparison and the Actual Execution Plan. Include these in the Word Document from Step 1 for upload. 6. Answer the following questions (if there were tunings indicated with over 5% improvement). Include these in the Word Document from Step 1 for upload. a. Why do you think the Database Engine Tuning Advisor indicated that you should implement the requested tuning(s)? b. Did the tunings you implemented (if you did) make a difference? Deliverables 1. The Microsoft Document file created in Step 1 and added to throughout the Lab. It should have multiple screenshots as well as the answers to the Item 6 questions. 2. Simulated Workload File from Step 2. 3. The SQL Script that has the tunings suggested by the Database Engine Tuning Advisor from Step 4. Rubric 1. Correctly running the SQL Server Profiler to create Workload file - 30 points 2. Correctly running the Database Engine Tuning Advisor - 30 points 3. Correctly implementing the Tuning Advise from the Tuning Advisor - 30 points 4. Correctly answering questions 6a and 6b - 10 points
Expert Answer:
Related Book For
Concepts of Database Management
ISBN: 978-1285427102
8th edition
Authors: Philip J. Pratt, Mary Z. Last
Posted Date:
Students also viewed these databases questions
-
Design a Java class that represents a cache with a fixed size. It should support operations like add, retrieve, and remove, and it should evict the least recently used item when it reaches capacity.
-
What is the difference between MouseListener and MouseAdapter? [3 marks] (b) Via suitable HTML, the compiled version of the following Java code is presented to the appletviewer application: import...
-
In Exercises 8194, begin by graphing the absolute value function, f(x) = |x| . Then use transformations of this graph to graph the given function. h(x) = x +31-2
-
Suppose that in a certain chemical process the reaction time y (hr) is related to the temperature (F) in the chamber in which the reaction takes place according to the simple linear regression model...
-
Besides the external recruitment sources described here, what other sources would you recommend for Boeing? Why?
-
Chicago Prime Packers Inc. was a US corporation with its principal place of business in Colorado. Northam Food Trading Company was a Canadian corporation with its principal place of business in...
-
BAK Corp. is considering purchasing one of two new diagnostic machines. Either machine would make it possible for the company to bid on jobs that it currently isnt equipped to do. Estimates regarding...
-
Scenario 11:Accountant 11 is a senior accountant. She says: I recommended a wonderful coffee serviceto my audit client, I received a commission from the coffee service company, can I take...
-
Poindexter claims that the real cheating occurs when we increase power by increasing the likelihood that results will be significant. He reasons that if we are more likely to reject H 0 , then we are...
-
As each group of a group of business people arrives at a meeting, each shakes hands with all the other people present. Use mathematical induction to show that if n people come to the meeting then...
-
What problems may be encountered in making a comparative study of remuneration reports?
-
How should a researcher approach comparative study of narrative reports within one country where some listed companies have dual listing on another national exchange?
-
Discuss the ways in which MNCs may shift profit, including by transfer pricing.
-
Lynn agrees to lend Boris $10,000, which Boris will repay with interest in one year. They agree to a nominal interest rate of 8%, reflecting a real interest rate of 3% on the loan and a commonly...
-
How do surveys help as a source of information on CSR reporting?
-
(1) Parametrize the directed parabolic segment, I, y = x that joins 2 + 4i to -1- i and evaluate Real(z) dz. (2) Let a > 0 be a real number and consider the rectangle R whose vertices are +a+4i...
-
Which one of the following anhydrous chloride is not obtained on direct heating of its hydrated chloride? (A) BaCl2 (B) CaClz (C) MgCl2 (D) SrCl2
-
You need to delete the Order Line table from the TAL Distributors database. Will the following command work? Why or why not?
-
How can splitting a table improve performance?
-
What is generalization?
-
Deficits and fiscal consolidation As seen in the following table, the 2008 financial crisis left the United States with an enormous federal budget deficit in 2009. There was a substantial fiscal...
-
Which (if any) of the following statements about Pvalues is CORRECT? A. The Pvalue from a hypothesis test is the probability of obtaining your results, or more extreme results. B. The Pvalue from a...
-
Which (if any) of the following statements about the Type I error is CORRECT? A. The Type I error is the probability of rejecting the null hypothesis when it is true. B. The Type I error is the...
Study smarter with the SolutionInn App