Skip to content
View darrenmaginnis's full-sized avatar
Block or Report

Block or report darrenmaginnis

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Please don't include any personal information such as legal names or email addresses. Maximum 100 characters, markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse

Pinned

  1. Deadlock retry logic Deadlock retry logic
    1
    DECLARE @Retry INT;
    2
    SET @Retry = 3;
    3
    
                  
    4
    SET DEADLOCK_PRIORITY LOW;
    5
    WHILE (@Retry > 0)
  2. DROP all user created Stored Procedu... DROP all user created Stored Procedures, Functions, User Types, and Views
    1
    -- Stored Procedures
    2
    PRINT 'Dropping Stored Procedures'
    3
    DECLARE @sqlDropProcedure NVARCHAR(MAX) = N'';
    4
    SELECT  @sqlDropProcedure += 'DROP PROCEDURE [' + OBJECT_SCHEMA_NAME(object_id) + '].[' + name + ']; ' 
    5
    FROM sys.procedures