Using the code below you can call a stored procedure directly from Magento.

Calling a stored procedure from Magento
Need help implementing this solution, or still looking for a fix to your Magento problem? Get in touch and I will be happy to help with your project.
Tags: