SQL.ServerVersion
-----------------

The long number of the currently connected server version.

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

MBS( "SQL.ServerVersion"; Connection ) 

**MBS**( **"SQL.ServerVersion";** /\* The long number of the currently connected server version. \*/  
**$Connection**) /\* The connection reference number gained with [SQL.NewConnection](SQLNewConnection.md). \*/ 

### Parameters

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

### Result

Returns version number or error.

### Description

The long number of the currently connected server version.  
  
The higher word contains the major server version (the XX value in the XX.YY version number); the lower word contains the minor server version (the YY value in the XX.YY version number).   
### See also

- [SQL.NewConnection](SQLNewConnection.md)
- [SQL.ServerVersionString](SQLServerVersionString.md)

This function is free to use.

Created 18th August 2014 , last changed 18th August 2014

  
[SQL.SQLite3.SetKey](SQLSQLite3SetKey.md) - [SQL.ServerVersionString](SQLServerVersionString.md)

[HTML Version](SQLServerVersion.shtml)