Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 SQL Server Administration (2005)
 Restore database

Author  Topic 

Khongoroo
Starting Member

2 Posts

Posted - 2011-04-28 : 01:39:24
Hello Everybody,


I want to restore, but showing error. How can i fix it? Help me



Restore failed for Server 'KHONGOROO\SQLEXPRESS'. (Microsoft.SqlServer.SmoExtended)

------------------------------
For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=10.50.1600.1+((KJ_RTM).100402-1540+)&EvtSrc=Microsoft.SqlServer.Management.Smo.ExceptionTemplates.FailedOperationExceptionText&EvtID=Restore+Server&LinkId=20476

------------------------------
Program Location:

at Microsoft.SqlServer.Management.Smo.Restore.SqlRestore(Server srv)
at Microsoft.SqlServer.Management.SqlManagerUI.SqlRestoreDatabaseOptions.RunRestore()

===================================

System.Data.SqlClient.SqlError: The tail of the log for the database "GBIS_GOBI" 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)

------------------------------
For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=10.50.1600.1+((KJ_RTM).100402-1540+)&LinkId=20476

------------------------------
Program Location:



Regards,


Khongoroo

?.?????????

GilaMonster
Master Smack Fu Yak Hacker

4507 Posts

Posted - 2011-04-28 : 02:03:14
Directly from the error message:

quote:
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.


--
Gail Shaw
SQL Server MVP
Go to Top of Page

Mary Joe
Starting Member

2 Posts

Posted - 2011-04-28 : 20:26:37
I agree with gila
unspammed
Go to Top of Page

Jahanzaib
Posting Yak Master

115 Posts

Posted - 2011-04-29 : 14:06:15
Take the Tail Log backup and then restore it



Regards,

Syed Jahanzaib Bin Hassan
MCTS,MCITP,OCA,OCP,OCE,SCJP,IBMCDBA

My Blog
www.aureus-salah.com
Go to Top of Page
   

- Advertisement -