question

Sagar Bhargava avatar image
Sagar Bhargava asked

Filegroup Space Issues

I can see the below error in the Event viewer and the SQL Server 2008 Express seem to be timing out when trying to login:

"Could not allocate space for object 'dbo.VerboseLogs'.'PK_Logs' in database 'XXXXX' because the 'PRIMARY' filegroup is full. Create disk space by deleting unneeded files, dropping objects in the filegroup, adding additional files to the filegroup, or setting autogrowth on for existing files in the filegroup."

Any Ideas? There is plenty of space available on the drive. Also, Log file is set to Autogrow by 10 percent, restricted growth till 2,097,152 MB. MDF is set to Autogrow by 1 MB, unrestricted growth.

filegroupspace
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Matt Whitfield avatar image
Matt Whitfield answered

Yes, SQL Server Express is limited to 4GB... so you can't exceed that limit no matter how much space you have on the disk.

If you want to have a look at how the space is used, and drill down, then try out my tool for that.

5 comments
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Matt Whitfield avatar image Matt Whitfield ♦♦ commented ·
:) All the products are available free, so I don't feel guilty! Plus I only link to them where it's 100% relevant, and I always include links to the Red Gate / Apex equivalents where there are any... So yeah, guilt factor = 0.
1 Like 1 ·
Fatherjack avatar image Fatherjack ♦♦ commented ·
+1 - for ability to plug product shamelessly ;)
0 Likes 0 ·
TimothyAWiseman avatar image TimothyAWiseman commented ·
Its a good tool! Anyway, now may be a good time to look at SQL Server 2008 Standard. If that is not an option, consider splitting the data into multiple databases.
0 Likes 0 ·
Fatherjack avatar image Fatherjack ♦♦ commented ·
agreed a very good tool, I use it and am pleased with the view it gives me. Sometimes pictures/images show the details more quickly than a screen full of numbers.
0 Likes 0 ·
Matt Whitfield avatar image Matt Whitfield ♦♦ commented ·
Thanks guys :) glad you like it...
0 Likes 0 ·
Fatherjack avatar image
Fatherjack answered

How big is the log file on the hard drive, has it reached the 2GB limit?

4 comments
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Sagar Bhargava avatar image Sagar Bhargava commented ·
I have shrinked this log file as a means to create some space as this is not a heavily used production box. Can this issue cause Timeout issue during login to Management Studio. I noticed server team has installed Sophos Antivirus on this box. I have heard AV causing issues with DB servers.
0 Likes 0 ·
Fatherjack avatar image Fatherjack ♦♦ commented ·
if the log file was full then no database activity would take place. Do you have regular jobs to backup the database? You may be able to switch to SIMPLE recovery mode to reduce the entries being stored in the logfile.
0 Likes 0 ·
Sagar Bhargava avatar image Sagar Bhargava commented ·
Can a space issue with one filegroup of a database cause a timeout during login to Management Studio?
0 Likes 0 ·
Fatherjack avatar image Fatherjack ♦♦ commented ·
the fact is that the logfile was unable to log any database activity so would not allow connections. this needs to be managed, either by no logging EVERY transaction (ie SIMPLE recovery mode) or making more room. You could add extra logfiles (mylogfile.ndf) up to the maximum size of a SQLExpress database as mentioned by Matt. You also need to run regular backups in order to keep the logfile at a manageable size, whatever other options you choose.
0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.