MS SQL Index Scripting
Posted
by Fouad Masoud
on Stack Overflow
See other posts from Stack Overflow
or by Fouad Masoud
Published on 2010-05-07T19:23:09Z
Indexed on
2010/05/07
19:28 UTC
Read the original article
Hit count: 438
I'm using MS SQL 2008.
Is it possible to create a script to loop over all tables in a database generating a set of index drop scripts and create scripts separately?
What I have to do is drop all indexes on a set of databases to run a heavy data load process but then I want to re-enable all the indexes. I don't want to have to go through each table and script an index drop and then index create.
Thanks!
© Stack Overflow or respective owner