To resolve this issue, truncate the dbo.VPX_EVENT and dbo.VPX_EVENT_ARG tables. VMware strongly recommends that you have a DBA truncate the tables.
Note: Truncating the table does not impact the vCenter Server data. The Tasks and Events are deleted but you can preserve the Tasks and Events data for a number of days, as required.
To truncate the tables:
- Take a back-up of your current database. Do not skip this step.
- Use SQL Management Studio to connect to the vCenter Server database.
- Select New Query.
- Enter these queries in the new window and click Execute:
Note: Execute each query separately and wait for the query to complete prior to running subsequent queries. Depending on the size of the tables, the process may take up to 15 minutes.
-
- EXEC sp_msforeachtable "ALTER TABLE ? NOCHECK CONSTRAINT all"
- USE name_of_the_vcdb
TRUNCATE TABLE vpx_event_arg;
DELETE FROM vpx_event;
- Exec sp_msforeachtable @command1="print '?'", @command2="ALTER TABLE ? WITH CHECK CHECK CONSTRAINT all"