SQL.Cancel
----------

Attempts to cancel the pending result set, or current statement execution.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [SQL](component_SQL.md) | [2.6](newinversion26.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

MBS( "SQL.Cancel"; Command ) 

**MBS**( **"SQL.Cancel";** /\* Attempts to cancel the pending result set, or current statement execution. \*/  
**$Command**) /\* The command reference number gained with [SQL.NewCommand](SQLNewCommand.md). \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| Command | The command reference number gained with [SQL.NewCommand](SQLNewCommand.md). | $Command |

### Result

Returns "OK" or error message.

### Description

Attempts to cancel the pending result set, or current statement execution.  
  
see also:  
[https://www.sqlapi.com/ApiDoc/class\_s\_a\_command.html](https://www.sqlapi.com/ApiDoc/class_s_a_command.html)  
### See also

- [SQL.NewCommand](SQLNewCommand.md)

This function is free to use.

Created 18th August 2014 , last changed 10th January 2020

  
[SNMP.SetTimeout](SNMPSetTimeout.md) - [SQL.ClientVersion](SQLClientVersion.md)

[HTML Version](SQLCancel.shtml)