Troubleshooting SQL Server Backup/Restore ProblemsNovember 25, 2002
To check which SQL service pack are you running, see this link:
How can I check what SQL service pack am I running?
To backup a database or transaction log, you should have BACKUP DATABASE
or BACKUP LOG permissions granted to you, or you should be a member of
the sysadmin fixed server role, or of the db_owner or db_backupoperator fixed
database roles.
To restore a database, you should have CREATE DATABASE permissions if the database being restored does not exist. If the database
being restored does exist, you should have RESTORE permissions granted to you, or you should be a member of the sysadmin or dbcreator fixed server roles,
or you need to be the owner (dbo) of the database.
You cannot make a backup of the transaction log if the 'trunc. log on chkpt' option is turned on, because in this case the transaction
log will be truncated on checkpoint and will be empty.
The error 156 indicates that the syntax of a Transact-SQL statement is incorrect. One of the causes for this error may be that the database is in
SQL Server version 6.5 compatibility mode. Because the BACKUP and RESTORE keywords are valid only with SQL Server 7.0 and SQL Server 2000 databases,
you should set the SQL Server compatibility level to 70 or 80.
To disable the read ahead, you can issue DBCC TRACEON (3222) on the same connection on which you attempt the restore operation. This is
a known SQL Server 7.0 bug; SQL Server 2000 does not contain such problems.
The error 3023 indicates that the BACKUP statement cannot be performed at the same time as creating, deleting, or shrinking database files.
So, to resolve this error you should reissue the backup operation after the conflicting operation has finished.
The error 3036 indicates that the database is in the warm-standby state
(set by executing RESTORE WITH STANDBY) and cannot be backed up until
the entire load sequence is completed.
The error 3143 indicates that the backup being restored is a valid
Microsoft Tape Format but is not a SQL Server backup. This error
may arise when the backup may have been written by another software
product. In this case, use RESTORE HEADERONLY to determine the backup
contents.
The error 3154 indicates that you tried to restore database over
an existing database, but the existing database was created by a
different CREATE DATABASE statement than the database in the backup set.
These errors indicate that you have attempted to use a logical device
that is not a backup device.
The error 3249 indicates that the media family spans multiple volumes,
and the backup set to be processed by the restore operation starts on
an earlier volume than the one inserted into the named device.
This error indicates that the backup set is not complete because the
backup operation that created the backup set did not finish successfully.
This error occurs when the file size of the restored database is
2 GB or greater and the database is being restored over an existing
database that is less than 2 GB. This error indicates that SQL Server
cannot correctly check the free space. To bypass checking for free
space, you can issue DBCC TRACEON (3104) on the same connection on
which you are attempting the restore operation.
These errors indicate the server is too busy to perform the backup
or restore operation.
The error 4214 indicates that there is no current database backup.
To restore the database after failure, you should have a full database
backup or a complete set of file backups.
The error 4305 indicates that the restore operation found a gap between
the last restore and the transaction log that you attempted to apply.
So, to resolve this error you should restore transaction logs in the
same order in which they were backed up.
|