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

How do I connect to MSSQL Server 2008 from SQL Server Management Studio?

This article will guide you on how to connect to MS SQL Server 2008 from SQL Server Management...

Microsoft SQL Server 2016 Recommendation

The SQL Server 2016 Express is the latest data management system from the Microsoft. Like the...

How do I connect to MSSQL Server 2012 from SQL Server Management Studio?

This article will guide you on how to connect to MS SQL Server 2012 from SQL Server Management...

vs shell installation has failed with exit code 1638.

You may receive the following error while installing MSSQL 2017 on Windows 2012 R2 Server. vs...

How to Create MS SQL Database Through SQL Server Management Studio?

This article will assist you to create MS SQL database through SQL Server Management Studio....