Viewing post 1 (of 1 total)
I'd suggest changing the order by on the last select to
order by ISCLUSTERED desc, tablename, indexid, indexname
This will insure the clustered indexes are created first, which you'll want to...
April 22, 2011 at 12:07 pm
#1314973