how do I consume a stored procedure from sql to K2?
Have a look at the K2 Five help documentation on the subject of SQL Service Type. https://help.nintex.com/en-US/k2five/userguide/5.5/default.htm#ServiceBrokers/SQLServer/SQL-Server-S...
Make sure you read the section on Stored Procedures since not all stored procedure types are supported.