I have run a server-side profile trace for over an hour to produce a .trc file with all activities in one of my databases.
I have then passed this .trc trace file as a parameter to the database engine tuning advisor.
After running the DTA I get the recommendations:
How do I script out the recommendations?
I am using SQL Server 2005, and I don't seem to find any other way than scripting them individually which is overly time consuming.
Best Answer
Check the View Tuning Output:
As always review and test the recommendations before blindly applying them to your PROD environment.
I would highly suggest to look at more sane tools like sp_BlitzIndex from folks at BrentOzar.com