SQL Server emergency? Email pinal@sqlauthority.com with URGENT in the subject line.

MSQL_XP Wait Stats: Extended Procedures and External Code

MSQL_XP wait stats measure the time a query waits while an extended stored procedure such as xp_cmdshell or xp_dirtree runs. On Night 20 at the Clipboard Diner, an outside caterer takes over one station behind a curtain. Then two queries show you which session is waiting and which procedure it called, and the fixes move that work outside SQL Server.

Continue Reading