title: How to get the output of a T-SQL PRINT command as string in a .net application
body: <p>How can I retrieve a string generated by the PRINT t-sql command of SQL Server in my .net application</p>
  
  <p>Example Microsoft SQl Server Management Studio :</p>
  
  <p><a href="https://i.stack.imgur.com/DjJ4z.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/DjJ4z.jpg" alt="enter image description here"></a></p>