Solved

Error in Restoring SQL 2000 Backup

Posted on 2006-11-27
6
560 Views
Last Modified: 2012-08-13
Situation:
SQL 2000 database reporting "(Suspect)" and not available.
Attemtped to restore from backup

Troubleshooting Steps:
Selected database_name and attempted 'Restore Database...'
Defaults directly to the location and most recent backup copy of the database.
Select 'OK' on the Restore Database option

Error Generated:
"Microsoft SQL-DMO (ODBC SQLState: 42000)
Cannot overwrite file 'database_name_1_Log' because it is marked as read-only.
RESTORE DATABASE is terminating abnormally."

I am an inexperienced "dba", any ideas?
0
Comment
Question by:genesissi
  • 3
  • 2
6 Comments
 
LVL 7

Expert Comment

by:whityum
ID: 18022350
check Force restore over existing media and check the log isn't marked read only in the file system.  You can also look at the running processes under server management to see if anything has a lock on the log.
0
 

Author Comment

by:genesissi
ID: 18022669
I had already checked the force restore -> no success and same error message.
I have checked that the log is not marked read-only in the file system -> same error message.

How can I tell of there are running process that have a lock on the log?

Also, I ran a search for the file named: "database_name_1_log" and didn't find anything with this exact name.
Is this an expected result?
0
 

Author Comment

by:genesissi
ID: 18022942
I have found that the mdf/ldf files are not marked as read-only.
I have attempted to set Security to add Everyone with Full-Control as a workaround.
   -> this b/c some of the folders reported as read-only but grayed out.
If it is a permission issue, any other ideas I may have overlooked?
0
Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

 
LVL 9

Expert Comment

by:dduser
ID: 18025807
Hi Genesissi,

database_name_1_log is the Virtual Name of the Log Files, actual name would be different the same you can find when you right click on the database --> Go in Properties --> Transaction File Log (Location)

Regards,

dduser
0
 
LVL 9

Accepted Solution

by:
dduser earned 500 total points
ID: 18025917
0
 

Author Comment

by:genesissi
ID: 18030736
That solution worked, thanks.
0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Having an SQL database can be a big investment for a small company. Hardware, setup and of course, the price of software all add up to a big bill that some companies may not be able to absorb.  Luckily, there is a free version SQL Express, but does …
Introduction SQL Server Integration Services can read XML files, that’s known by every BI developer.  (If you didn’t, don’t worry, I’m aiming this article at newcomers as well.) But how far can you go?  When does the XML Source component become …
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
Using examples as well as descriptions, and references to Books Online, show the documentation available for datatypes, explain the available data types and show how data can be passed into and out of variables.

776 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