A Microsoft extension to the ANSI SQL language that includes procedural programming, local variables, and various support functions.
Hi @clive swan ,
When we set the value of the MAXSIZE parameter limited to a specific value, we might encounter the Primary filegroup is full error. This error also occurs when we are using the SQL Server express edition. The maximum allowed size of the database in SQL Server Express edition is 10GB. When the database tries to grow beyond 10GB, the user will encounter the Primary filegroup is full error.
Please check the following things to resolve your issue.
- Using select @@version to check your SQL server version.
- Please check the value of the MAXSIZE parameter of your database from SSMS UI. If the value of maxsize is small, suggest you resetting it to a suitable value or setting it to unlimited. Please also make sure that you enabled auto growth for the database files.
3... Using below powershell command to check the available disk space in the workstation.
Get-WmiObject -Class Win32_logicaldisk -Filter "DriveType = '3'" |
Select-Object -Property DeviceID, DriveType, VolumeName,
@{L='AvailableSpace';E={"{0:N2}" -f ($_.FreeSpace /1GB)}},
@{L="TotalDiskSize";E={"{0:N2}" -f ($_.Size/1GB)}}
Refer to the blog Resolving SQL Server errors: The Primary Filegroup is full to get more detail information.
If the response is helpful, please click "Accept Answer" and upvote it, as this could help other community members looking for similar thread.