Which statement should you execute?

You are a database administrator on an instance of SQL Server 2008. You previously created a plan guide using the following Transact-SQL:
sp_create_plan_guide @name = N’SpecialInvTrxGuide’,@stmt = N’SELECT * FROM Inventory.TrxHistory AS h,Inventory.Product
AS p WHERE h.ProductID = p.ProductID AND TrxCategoryDesc = @CatDesc’,@type = N’OBJECT’,@module_or_batch =
N’Inventory.GetInventoryHistory’,
@params = NULL,@hints = N’OPTION (OPTIMIZE FOR (@CatDesc = N”Material Transaction”))’
You are evaluating the performance effectiveness of the plan guide. You want to disable the SpecialInvTrxGuide plan guide temporarily, but continue to use other plan guides that have been created.
Which statement should you execute?
A. EXEC sp_control_plan_guide N’DISABLE’, N’SpecialInvTrxGuide’
B. EXEC sp_control_plan_guide N’DROP’, N’SpecialInvTrxGuide’
C. ALTER GUIDE SpecialInvTrxGuide DISABLE;
D. sp_create_plan_guide @name = N’SpecialInvTrxGuide’,@stmt = N’SELECT *FROM Inventory.TrxHistory AS h,Inventory.Product
AS p WHERE h.ProductID = p.ProductID AND TrxCategoryDesc = @CatDesc’,@type = N’NULL’,@module_or_batch =
N’Inventory.GetInventoryHistory’,@params = NULL,@hints = N’OPTION (OPTIMIZE FOR (@CatDesc = N”Material Transaction”))’

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.