Link to home
Start Free TrialLog in
Avatar of romeonyc77
romeonyc77

asked on

CAnnot restore my DB

I deleted my transaction log file by accident. Now i cannot restore my db. I had backups but everytime i try to restore it keeps telling me it already exsists. I even tried re-installing the SQL, and its the same thing. Please help
Avatar of romeonyc77
romeonyc77

ASKER

The exact error message i get is this:
Error 5170: Cannot create file <.ldf path>because it already exsists. CREATE DATABASE failed. some file names listed could not be created. Check previous errors.
Avatar of imrancs
Restore DB dialog > Options Tab

Check the "Force restore over the exiting database"

Imran
if you have backup of database then trying to delete database first and then Restore.
From enterprise manager, i would need to create it first correct? then restore it?
no need to create, you can directly restore

Database (rt-click) > All Tasks > Restore Database > Give Name in "Restore as database" and Select the backup file.
and press OK
Check the "Force restore over the exiting database" i dont even see the file to be restored, it was there before, now i dont see it on the list, can i specify where the file is located?
ASKER CERTIFIED SOLUTION
Avatar of imrancs
imrancs
Flag of Pakistan image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Glade if I could help.


Imran