title: How can I receive SQL Messages in c#?
body: <p>I want to show these SQL messages in c#</p>
  
  <p><img src="https://i.stack.imgur.com/ibbTI.jpg" alt="image"></p>
  
  <p>My C# code:</p>
  
  <pre><code>SqlCommand cmd = new SqlCommand();
  cmd = con.CreateCommand();
  string ab = "";
  con.FireInfoMessageEventOnUserErrors = true;
  con.InfoMessage += delegate(object obj, SqlInfoMessageEventArgs err)
  {
     ab = "\n " + err.Message;
     message_richTextBox.Text += (ab);
  };
  cmd.CommandText = @"execute my_sp ";
  cmd.ExecuteNonQuery();
  con.FireInfoMessageEventOnUserErrors = false;
  </code></pre>
  
  <p><strong>Problem:</strong><br>
  My problem is that I don't get all SQL messgaes as in SQL Server 2008 (image attached) in C#</p>