I need to copy the indexes from one table to another. There are a LOT of indexes and I don\'t want to recreate them from scratch. Seems error prone anyways.
I have c
By default the right-click table "CREATE" does not include the indexes or triggers, just the table definition and constraints.
You can right click the database and click "Tasks" -> "Generate Scripts" which will allow you to do this
Edit: this is the default but as TFD mentions it can be changed, thankfully.