Need to extract the index schema from few dbs and need to apply them to target d

  • Hello,

    Is there any handy script available to extract the index schema from a few dbs and need to apply them to target databases?

    Thanks.

  • To generate such a script, launch SSDT and select Tools/SQL Server/New Schema Comparison.

    Select your source and target databases.

    Go into Settings and select only Indexes.

    Run the comparison and script out the results. I suggest that you run this script in QA first, before risking affecting Production.

    You will have to do this for every source/target database.


  • thanks, Phil. This is a great approach.

    Thanks.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic. Login to reply