Summary: How to troubleshoot the vCenter 5.1 Database Agent Jobs.
Date: Around 2013
Refactor: 29 April 2025: Checked links and formatting. \\}
After the upgrade from vCenter 5.1 GA to release 5.1.0b and moving vCenter to a new server we had a small issue with the vCenter database agent jobs, as we had this error:
Could not find stored procedure 'purge_stat1_proc'. [SQLSTATE 42000] (Error 2812). The step failed.
This caused me to look a little bit more into the database agent jobs.
Per vCenter edition there is a knowledgebase article on which SQL Agent Jobs you need, for vCenter 5.1 they are in this article.
To check them launch the SQL Server Management Studio and browse to the SQL Server Agent, and ensure the jobs as listed in the kb article are present.
Then browse to the SQL server and expand your vCenter database (typically called VCDB), expand programmability and expand Stored Procedures. Check this list as well using the kb article.
If all jobs and stored procedures are present (as was in my case, then why am I getting this error. Well simple enough, the job itself was not properly updated.
This part is an extract from this VMware's kb article:
Note: Take a full backup of your vCenter Server database before making any changes.
# Connect to SQL Management Studio.
This solved the issue for me.