title: How do I get SqlCommand ExecuteNonQuery result?
body: <p>In order to check if specific user is db_owner, i excute the following query:</p>
  
  <pre><code>"select is_rolemember('db_owner', '" &amp; p_userName &amp; "')"
  </code></pre>
  
  <p>using the <code>SqlCommand</code> <code>ExecuteNonQuery</code> method.</p>
  
  <p>How do I get the query result?</p>
  
  <p>Here is my code:</p>
  
  <pre><code>    Dim com As SqlCommand = New SqlCommand(sql, m_connection)               
      com.ExecuteNonQuery()
  </code></pre>
  
  <p>sql is the query, and m_connection is the connectionString.</p>