How to Fix Error "Could not allocate space for object 'X' in database"?

Error Message

Could not allocate space for object 'dbo.ABC_XYZ_XYZ'.'AB__ABC_XYZ__XYZ' in database 'ABC' 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.


Solution

  1. Login to SQL Server Management studio with sa user.

  2. Expand databases tab.

  3. Right click on database in question and click on Properties.

  4. Go to Files tab.

  5. Click on Browse button for Autogrowth option.

  6. Increase size as per your requirement in Maximum file sizeRestrict File Growth option.




  • 0 Users Found This Useful

Was this answer helpful?

Related Articles

Comparison of MS SQL Server 2016 Express Edition V/S. MS SQL Server 2016 Web Edition

Following is a brief comparison between MSSQL Server 2016 Express Edition and MSSQL Server 2016...

How to Backup MSSQL Database from SQL Server Management Studio?

To take MS SQL database backup, first you need to connect to MS SQL Server through SQL Server...

How to change user access mode in MSSQL Server?

MSSQL Server provides a feature to restrict your Database access for users. It can be performed...

Do you offer SQL schedule job?

Windows Shared HostingWe do not offer SQL server schedule job in our Windows shared hosting...

How to Change MS SQL Database Recovery Model?

This article describes how to to change recovery model of a MS SQL database through SQL Server...