You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-- Restore from stripped backup set when multiple paths are used. This example will restore stripped full backup set along with stripped transactional logs set from multiple backup paths
162
173
EXEC dbo.sp_DatabaseRestore
163
174
@Database = ''DBA'',
@@ -500,6 +511,13 @@ BEGIN
500
511
END
501
512
END
502
513
514
+
--File Extension cleanup
515
+
IF @FileExtensionDiff LIKE'%.%'
516
+
BEGIN
517
+
IF @Execute ='Y'OR @Debug =1RAISERROR('Removing "." from @FileExtensionDiff', 0, 1) WITHNOWAIT;
518
+
SET @FileExtensionDiff =REPLACE(@FileExtensionDiff,'.','');
519
+
END
520
+
503
521
SET @RestoreDatabaseID =DB_ID(@RestoreDatabaseName);
504
522
SET @RestoreDatabaseName =QUOTENAME(@RestoreDatabaseName);
505
523
SET @UnquotedRestoreDatabaseName =PARSENAME(@RestoreDatabaseName,1);
0 commit comments