Avatar of Satish B
Satish B
 asked on

Getting error of insufficient disk space in filegroup 'PRIMARY' in sql server 2012 express version

hi
i got error while running the query in sql server 2012 express version, below is full description of that error.

Could not allocate a new page for database 'Swadhaar_JLG' because of insufficient disk space in filegroup 'PRIMARY'. Create the necessary space by dropping objects in the filegroup, adding additional files to the filegroup, or setting autogrowth on for existing files in the filegroup.
DatabasesMicrosoft SQL ServerSQL

Avatar of undefined
Last Comment
Deepak Chauhan

8/22/2022 - Mon
Deepak Chauhan

Express version is limited up to 10GB of database size.

If this size limit not reached for your database Please check the database file property, if there is limited file growth set.

1. Check the datafile growth limit. you can check it from database property > click on File > check autogrowth setting.
2. Check the disk space where file exists physically.
Satish B

ASKER
Please check screenshot which i attached. also have 21 gb free in C drive.
Error.png
Deepak Chauhan

Screen shot showing size 10240 MB  so it means 10 GB limit reached.

10240 / 1024 = 10GB.  -- this is the limitation of Express edition and file will not grow more.
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy
Satish B

ASKER
Actually i need to run the query what is solution in this situation?
ASKER CERTIFIED SOLUTION
Deepak Chauhan

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Pawan Kumar

The best solution in this case is that you have to move the database to a full version of SQL.

>> Actually i need to run the query what is solution in this situation?
Which query you are talking about ?
Satish B

ASKER
Thanks Deepak your valuable time.
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
Deepak Chauhan

Thanks Satish..... happy to assist.