| Components | All | New | MacOS | Windows | Linux | iOS | ||||
| Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old | |
FM.SQL.Release
Releases memory used for the SQL result.
| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
| FM FMSQL | 5.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
MBS( "FM.SQL.Release"; SQLref ) More
Parameters
| Parameter | Description | Example |
|---|---|---|
| SQLref | The reference number returned by FM.SQL.Execute function. Or a list of reference numbers. |
$SQLRef |
Result
Returns OK or error.
Description
Releases memory used for the SQL result.Examples
Run command and free it later:
Set Variable [ $ref ; Value: MBS( "FM.SQL.Execute"; ""; "SELECT * FROM ProductImages FETCH FIRST 1 ROWS ONLY") ]
# ...
Set Variable [ $r ; Value: MBS( "FM.SQL.Release"; $ref ) ]
# ...
Set Variable [ $r ; Value: MBS( "FM.SQL.Release"; $ref ) ]
See also
- FM.SQL.JSONRecord
- FM.SQL.List
- FM.SQL.Min
- FM.SQL.RowCount
- FM.SQL.Sum
- FM.SQL.XMLRecord
- FM.SQL.XMLRecords
- JSON.ReplaceEvaluate
- MongoDB.InsertMany
- SQL.Execute
Release notes
- Version 10.5
- Added AVExport.ReleaseAll, AVRecorder.ReleaseAll, CoreML.ReleaseAll, DNSLookup.ReleaseAll, Dictionary.ReleaseAll, FM.SQL.ReleaseAll, JS.ReleaseAll, JavaScript.ReleaseAll, LDAP.ReleaseAll, PDFKit.ReleaseAll, PKCS12.ReleaseAll, PKCS7.ReleaseAll, PKey.ReleaseAll, SSH.ReleaseAll, WinSendMail.ReleaseAll, WindowsML.ReleaseAll, WordFile.ReleaseAll, and X509.ReleaseAll.
Example Databases
- DynaPDF/Extract Images
- MongoDB/MongoDB Test
- SQL in FileMaker/ImageGallery
- SQL in FileMaker/Insert or Update Tests
- SQL in FileMaker/SQL Select Container
- SQL to other databases/ODBC Query
- SQL to other databases/SQL Export
- SQL to other databases/SQLite fun
Blog Entries
- Upload lots of records from FileMaker to MongoDB
- MBS FileMaker Plugin 16.1 News
- MBS FileMaker Advent calendar - Door 4 - FM.SQL.Executeand life in the matrix
- JSON Replace with evaluate
- Moving data from ODBC to FileMaker via script
- Sending email with a huge custom function
- FileMaker records to XML or JSON
- Query FileMaker records as JSON
- FileMaker SQL with Sum, Min, Max and Avg on results
- Image Gallery in FileMaker using SQL
This function checks for a license.
Created 18th April 2015, last changed 29th October 2026
MarkDown version: FMSQLRelease.md