Which Transact-SQL statement should you use?

You discover that the msdb database on a SQL Server 2005 computer is corrupt and must be restored. Databases are backed up daily. The database backup files are written to a network share, but the file names do not clearly indicate which databases are in each file. You need to
locate the correct backup file as quickly as possible. The first file in the list is named DB_Backup.bak.

Which Transact-SQL statement should you use?

You discover that the msdb database on a SQL Server 2005 computer is corrupt and must be restored. Databases are backed up daily. The database backup files are written to a network share, but the file names do not clearly indicate which databases are in each file. You need to
locate the correct backup file as quickly as possible. The first file in the list is named DB_Backup.bak.

Which Transact-SQL statement should you use?

A.
RESTORE LABELONLYFROM DISK = NServer1BackupDB_Backup.bak

B.
RESTORE HEADERONLYFROM DISK = NServer1BackupDB_Backup.bak

C.
RESTORE VERIFYONLYFROM DISK = NServer1BackupDB_Backup.bak

D.
RESTORE DATABASE MSDBFROM DISK = NServer1BackupDB_Backup.bak



Leave a Reply 0

Your email address will not be published. Required fields are marked *