Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

CAnnot restore my DB

Posted on 2004-09-01
9
Medium Priority
?
520 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
NFR key for Veeam Agent for Linux

Veeam is happy to provide a free NFR license for one year.  It allows for the non‑production use and valid for five workstations and two servers. Veeam Agent for Linux is a simple backup tool for your Linux installations, both on‑premises and in the public cloud.

 

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 200 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

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

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

For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
A Stored Procedure in Microsoft SQL Server is a powerful feature that it can be used to execute the Data Manipulation Language (DML) or Data Definition Language (DDL). Depending on business requirements, a single Stored Procedure can return differe…
Via a live example, show how to extract information from SQL Server on Database, Connection and Server properties
Via a live example, show how to extract insert data into a SQL Server database table using the Import/Export option and Bulk Insert.

618 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