SQL-Server: What does NOUNLOAD and STATS mean in sql command line when restoring a DB? SQL-Server: What does NOUNLOAD and STATS mean in sql command line when restoring a DB? database database

SQL-Server: What does NOUNLOAD and STATS mean in sql command line when restoring a DB?


Stats = 10 indicates that it will show you in the messages section of SSMS the progress of the restore in increments of 10% e.g.

  • 10% complete
  • 20% complete
  • 30% complete
  • xx% complete.........

Etc..

NOUNLOAD is a tape thing, if you are restoring from tape, specifying this will ensure that the tape is not unloaded from the drive once the restore is complete, if you're not restoring from a tape drive this option is ignored.

Documentation for RESTORE is available here:

TechNet: RESTORE