Below you will find the code for the Auto Tuning Settings of a database. Simply select the text and copy to the Clipboard.
SELECT DB_Name() AS ‘DBName’
, Name AS ‘OptionName’
, Desired_State_Desc AS ‘DesiredStateDesc’
, actual_State_Desc AS ‘ActualStateDesc’
, Reason_Desc AS ‘ReasonDesc’
This code was written using the Microsoft SQL Server documentation. If you find that this code was copied from else where, please let me know so I can give proper credit.