When running the OCS/Lync Server VOIP Call Details task the following error is shown:
"Error running stored procedure The EXECUTE permission was denied on the object sp_OACreate,database mssqlsystemresource,schema sys"
The account running the OCS/Lync Server VOIP Call Details task does not have SysAdmin rights on the SQL server hosting the MessageStats database. the sp_OACreate stored procedure is a SQL Server stored procedure and SysAdmin rights are required to execute it.
WORKAROUND 1:
Grant the account running the task SysAdmin rights on the SQL server where the MessageStats database is hosted
WORKAROUND 2:
If Enterprise Voice is not used or there is no need to collect the VOIP Call Details data, run each of the OCS/Lync tasks against the Lync Pool, omitting the OCS/Lync Server Enterprise Voice task:
STATUS:
Enhancement request TF00217668 has been submitted to Development for consideration in a future release of MessageStats