Solved

Database Restore Error

Posted on 2003-11-03
4
1,457 Views
Last Modified: 2008-02-01
Hello,

I am getting the following error:

Microsoft SQL-DMO (ODBC SQL STate: 42000)`

Modify file encountered operating system error 112(error not found) While attempting to expand the physical file.
Could not adjust the space allocation for the file 'Sales_log'
Restore Database is terminating normally

Any ideas as to the cause of this error,
thanks in advance.

0
Comment
Question by:taylorrr
  • 2
4 Comments
 
LVL 22

Expert Comment

by:CJ_S
ID: 9670143
Harddrive full?
0
 

Author Comment

by:taylorrr
ID: 9670329
Hello,

That was my first thought but it seems to have adequate space.
0
 

Accepted Solution

by:
charlotte1 earned 50 total points
ID: 9670648
You can try shrinking your log file:

DBCC SHRINKFILE({ldf file name}, 1)
BACKUP LOG {database name} WITH TRUNCATE_ONLY
DBCC SHRINKFILE({ldf file name}, 1)

and then try restoring again
0
 

Author Comment

by:taylorrr
ID: 9670690
That worked thanks...
0

Featured Post

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the 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 Select - column value lookup. 3 40
Alter table 4 22
Error when loading the database 16 54
SQL FUll Text Not returning any results 2 15
I wrote this interesting script that really help me find jobs or procedures when working in a huge environment. I could I have written it as a Procedure but then I would have to have it on each machine or have a link to a server-related search that …
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…
Via a live example, show how to backup a database, simulate a failure backup the tail of the database transaction log and perform the restore.
Viewers will learn how to use the INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.

932 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

8 Experts available now in Live!

Get 1:1 Help Now