How to implement a stored procedure within Ignition?

Marcus, please see Wiki - how to post code on this forum.

Can you edit your post (pencil icon), select each code block and hit the </> to format it correctly.