This is just a rework of an existing procedure. We run it directly from the SQL Agent job, no need to add parameters or anything.
Scripting CREATE INDEX Statements Automatically From Your Tables
Stored proc for scripting out full CREATE INDEX statements from your table indexes with all filegroup, filter and WITH parameters.
2012-11-27 (first published: 2012-10-18)
2,220 reads