Solved

CAnnot restore my DB

Posted on 2004-09-01
9
501 Views
Last Modified: 2008-01-09
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
0
Comment
Question by:romeonyc77
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 6
  • 3
9 Comments
 

Author Comment

by:romeonyc77
ID: 11952348
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.
0
 
LVL 10

Expert Comment

by:imrancs
ID: 11952357
Restore DB dialog > Options Tab

Check the "Force restore over the exiting database"

Imran
0
 
LVL 10

Expert Comment

by:imrancs
ID: 11952371
if you have backup of database then trying to delete database first and then Restore.
0
Free Webinar: AWS Backup & DR

Join our upcoming webinar with experts from AWS, CloudBerry Lab, and the Town of Edgartown IT to discuss best practices for simplifying online backup management and cutting costs.

 

Author Comment

by:romeonyc77
ID: 11952628
From enterprise manager, i would need to create it first correct? then restore it?
0
 
LVL 10

Expert Comment

by:imrancs
ID: 11952673
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.
0
 
LVL 10

Expert Comment

by:imrancs
ID: 11952682
and press OK
0
 

Author Comment

by:romeonyc77
ID: 11952694
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?
0
 
LVL 10

Accepted Solution

by:
imrancs earned 50 total points
ID: 11952968
select the "From Device" option button
Press the [Select Devices...] button
Press the [Add...] button  and brows for backup file
and then press OK and OK :o)


Imran
0
 
LVL 10

Expert Comment

by:imrancs
ID: 11960523
Glade if I could help.


Imran
0

Featured Post

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Nowadays, some of developer are too much worried about data. Who is using data, who is updating it etc. etc. Because, data is more costlier in term of money and information. So security of data is focusing concern in days. Lets' understand the Au…
In this article we will learn how to fix  “Cannot install SQL Server 2014 Service Pack 2: Unable to install windows installer msi file” error ?
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
Via a live example, show how to setup several different housekeeping processes for a SQL Server.

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question