Comments
1 comment
-
Thanks to the following I've resolved it :
https://forum.red-gate.com/discussion/2824/using-variables-with-restore-command
The correct syntax is :
SET @TSQLArgs = '-SQL "RESTORE LOG [workdb] FROM DISK = ''' + @LogFileToRestore + ''' WITH RECOVERY"';
Add comment
Please sign in to leave a comment.
If I pass the full path without the variable the restore works fine. The screen shot shows the variable's contents which matches the full path. Could anyone offer the correct syntax to try please. I'm assuming SQL Backup Pro allows the passing of variables into a restore.