Quantcast
Channel: SQL Server Manageability forum
Viewing all articles
Browse latest Browse all 1519

PowerShell - restore with Norecovery

$
0
0

Hi, I'm trying to restore all backups from a folder. it worked fine but I need to restore with NORECOVERY, Please review my command and give me a solution for this.

Restore-SqlDatabase -ServerInstance $server -Database $databaseName -BackupFile $backupFile.FullName -RelocateFile @($RelocateData,$RelocateLog) -ReplaceDatabase


Viewing all articles
Browse latest Browse all 1519


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>