Say I have a stored procedure like this:
begin try drop procedure test_print end try begin catch end catch; go create procedure test_print as begin print 'Hello' print 'World'; end go exec test_print
How can I capture print messages in the test_print stored procedure and save it in a variable?
Thanks.
source share