PrepAway - Latest Free Exam Questions & Answers

Author: seenagape

You need to reduce procedure cache usage from these sta…

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 Transact-SQL query should you use?

Your database contains a table named SalesOrders. The table includes a DATETIME column
named OrderTime that stores the date and time each order is placed. There is a non-clustered
index on the OrderTime column. The business team wants a report that displays the total number
of orders placed on the current day. You need to write a query that will return the correct results in
the most efficient manner. Which Transact-SQL query should you use?


Page 660 of 6,830« First...102030...658659660661662...670680690...Last »