Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 Other SQL Server Topics (2005)
 Help me - "There is insufficient free space "

Author  Topic 

thoden.it
Starting Member

4 Posts

Posted - 2011-10-04 : 10:52:01
I am trying to restore using one of my .bak file and the restore failed.
Sql server report this:

There is insufficient free space on disk volume 'C:\' to create the database. The database requires 4145872896 additional free bytes, while only 4128075776 bytes are available.


But I don't guess from this message is that my .bak file is larger than
414587289 bytes because my .bak file to be restored is 190MB in size,


I had tried increase space on disk volume C but no better

Any help will be much appreciated.

Thanks for reading.
=====================
In my language - Vietnam
Các b?n Vi?t Nam có tham gia vào forum này thì giúp mình v?i,
mình dang restore file .bak nhung l?i g?p l?i

There is insufficient free space on disk volume 'C:\' to create the database. The database requires 4145872896 additional free bytes, while only 4128075776 bytes are available.


d?ch th? thì nó báo là thi?u dung lu?ng ? dia, nhung file dó ch? 190Mb và ? dia c?a mình còn t?i 4Gb tr?ng, tru?c dó mình cung dã restore m?t file cùng dung lu?ng v?i file này, khi không còn dùng du?c thì mình dã xóa CSDL dó,
Sau dó mình t?o m?t CSDL m?i và restore file này

Các b?n giúp mình l?i này s?m nhé, dang c?n g?p
c?m on dã d?c
n?u có th? pm qua yahoo: tommy_1760

http://thodencnt.com

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2011-10-04 : 11:27:56
it might be that when trying to create the db from bak the total size of mdf,ldf etc are going beyond max limit. try putting each file onto seperate drive and creating db

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page

Kristen
Test

22859 Posts

Posted - 2011-10-04 : 12:04:38
"my .bak file to be restored is 190MB in size"

When restoring from a backup the original size database will be created - even if the database was empty.

So you have to have enough space for the original size of LDF and MDF files.

You can include parameters in the RESTORE command to restore the database to a different location - e.g. MDF and LDF files in on different drives, as Visakh has suggested.

Once you have restored the database you can SHRINK it to a smaller size, if its size is too large for the new location AND it has some free space.
Go to Top of Page

thoden.it
Starting Member

4 Posts

Posted - 2011-10-04 : 12:50:00
Thanks all you

Of course, I have moved .bak file to another disk, but it remains the same
anythings else ?



http://thodencnt.com
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2011-10-04 : 13:01:08
quote:
Originally posted by thoden.it

Thanks all you

Of course, I have moved .bak file to another disk, but it remains the same
anythings else ?



http://thodencnt.com


No use moving bak file
Suggestion was to give the path for mdf (data) and ldf (log) files while restoring db from.bak file. The paths should point to different drives which has sufficient space

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2011-10-04 : 13:13:46
Are you able to access the source system where this backup was taken? If so, you can shrink down the files and then do a backup. Once you have the new backup, you should be able to restore it.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

Cindyaz
Yak Posting Veteran

73 Posts

Posted - 2011-10-12 : 01:57:44
Either you shrink the files on source server and then take backup as suggested above OR you restore the database with MOVE clause to keep files on different drives having ample free space to accomodate the large files. (and then probably shrink)
Go to Top of Page
   

- Advertisement -