title: How to check return value for executequery in c# in sql server 2005?
body: <p>I am trying to call a stored procedure in my asp.net site in c#. I am using a SqlCommand class and call ExecuteQuery(). The return value is -1?</p>
  
  <p>The stored procedure works, i tested it in SQL Management Studio. How can i get a more detailed error description?</p>