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.

    The absence of evidence is not evidence of absence.
    Martin Rees

    You can lead a horse to water, but a pencil must be lead.
    Stan Laurel

  • This was removed by the editor as SPAM

  • This was removed by the editor as SPAM

  • thanks, Phil. This is a great approach.

    Thanks.

Viewing 5 posts - 1 through 4 (of 4 total)

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