After restoring a SQL Server database, it show a status of “Loading”

Getting the database out of LOADING state

When restoring multiple backups, each backup needs to use the NORECOVERY option to keep the database in a loading state so additional backups can be restored. However, because the database is still in LOADING, you may encounter an unusable transaction log backup, leaving you unable to restore the file. To reset the status of the database, open Query Analyzer and use T-SQL to issue a BACKUP command:

RESTORE DATABASE Northwind WITH RECOVERY

This command resets the status of the “Northwind” database and allows users to access it. No additional restores can be issued after this command is executed.

  • Email, SSL
  • 0 Uživatelům pomohlo
Byla tato odpověď nápomocná?

Related Articles

How is Linux Licensed?

Linus has placed the Linux kernel under the GNU General Public License, which basically means...

Copy MySQL database to another server through shell?

Copying MySQL Databases to another server If you are using MySQL 3.23 or later, you can copy the...

Backing up and restoring a MySQL database from the command line

. Shell into your box as root, then: mysqldump -a -u USERNAME -p DATABASE > FILENAME.mysql...

How does memory overcommit affect PostgreSQL?

In Linux 2.4 and later, the default virtual memory behavior is not optimal for PostgreSQL....