public function close()
 {
     $return = false;
     if (is_resource($this->cursor)) {
         sqlsrv_free_result($this->cursor);
     }
     if (is_resource($this->connection)) {
         $return = sqlsrv_close($this->connection);
     }
     $this->connection = null;
     return $return;
 }
Exemplo n.º 2
0
 /**
  * free result set
  * @return bool whether free result success 
  */
 function free_result($query)
 {
     return sqlsrv_free_result($query);
 }