找到了
http://www.sqldbadiaries.com/2010/09/06/select-bmk-from-tablename-while-rebuilding-the-index/
insert [DatabaseName].[dbo].[TheActualTableName] select *, %%bmk%% from [DatabaseName].[dbo].[TheActualTableName]
Even though this whitepaper talks about Online Reindex, it talks about how an Index is rebuilt in general. During the Build Phase of rebuilding the index, the new index is built by Bulk Inserting data from the old index. During the bulk insertion, the above
insert statement is issued. Since the table in question was 50 GB in size and the disk subsystem was slow, this query ran for a long time and it was captured by Idera Diagnostic Manager.
sqlserver使用bulkt insert将表数据导出,然后导入到新索引里面,一般只出现在,with online=ON的情况下
Love SQL