Solved

Error in Restoring SQL 2000 Backup

Posted on 2006-11-27
6
564 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
[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
  • 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
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
SQL Add Parameter in Variable 4 21
how to make geography query faster?  SQL 7 45
Connect Gridview column to Textbox in C# 2 41
Sql server Error message 3 16
For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
I have a large data set and a SSIS package. How can I load this file in multi threading?
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.
Viewers will learn how to use the SELECT statement in SQL to return specific rows and columns, with various degrees of sorting and limits in place.

749 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