title: sql server version of mysql_fetch_assoc
body: <p>I have a short PHP script that interacts with a database. The script is currently written for MySQL but needs to be converted to SQL Server. I don't have experience with SQL Server and think I have done most of it correctly but in one line of the script is:</p>
  
  <p><code>@mysql_fetch_assoc($result)</code></p>
  
  <p>What is the SQL Server equivalent of this?<br /></p>
  
  <p>Do I need to edit the query line at all?</p>
  
  <pre><code>$query = 'SELECT * FROM location WHERE dType="' . $ajax_var . '" AND oType="' . $ajax_var2 . '"';
  </code></pre>