Redirect SQL Print Output in C#

To redirect the output generated by the T-SQL print statement, use the SqlConnection.InfoMessage event in your C# code.

It is called each time print is used inside a stored procedure.

The event argument SqlInfoMessageEventArgs.Message contains the output.