Do I need to recreate statistics if I had to drop them to add a foreign key

Posted by Adam J.R. Erickson on Server Fault See other posts from Server Fault or by Adam J.R. Erickson
Published on 2010-05-14T15:53:23Z Indexed on 2010/05/14 16:04 UTC
Read the original article Hit count: 288

I have a database which had all it's foreign-key relationships dropped at some unknown time in the past (don't ask). I have an old copy of the database which isn't good to restore from, but the schema has the relationships. I'm working from that to create a script to restore the keys.

In updating the tables, I've had to drop statistics from several tables. Do I need to manually recreate those, or can I just run the statistics update procedure when all the tables are updated?

© Server Fault or respective owner

Related posts about sql-server

Related posts about database