Solved

Database Restore Error

Posted on 2003-11-03
4
1,456 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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Join & Write a Comment

In this article—a derivative of my DaytaBase.org blog post (http://daytabase.org/2011/06/18/what-week-is-it/)—I will explore a few different perspectives on which week today's date falls within using Microsoft SQL Server. First, to frame this stu…
Slowly Changing Dimension Transformation component in data task flow is very useful for us to manage and control how data changes in SSIS.
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
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.

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

14 Experts available now in Live!

Get 1:1 Help Now