I have been doing some index tuning on a database for a application that is an upgraded version of an application that we are using currently. The database that I'm tuning is currently in Development and will be going into Production soon. I recently found out that in order to upgrade the application into Production I'm going to have to restore the old database over the upgraded database (basically get all of the current data from the old system) then run a series of scripts to get the database in its upgraded form( add all the tables, views, etc.. that don't exist in the old version of this application).
Problem is all of the indexes that I have added in order to tune the application are not in the series of scripts that I will have to run. Since I didn't document all of the indexes I added, I have no way of knowing which indexes to re-create. I don't want to go in and script out every table in the Development environment to capture all of the indexes.
Do you all know a way that I could get all of the script that creates the indexes? (Something similar to syscomments table that stores the code that creates the views, stored procs, etc...) I'm also open for other suggestions. I just don't want to go through every table and script out the table to get the code for the indexes
Problem is all of the indexes that I have added in order to tune the application are not in the series of scripts that I will have to run. Since I didn't document all of the indexes I added, I have no way of knowing which indexes to re-create. I don't want to go in and script out every table in the Development environment to capture all of the indexes.
Do you all know a way that I could get all of the script that creates the indexes? (Something similar to syscomments table that stores the code that creates the views, stored procs, etc...) I'm also open for other suggestions. I just don't want to go through every table and script out the table to get the code for the indexes