diff --git a/BPCheck/Check_BP_Servers.sql b/BPCheck/Check_BP_Servers.sql index fe8b9fb8..7f343e19 100644 --- a/BPCheck/Check_BP_Servers.sql +++ b/BPCheck/Check_BP_Servers.sql @@ -1,9 +1,12 @@ USE [msdb] GO -/* -Replace CREATE PROCEDURE with ALTER PROCEDURE or CREATE OR ALTER PROCEDURE to allow new changes to the SP if the SP is already present. +-- Drop the SP if the SP is already present. +IF OBJECT_ID('dbo.usp_bpcheck') IS NOT NULL + DROP PROCEDURE dbo.usp_bpcheck +GO +/* Usage examples: EXEC usp_bpcheck EXEC usp_bpcheck @allow_xpcmdshell = 0, @ptochecks = 1, @duration = 60