You need to ensure that throughout the transaction the data maintains the original version
You are developing a database application by using Microsoft SQL Server 2012.
An application that uses a database begins to run slowly.
You discover that during reads, the transaction experiences blocking from concurrent updates.
You need to ensure that throughout the transaction the data maintains the original version.
What should you do?
Which Transact-SQL statement should you use?
You use Microsoft SQL Server 2012 to develop a database application.
You create a stored procedure named dbo.ModifyData that can modify rows.
You need to ensure that when the transaction fails, dbo.ModifyData meets the following
requirements:
Does not return an error
Closes all opened transactions
Which Transact-SQL statement should you use?
You need to capture execution plans that will include detailed information on missing indexes recommended by t
You are developing a database application by using Microsoft SQL Server 2012.
You have a query that runs slower than expected.
You need to capture execution plans that will include detailed information on missing indexes
recommended by the query optimizer.
What should you do?
You need to reduce procedure cache usage from these statements without creating any additional indexes
You are developing a database application by using Microsoft SQL Server 2012.
An application that uses a database begins to run slowly.
You discover that a large amount of memory is consumed by single-use dynamic queries.
You need to reduce procedure cache usage from these statements without creating any additional
indexes.
What should you do?
Which SELECT statement should you use?
CORRECT TEXT
You have a database that contains the tables as shown below:
You have a stored procedure named Procedure1. Procedure1 retrieves all order ids after a specific
date. The rows for Procedure1 are not sorted. Procedure1 has a single parameter named
Parameter1. Parameter1 uses the varchar type and is configured to pass the specific date to
Procedure1. A database administrator discovers that OrderDate is not being compared correctly to
Parameter1 after the data type of the column is changed to datetime. You need to update the
SELECT statement to meet the following requirements:
The code must NOT use aliases.
The code must NOT use object delimiters.
The objects called in Procedure1 must be able to be resolved by all users.
OrderDate must be compared to Parameter1 after the data type of Parameter1 is changed to
datetime.
Which SELECT statement should you use?
To answer, type the correct code in the answer area.
Which Transact-SQL operator should you use?
You use Microsoft SQL Server 2012 database to develop a shopping cart application.
You need to invoke a table-valued function for each row returned by a query.
Which Transact-SQL operator should you use?
You need to create a view named uv_CustomerFullNames
Which four Transact-SQL statements should you use?
DRAG DROP
You want to add a new GUID column named BookGUID to a table named dbo.Book that already
contains data.
BookGUID will have a constraint to ensure that it always has a value when new rows are inserted
into dbo.Book.
You need to ensure that the new column is assigned a GUID for existing rows.
Which four Transact-SQL statements should you use? (To answer, move the appropriate SQL
statements from the list of statements to the answer area and arrange them in the correct order.)
Which four Transact-SQL statements should you use?
DRAG DROP
You administer a Microsoft SQL Server 2012 database. You use an OrderDetail table that has the
following definition:
You need to create a non-clustered index on the SalesOrderID column in the OrderDetail table to
include only rows that contain a value in the SpecialOfferID column. Which four Transact-SQL
statements should you use?
(To answer, move the appropriate statements from the list of statements to the answer area and
arrange them in the correct order.)
Which four T-SQL statements should you use?
DRAG DROP
You use a Microsoft SQL Server 2012 database.
You need to create an indexed view within the database for a report that displays Customer Name
and the total revenue for that customer.
Which four T-SQL statements should you use? (To answer, move the appropriate SQL statements
from the list of statements to the answer area and arrange them in the correct order.)