Schedule.GetSQLResult
---------------------

Queries result of last SQL query.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [Schedule](component_Schedule.md) | [5.2](newinversion52.md) | ✅ Yes | ✅ Yes | ❌ No | ❌ No | ✅ Yes |

MBS( "Schedule.GetSQLResult"; ScheduleRef ) 

**MBS**( **"Schedule.GetSQLResult";** /\* Queries result of last SQL query. \*/  
**$ScheduleRef**) /\* The reference for a scheduled script call or sql query as returned by Schedule.StartScript\* functions or Schedule.ExecuteSQL\* functions.e.g. $ref \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| ScheduleRef | The reference for a scheduled script call or sql query as returned by Schedule.StartScript\* functions or Schedule.ExecuteSQL\* functions. | $ref |

### Result

Returns value or error.

### Description

Queries result of last SQL query.  
Please use [Schedule.SetAutoRelease](ScheduleSetAutoRelease.md) with parameter 0 to avoid the target schedule to be released before you can query result.  
### See also

- [Schedule.ClearSQLResult](ScheduleClearSQLResult.md)
- [Schedule.SetAutoRelease](ScheduleSetAutoRelease.md)

This function checks for a license.

Created 21st May 2015 , last changed 21st May 2015

  
[Schedule.GetSQL](ScheduleGetSQL.md) - [Schedule.GetScriptName](ScheduleGetScriptName.md)

[HTML Version](ScheduleGetSQLResult.shtml)