In the database server, expand SharePoint Config database and naviage to Programmability/Stored Procedures/dbo.proc_GetProductVersions using SQL Server Management Studio.
Right click on the above stored procedure and select Properties.
On the popup screen, select Permissions on the left and click Search button.
On the new popup screen, click Search, select [WSS_Content_Application_Pools] database role and click OK.
Click OK again.
On the first popup screen, select the role, check Execute permission and click OK.