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
 General SQL Server Forums
 New to SQL Server Programming
 primary data file group is full

Author  Topic 

laddu
Constraint Violating Yak Guru

332 Posts

Posted - 2007-12-19 : 20:26:03
I got below error :

Could not find allocate space for object 'tablename' in DB, because the primary file group is full

Upon investigation I found :

datafile is reached it's maximum size
DB Size space allowcated 197 MB, space free 20.69 MB
DB mdf 194880 KB, ndf 6272 KB

It's production server, please let me know how to proceed now?

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2007-12-19 : 20:32:11
Do you have autogrow enabled on the database? How much free disk space is there on the drive where this MDF file is located?

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/
Go to Top of Page

laddu
Constraint Violating Yak Guru

332 Posts

Posted - 2007-12-19 : 20:48:22
Yes autogrow is enabled on the database. There is 20 GB space on the drive which this MDF file located

do I need to shrink the datafile ??
Go to Top of Page

rmiao
Master Smack Fu Yak Hacker

7266 Posts

Posted - 2007-12-19 : 20:52:23
No, you may need allocate more space to it manually instead.
Go to Top of Page

laddu
Constraint Violating Yak Guru

332 Posts

Posted - 2007-12-19 : 22:02:28
I have increased data file growth to 300 MB (10%)
But it is a production server, so can I set it to unrestricted growth?
Go to Top of Page

rmiao
Master Smack Fu Yak Hacker

7266 Posts

Posted - 2007-12-19 : 22:39:55
Sure if disk has enough free space.
Go to Top of Page

laddu
Constraint Violating Yak Guru

332 Posts

Posted - 2007-12-19 : 22:55:36
Thanks alot, I really appriciate all your help!
Go to Top of Page
   

- Advertisement -