What is the result?

You have the following Transact-SQL code:
DECLARE @t int;
SET @t = 9
SELECT * From SalesHeader
WHERE TerritoryID = @tOPTION (OPTIMIZE FOR (@t=7);
What is the result?
A. The optimizer optimizes the query using parameter sniffing.
B. The optimizer uses a parameter value of 7 when optimizing the query.
C. The optimizer uses a parameter value of 9 when optimizing the query.
D. An error occurs because different values were specified for @t

microsoft-exams

Leave a Reply

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.