Skip to content

Commit 8210ca3

Browse files
committed
Added a new line
Added a new line to make the command output consistent.
1 parent 1078b9e commit 8210ca3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sp_DatabaseRestore.sql

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ EXEC dbo.sp_DatabaseRestore
3636
@ContinueLogs = 0,
3737
@RunRecovery = 1;
3838
39+
--
3940
EXEC dbo.sp_DatabaseRestore
4041
@Database = 'LogShipMe',
4142
@BackupPathFull = '\\StorageServer\LogShipMe\FULL\',
@@ -243,7 +244,7 @@ WHERE BackupFile LIKE '%.bak'
243244

244245
IF @RestoreDiff = 1 AND @BackupDateTime < RIGHT(@LastDiffBackup, 19)
245246
BEGIN
246-
SET @sql = 'RESTORE DATABASE '+@RestoreDatabaseName+' FROM DISK = '''+@BackupPathDiff + @LastDiffBackup+ ''' WITH NORECOVERY';
247+
SET @sql = 'RESTORE DATABASE '+@RestoreDatabaseName+' FROM DISK = '''+@BackupPathDiff + @LastDiffBackup+ ''' WITH NORECOVERY'+CHAR(13);
247248
PRINT @sql;
248249
IF @Debug = 0
249250
EXECUTE @sql = [dbo].[CommandExecute] @Command = @sql, @CommandType = 'RESTORE DATABASE', @Mode = 1, @DatabaseName = @Database, @LogToTable = 'Y', @Execute = 'Y';

0 commit comments

Comments
 (0)