I converted an old sql server database from 2000 to 2005 and forgetten to add old indexes to the new db.
is there any way to copy the old indexes to the new db?
any help?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You cannot copy indexes from one location to the other. They have to be built at the new location.
You can script out all your indexes in the old database, and take them over to the new one.
Right click on the database and under tasks, choose Generate Scripts. Mark the checkbox for
all objectsand then in the options, choose to script indexes. Run this script on the new database (it will take a while depending on the size of the tables.