Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Undo changes made by SQL Server Database Tuning

I am not sure if this question can be asked here or serverfault. I was wondering...Is there is a way to quickly undo the changes made by SQL Server 2005 Tuning Advsor other than recovering from a backup?

like image 495
Saif Khan Avatar asked Jun 03 '26 04:06

Saif Khan


1 Answers

There is a way as long as you haven't renamed them usually Database Tuning Advisor generated objects are prefixed with _dta

enter image description here

so you can view them by running this query

FOR indexes

SELECT        
*
FROM            
sys.indexes where name like '_dta%'

FROM Stats

SELECT
*
FROM 
sys.stats where name like '_dta%'

And from there I guess you would know what items to drop

like image 146
Raymund Avatar answered Jun 06 '26 03:06

Raymund



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!