SYMPTOMS
If you use a tape drive to perform a BACKUP or a RESTORE operation as a scheduled job, and the tape drive does not have a tape inserted, the connection waits indefinitely for the tape to be loaded.
When you run a
Backup or
Restore command from the SQL Server Query Analyzer, the following error message occurs:
Server: Msg 4027, Level 16, State 1, Line 1
Mount tape for RESTORE HEADERONLY of database ''.
However, the error message is not logged to the Microsoft Windows NT Event Log nor to the SQL Server Error log when you execute the command as a job.
This behavior prevents regularly scheduled transaction backups from taking place and may cause the transaction log to fill up.
This behavior is true for the following types of statements:
- RESTORE HEADERONLY
- RESTORE FILELISTONLY
- BACKUP DATABASE
If you do not add a tape to the drive, the only way to stop the tasks are to kill the tasks in Task Manager.