Solved

Error in Restoring SQL 2000 Backup

Posted on 2006-11-27
6
557 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
Zoho SalesIQ

Hassle-free live chat software re-imagined for business growth. 2 users, always free.

 
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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Performance is the key factor for any successful data integration project, knowing the type of transformation that you’re using is the first step on optimizing the SSIS flow performance, by utilizing the correct transformation or the design alternat…
Let's review the features of new SQL Server 2012 (Denali CTP3). It listed as below: PERCENT_RANK(): PERCENT_RANK() function will returns the percentage value of rank of the values among its group. PERCENT_RANK() function value always in be…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
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

744 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now