Recently a customer had filled up their free SQL Express Database with Events and Tasks from Vmware. The Hosts has both gone to Disconnected with error
cannot synchronize host cannot contact the specified host
and when trying to re-add the error would be displayed
VIM_VCDB database ‘PRIMARY’ filegroup is full
failed because the resulting cumulative database size would exceed your licensed limit of 4096 MB per database.
SQL Express has a 4GB database limit, we need to clear out the old logs and don’t want to install and download SQL management studio so we need to run the below in command prompt with the same user that installed the DB or has write permissions to it!
The permanent solution would be to move the SQL server to a full version of SQL Server or to migrate to Vcenter Standalone server ( Hosted on Linux! )