## Example

`

     bool sqlsrv_cancel ( resource $stmt )

`

## Description

Cancels a statement. Any results associated with the statement that have not been consumed are deleted. After sqlsrv_cancel() has been called, the specified statement can be re-executed if it was created with sqlsrv_prepare(). Calling sqlsrv_cancel() is not necessary if all the results associated with the statement have been consumed.

## Return Values

Returns TRUE on success or FALSE on failure.