title: @mssql_query on cake php
body: <p>I have to fire sql on loop .Problem is that , whenever sql fails inside loop , entire other sql of preceding loop will fail. for example i have loop with 100 iteration, let say on 10th iteration i got sql error , in that case it will not fire sql for remaining 90 iteration too.</p>
  
  <pre><code>for($i=0;$i&lt;$n;$i++) {
  
      $sql="BULK
                              INSERT epds_temp
                              FROM '{$uploadsCsv}1.csv'
                              WITH
                              (
                              FIELDTERMINATOR = ',',
                              ROWTERMINATOR = '\n'
                              )";
                          $this-&gt;Epd-&gt;query($sql);    
  
  
  
  }
  </code></pre>
  
  <p>for  normal php i could have do <code>@mysql_query($sql);</code></p>
  
  <p>any ideas?</p>