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
 General SQL Server Forums
 New to SQL Server Programming
 Restoring .bak in Studio Express, got an error....

Author  Topic 

BlackReefDesigns
Starting Member

27 Posts

Posted - 2009-01-07 : 16:06:40
This is the first time I have ever tried to restore a SQL database. I am getting this error:


TITLE: Microsoft SQL Server Management Studio Express
------------------------------

Restore failed for Server 'ADDAX\SQLEXPRESS'. (Microsoft.SqlServer.Express.Smo)

For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=9.00.3042.00&EvtSrc=Microsoft.SqlServer.Management.Smo.ExceptionTemplates.FailedOperationExceptionText&EvtID=Restore+Server&LinkId=20476

------------------------------
ADDITIONAL INFORMATION:

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

For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=9.00.3042.00&LinkId=20476

BlackReefDesigns
Starting Member

27 Posts

Posted - 2009-01-07 : 16:08:34
Note the links have no information, please help!

Thank you
Go to Top of Page

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2009-01-07 : 16:08:43
Did you try the suggestion made in the error message?



E 12°55'05.63"
N 56°04'39.26"
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2009-01-07 : 16:11:13
In the GUI screen, ensure that you are only restoring the full backup and not the transaction log backups. Also ensure that you are specify "with recovery" as there are no logs to apply.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2009-01-07 : 16:11:58
Peter, it's continued from this thread: http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=117311

So the backup file is from his old hosting company.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2009-01-07 : 16:15:45
Oh! Thanks.



E 12°55'05.63"
N 56°04'39.26"
Go to Top of Page

BlackReefDesigns
Starting Member

27 Posts

Posted - 2009-01-07 : 16:32:36
Tara- Thank you for help.

I think Im a bit confused on the GUI screen? I barely started using SQL 2005 client so Im new to it. Basically all I am doing is running server management express inside of my Remote Desktop, and right-clicking on my database and selecting restore, then finding the backup file and using that.

Could you direct me on how to get to the GUI screen?

Thanks so much for the help...
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2009-01-07 : 16:49:37
That's exactly what I mean by the GUI screen: Management Studio, restore wizard. We call it the GUI because it is a graphical user interface as compared to the command line version (sqlcmd.exe) or as even compared to running commands in a new query window.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

BlackReefDesigns
Starting Member

27 Posts

Posted - 2009-01-07 : 17:03:31
Oh, I see.

Could you let me know real quick where I can make sure I am only restoring the full backup and not the transaction logs?

Thank you Tara
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2009-01-07 : 17:33:46
I don't have SQL Express installed, so I'm not sure if Management Studio Express looks the same as Management Studio from the other editions. In my client tool, here are the steps:

Right click, restore database, specify the database name, select device, navigate to the file, go back to original restore screen, check the box on the backup set to restore, and then options page should have the "WITH RECOVERY" one selected (which should be the default anyway). The key is to not specify a point in time recovery.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

BlackReefDesigns
Starting Member

27 Posts

Posted - 2009-01-07 : 17:41:55
EDIT: I do see the Options screen, and the RESTORE WITH RECOVERY is checked?


BTW, here is a Screen Capture of the screen I am on right now:


http://www.blackreefdesigns.com/misc/gui1.gif
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2009-01-07 : 17:44:42
You've got it checked, so you are good. It looks correct to me. Can you do a screen shot of the Options page?

By the way, the screens look identical in my client tool. I just wasn't sure since I've never touched Express before. We use Enterprise Edition here.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

BlackReefDesigns
Starting Member

27 Posts

Posted - 2009-01-07 : 17:48:46
http://www.blackreefdesigns.com/misc/gui2.gif
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2009-01-07 : 17:52:01
Since the addax database already exists, you'll need to check the box for the "Overwrite the existing database" option.

Everything else looks good. Just ensure that the paths in the Restore As fields are correct on your machine. If they don't exist, then you'll either need to create them or move the files to a path that does exist.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

BlackReefDesigns
Starting Member

27 Posts

Posted - 2009-01-07 : 17:58:14
wow! it actually restored! this is amazing! thank you so much tara, your a lifesaver. Ive been working on restoring this database for over a week now (I wasted ALOT of time trying to do it through my Plesk Control Panel interface, haha)

Now I need to figure out why the site is running so slow and I am getting Database errors? (adxtactical.net) Hopefully the virtual server tech support can figure that out.

Thank you again Tara!!!!!!!!!!!
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2009-01-07 : 17:59:32
You're welcome. I'm glad we worked it out.



Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page
   

- Advertisement -