title: How to check whether sql query returning a value or not?
body: <p>I have a SQL query. Just i want to check query returning a values or not using c#. Can any one help on this to fix it. Thanks in advance.</p>
  
  <pre><code>Sqlcommand cmd = new Sqlcomman("select Name from Engdetails",con)
  
  if (query != 0)
  {
    some coding..
  }
  else
  {
    coding...
  }
  </code></pre>