
vCAC usp_SelectAgent SQL Errors
October 20, 2014I found that once I added my vCenter server as an endpoint to vCAC, I could see my clusters as I would have expected, but they didn’t show any resources. When I went to add a reservation, I couldn’t see how much RAM was available or any of the datastores that I could use.
If you look in the vCAC logs, you’d find errors every two minutes refering to “Error executing query usp_SelectAgent” like the one below.
After a bit of playing around I found Event ID 4874 in the Windows event log on the IaaS Server.
This was the smoking gun. That error led me to a VMware KB Article that explained the issue. http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=2038943
What I found was that my SQL Server component registry security settings needed to be modified in order for IaaS to query the database correctly. After changing the below settings, everything worked again. I hope this helps someone else having similar issues.