title: What is the return value after a successful INSERT using sqlsrv_query() in PHP, MSSQL SERVER 2005?
body: <p>Using the following simple code: </p>
  
  <pre><code>$aQuery = "INSERT into myTable (a, b, c) VALUES (1, 'Hello', 'Goodbye')";
  $result = sqlsrv_query($myConn, $aQuery ); //where $myConn is valid and defined elsewhere
  if (!$result) {
      echo 'FAIL';
  }
  else {
      echo 'It worked BABY!';
  }
  </code></pre>
  
  <p>What is the value of <code>$result</code> if the query executes successfully, and how do I access the resource properly? <code>echo $result;</code> will print: <code>Resource id #8</code>. </p>