Is there any way to save the PRINT buffer?
Example, I have a process that runs many Stored Procedures (nested) that prints a lot of information which I need to save. The Stored Procedures are encrypted. I would like to create a Stored Procedure that calls the main SP of the process and save the PRINT statement results. Is it possible?
I thought of a work around: execute master..xp_cmdshell and sqlcmd with -o parameter and import the output file to a table. Anybody know a better solution?