I've recently been assigned the task of updating a "legacy" database (previously managed by an ex-coworker who left the company a while ago). The new database has the exact same structure as the previous one; the only difference is in the content itself, as this database now has more recent data.
The problem is that the old database has a lot of indexes and statistics that I also have to implement in the newer database and I'm afraid the database creation scripts were lost somewhere along the highway.
Hence, how can I (preferably using transact SQL) recreate the old indexes on the new database?
Cheers guys