SQL.SetConnectionTag
--------------------

Sets the tag for the connection.

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

MBS( "SQL.SetConnectionTag"; Connection; Tag ) 

**MBS**( **"SQL.SetConnectionTag";** /\* Sets the tag for the connection. \*/  
**$Connection**; /\* The connection reference number gained with [SQL.NewConnection](SQLNewConnection.md). \*/   
**$Tag**) /\* The new tag value. \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| Connection | The connection reference number gained with [SQL.NewConnection](SQLNewConnection.md). | $Connection |
| Tag | The new tag value. |  |

### Result

Returns OK or error.

### Description

Sets the tag for the connection.  
This is a value where you can associate any value with the connection.  
### See also

- [SQL.GetConnectionTag](SQLGetConnectionTag.md)
- [SQL.NewConnection](SQLNewConnection.md)

### Blog Entries

- [MBS FileMaker Plugin, version 6.4pr7](https://www.mbsplugins.de/archive/2016-09-14/MBS_FileMaker_Plugin_version_6/monkeybreadsoftware_blog_filemaker)

This function is free to use.

Created 11st September 2016 , last changed 11st September 2016

  
[SQL.SetConnectionOption](SQLSetConnectionOption.md) - [SQL.SetFieldOption](SQLSetFieldOption.md)

[HTML Version](SQLSetConnectionTag.shtml)