Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Restore seems to have stopped?

Status
Not open for further replies.

croydon

Programmer
Apr 30, 2002
253
EU
I have been trying to use the SQL Server 2005 Restore function to install a copy of a database on to my PC. The .bak file is 29MB and when the Restore started, it quite quickly reached 50%.

The dat and log files appear to have been built as they have stopped growing, but the function has remained at 50% for the last two hours.

Has anybody else seen this problem?
 
Do you have access to the original database? How much free space did the database have in the data and log files? A restore has to 'claim' that free space in addition to the space actually used by data. Maybe you ran out of space.

-SQLBill

Posting advice: FAQ481-4875
 
I actually needed the database in order to work from home. My PC has 7GB free. I will check on the size of the original database tomorrow.
 
When you use Enterprise Manager, right click on the database. In the right pane, you will see two bars showing the size of the data and the log files. That is the size of the files and will include empty space that is allocated to the file. SQL Server backs up that space also.

You can also run sp_spaceused on the database and it will show you how much space the files are taking up.

-SQLBill

Posting advice: FAQ481-4875
 
SQLBill, I checked the database size and that was not a problem. I also tried the Restore on another PC and received a similar message.

Instead I created a Backup Device and made a Back Up to this, then copied the Backup file to the PC. I then ran the Restore. For some reason (I don't understand why) this worked and I now have a copy of the database on my PC.

Thanks for your help.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top