Schedule.GetSQL
---------------

Queries the scheduled SQL command.

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

MBS( "Schedule.GetSQL"; ScheduleRef ) 

**MBS**( **"Schedule.GetSQL";** /\* Queries the scheduled SQL command. \*/  
**$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 text or error.

### Description

Queries the scheduled SQL command.  
### See also

- [Schedule.GetTag](ScheduleGetTag.md)
- [Schedule.GetURL](ScheduleGetURL.md)
- [Schedule.SetSQL](ScheduleSetSQL.md)
- [Schedule.SetTag](ScheduleSetTag.md)
- [Schedule.SetURL](ScheduleSetURL.md)

This function checks for a license.

Created 20th May 2015 , last changed 20th May 2015

  
[Schedule.GetRunCount](ScheduleGetRunCount.md) - [Schedule.GetSQLResult](ScheduleGetSQLResult.md)

[HTML Version](ScheduleGetSQL.shtml)