sp_whoisactive resulting an unknown query: “Insert

2019-06-21 15:12发布

sp_whoisactive resulting an unknown query:

insert into <table_name> select *,%%bmk%% from <table_name> option (maxdop 1)

I have checked the above code block but did not find this code in any of my procedures. Can anyone please suggest what this query might be doing.

2条回答
狗以群分
2楼-- · 2019-06-21 15:23

sp_whoisactive is not a built in SQL Server procedure.

It is a UPD (Used defined Procedure).

Check the procedures on your database or master / msdb

查看更多
地球回转人心会变
3楼-- · 2019-06-21 15:41

This is a clustered index being rebuilt.

%BMK% is the function that maps the old bookmarks to the new.

There is a document here that discusses the process: https://technet.microsoft.com/en-in/library/cc966402(en-us).aspx

查看更多
登录 后发表回答