This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --===================================================== | |
| -- Author: Jared Dobson | |
| -- Date: 12/22/2010 | |
| -- Description: Shows Execution Plan for a given spid. | |
| --===================================================== | |
| CREATE PROCEDURE sp_queryplan ( @SessionID INT ) | |
| AS | |
| BEGIN | |
| SELECT | |
| [DEQP].[query_plan], |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| CREATE PROCEDURE [dbo].[EnableAllTriggers] | |
| AS | |
| DECLARE @string VARCHAR(8000) | |
| DECLARE @tableName NVARCHAR(500) | |
| DECLARE cur CURSOR |
NewerOlder