I recently moved a bunch of tables from an existing database into a new database due to the database getting rather large. After doing so I noticed a dramatic decrease in performance of my queries when running against the new database.
The process I took to recreate the new database is this:
- Generate Table CREATE scripts using sql servers automatic script
generator. - Run the create table scripts
- Insert all data into new database using INSERT INTO with a select from the existing database.
- Run all the alter scripts to create the foreign keys and any indexes
Does anyone have any ideas of possible problems with my process, or some key step I'm missing that is causing this performance issue?
Thanks.