Importing Indexes from one Server to another

  • Hi All,

    I'm trying to export indexes that I have created on one server to another but I don't seem to find a task that does the job. I can export data for all other Database objects but I don't seem to find a way to export Indexes. Would someone let me know if it is any way possible to achieve this task.

    Thank you

  • take a look at the posts in this discussion; it has a community contribution to script all indexes as CREATE INDEX statementing:

    http://www.sqlservercentral.com/Forums/FindPost1079779.aspx

    as far as the GUI goes, i think you can include indexes if you script the table, but you ar enot able to script indexes all by themselves.

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • Depending on what tools you have available you could do some sorta of Schema Comparison. Visual Studio 2010/08 work well for that sort of thing.

  • Red Gate's SQL Compare will not do this. It looks at the tables, but I'll ask and see if there's an option, or file a bug.

    Disclosure: I work for Red Gate

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

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