Solved

CAnnot restore my DB

Posted on 2004-09-01
9
488 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
  • 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
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 

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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
SSRS Enable Remote Errors 4 27
Rename a column in the output 3 16
optimize stored proc 14 25
Sql query with where clause 2 18
Why is this different from all of the other step by step guides?  Because I make a living as a DBA and not as a writer and I lived through this experience. Defining the name: When I talk to people they say different names on this subject stuff l…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Using examples as well as descriptions, and references to Books Online, show the different Recovery Models available in SQL Server and explain, as well as show how full, differential and transaction log backups are performed
Viewers will learn how the fundamental information of how to create a table.

825 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