",has,not,been,backed,up"" /> Restore always causes "The tail of the log for the database "<DATABASENAME>" has not been backed up" - Problems and solutions to issues related to Software : Business, Database, Firewalls, Office, Graphics, Security, System, Server.

Question : Restore always causes "The tail of the log for the database "<DATABASENAME>" has not been backed up"

I have a local development database, running on SQL Server 2005. I back up and restore to/from local .bak files while developing a website against it.

The thing is, for quite a long time now, EVERY time I try to perform a restore (using SSMS), I get following error:

Restore failed for Server '<SERVERNAME>'.  (Microsoft.SqlServer.Smo)

System.Data.SqlClient.SqlError: The tail of the log for the database "<DATABASENAME>" has not been backed up. Use BACKUP LOG WITH NORECOVERY to backup the log if it contains work you do not want to lose. Use the WITH REPLACE or WITH STOPAT clause of the RESTORE statement to just overwrite the contents of the log. (Microsoft.SqlServer.Smo)


In the Restore dialog box, if I go to the Options page, and then select "Overwrite the existing database", I can force the restore. However, even if I create a new backup file afterward, when I subsequently perform a Restore with the new .bak file, I get the "Tail" error again!

Can anybody explain what this error means, and how to resolve it?

P.S. I reviewed the solution in the related posting, but couldn't follow along with it. I suspect this is because I rely mostly on SSMS, and am not as familiar w/ using T-SQL to perform the BACKUP / RESTORE operations.

Answer : Restore always causes "The tail of the log for the database "<DATABASENAME>" has not been backed up"

From http://www.pchell.com/support/desktopwallpaper.shtml

Sometimes a piece of spyware or adware can change your wallpaper background and won't let you change it back. Generally if you go into the Display Settings and Click on the Desktop tab, the options for changing the background will be disabled or greyed out.  Removing the following entry from the registry usually fixes this problem.

1) Click on Start, Run
2) Type REGEDIT and Press Enter
3) Click the plus signs(+) next to the following sections of the registry

    * HKEY_CURRENT_USER
    * Software
    * Microsoft
    * Windows
    * CurrentVersion
    * Policies
    * System

4) Look for the WALLPAPER key on the right hand side
5) Right-click and Delete this entry
6) Close the Registry Editor

Now try to change the desktop background. In most cases this will solve the problem.
Random Solutions  
 
programming4us programming4us