Archive for September 29th, 2008
Getting backup file information before restoring
Some time we way find a situtation where we need to get the information about the backup file or device before restoring that backup for example we may want the file it is containing or the media information for that purpose we can use the following command
To get the information regarding the file it contains
Restore FilelistOnly From Disk = N'C:\Sample.Bak'
This will return the information about the file which is there in the backup and if you want to see the labels only then you can use
Restore LabelOnly From Disk = N'C:\Sample.Bak'
Other useful arguments can be REWINDONLY and VERFIYONLY. For more details on this visit MSDN