Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions BPCheck/Check_BP_Servers.sql
Original file line number Diff line number Diff line change
@@ -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
Expand Down