>>>In this case right click on the Database /Tasks/ Generate Scripts and then follow the Wizard.
>Make sure to go to advanced options and set every option according to your needs.
>
>Thanks, Naomi.
>I found some useful things there, but I don't see how I can just script the indexes.
It does not let you script just the indexes.
Take a look here
http://www.sqlservercentral.com/scripts/Indexing/31652/
If it's not broken, fix it until it is.
My Blog