Skip to content

Commit 8f5b195

Browse files
authored
Update sp_DatabaseRestore.sql
Increase @CommandExecuteCheck size so large database name fits in the command
1 parent c90010e commit 8f5b195

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sp_DatabaseRestore.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ END;
240240

241241
BEGIN TRY
242242
DECLARE @CurrentDatabaseContext AS VARCHAR(128) = (SELECT DB_NAME());
243-
DECLARE @CommandExecuteCheck VARCHAR(315)
243+
DECLARE @CommandExecuteCheck VARCHAR(400);
244244

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

0 commit comments

Comments
 (0)