To shrink the size of the vCenter Server SQL database and transaction logs:
- Connect to the vCenter Server database using the SQL Management Studio Express as an administrator.
- Stop the VMware VirtualCenter Server service.
- Take a backup of the vCenter Server database using this query:
BACKUP DATABASE DatabaseName
TO DISK = 'C:\DatabaseName
.BAK'
GO
- Right-click the vCenter Server database, click Run Query, and run this query :
DBCC SHRINKDATABASE ( DatabaseName
, 5);
GO
- Start the VMware VirtualCenter Server service.
Note: When DBCC SHRINKDATABASE is specified with target_percent, the Database Engine calculates the target size to be the target_percent amount of space free in the file after shrinking.
If you are unable to shrink the size of the vCenter Server database (VIM_VCDB) using the SQL Management Studio GUI, you have to run T-SQL scripts.