You are on page 1of 2

Deadlock Assignment

Instructions
Complete the queries below using your Azure Labs VM and the AdventureWork2014 database. Submit this completed file on Blackboard by the due date.
Any questions regarding the assignment should be directed to your professor and not your classmates. This is an individual assignment and should be completed
individually by you without outside assistance. UT’s Academic integrity policy applies to this assignment, and I reserve the right to ask you to explain your
normalization process and your model to me before assigning a grade.

Assignment
A. Provide your SQL query and the time of execution below.
Question Execution time Your SQL Query
A1) You are working on a search capability for the
Production Transaction History
(Production.TransactionHistory). There are over 110,000
rows. You think that adding an index for the Transaction
Type would improve the search performance.
Write a SQL statement to add a new index index for the
Transaction Type from the Production Transaction
History table.
A2) After testing, it is determined that the index does not
improve the search performance.
Write a SQL statement to remove the index for the
Transaction Type from the Production Transaction
History table.

B. Create a Deadlock
Using the examples provided and practiced in class, create two transactions that would cause a deadlock. You will need to use at least two tables. Your
submitted queries cannot be identical to the ones showed in class.
B.1 Place the SQL Queries and Messages below.
Query Window #1 Query Window #2
Deadlock Assignment
SQL

Message
Received

B.2 Copy the Deadlock Graphical Representation from these transactions below.

You might also like