Skip to content

Commit

Permalink
Merge pull request #3606 from maxiwheat/dev
Browse files Browse the repository at this point in the history
Update sp_DatabaseRestore.sql
  • Loading branch information
BrentOzar authored Jan 16, 2025
2 parents c90010e + 8f5b195 commit 3fe6a96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sp_DatabaseRestore.sql
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ END;

BEGIN TRY
DECLARE @CurrentDatabaseContext AS VARCHAR(128) = (SELECT DB_NAME());
DECLARE @CommandExecuteCheck VARCHAR(315)
DECLARE @CommandExecuteCheck VARCHAR(400);

SET @CommandExecuteCheck = 'IF NOT EXISTS (SELECT name FROM ' +@CurrentDatabaseContext+'.sys.objects WHERE type = ''P'' AND name = ''CommandExecute'')
BEGIN
Expand Down

0 comments on commit 3fe6a96

Please sign in to comment.