My website has email templates in order to send email notifications to users. Each template relies on running a stored procedure to obtain it's dataset to be merged into the body of the email message. My challenge is that it's not always easy for me to determine which fields are available to be added into each email template. It'd therefore be very handy to be able to "test-run" a stored procedure when editing an email template in order to enumerate the list of available fields.
Example provided below for context:
SELECT fieldnames FROM 'sp_get_items @strInput=''ABC''
Returned values:
item_id
item_name
item_cost
item_count
Like SHOW COLUMNS
but for a stored procedure.