Jump to content

Recommended Posts

Posted (edited)

I'm trying to attach a backup of our Sims database but getting the following error every time.

 

http://img38.imageshack.us/img38/548/dbattacherror.jpg

 

The backup was made with DBattach and is called .

 

I've tried making a backup of the blank database, then re-attaching it and I get the same error so it must be something I'm doing wrong :/

 

If I click ignore, the database is copied but It doesnt work when you try to login.

Edited by zag
Posted (edited)

Oh sorry,

 

The error is that it cant find the .ldf file

 

Error image mirror

 

I'm just looking at the dbattach executable, can anyone tell me the latest version? I'm using 1.11.1.0 here. Maybe I'm using an older one?

Edited by zag
Posted

When using Dbattach you do not want to have the sims.mdf and sims.ldf inside the data folder.

 

The attach process will copy these file in itself.

 

They need to be outside this folder somewhere :)

 

Doh people editing their posts make mine look silly now hahaha :D

Posted

Thanks guys, I think it was the /RESTOREUI thing I was missing.

 

In the end I restored it using Management studio, copied the MDF and LDF, removed it from management studio. Then Attached using DBAttach and it worked correctly.

 

It really would be useful if capita wrote a useful error message on dbattach for these situations(people trying to restore the .bak file) but yet again this forum has saved me :)

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...