Solved

Error in Restoring SQL 2000 Backup

Posted on 2006-11-27
6
566 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
Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

 
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

Free eBook: Backup on AWS

Everything you need to know about backup and disaster recovery with AWS, for FREE!

Question has a verified solution.

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

Introduction In my previous article (http://www.experts-exchange.com/Microsoft/Development/MS-SQL-Server/SSIS/A_9150-Loading-XML-Using-SSIS.html) I showed you how the XML Source component can be used to load XML files into a SQL Server database, us…
Slowly Changing Dimension Transformation component in data task flow is very useful for us to manage and control how data changes in SSIS.
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
Via a live example combined with referencing Books Online, show some of the information that can be extracted from the Catalog Views in SQL Server.

718 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