SQL.Close
---------

Closes the specified command object.

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

MBS( "SQL.Close"; Command ) 

**MBS**( **"SQL.Close";** /\* Closes the specified command object. \*/  
**$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

Closes the specified command object.  
Use the Close method to close the command explicitly.  
A command will be implicitly closed in [SQL.FreeCommand](SQLFreeCommand.md), so you don't have to call Close method explicitly.  
### See also

- [SQL.FreeCommand](SQLFreeCommand.md)
- [SQL.NewCommand](SQLNewCommand.md)

This function is free to use.

Created 18th August 2014 , last changed 13th January 2015

  
[SQL.ClientVersion](SQLClientVersion.md) - [SQL.CommandText](SQLCommandText.md)

[HTML Version](SQLClose.shtml)