Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
SQL.FreeConnection
Call this method if you are done with a connection.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
SQL | 2.6 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
MBS( "SQL.FreeConnection"; Connection ) More
Parameters
Parameter | Description | Example |
---|---|---|
Connection | The command reference number gained with SQL.NewConnection. | $Connection |
Result
Returns "OK" or error message.
Description
Call this method if you are done with a connection.This closes the connection and frees all memory allocated for it.
Internally calls SQL.Disconnect if needed.
Examples
Free connection object:
MBS( "SQL.FreeConnection"; $Connection )
See also
- SQL.ClientVersion
- SQL.Connect
- SQL.Execute
- SQL.FreeAllConnections
- SQL.GetFieldAsContainer
- SQL.GetFieldAsText
- SQL.InsertOrUpdateRecords
- SQL.InternalSQLiteLibrary.Dump
- SQL.NewCommand
- SQL.ResetConnection
Release notes
- Version 9.5
- Fixed a bug in SQL.FreeConnection freeing wrong command objects.
- Version 9.3
- Fixed potential crash with SQL.FreeCommand and SQL.FreeConnection in server scripts.
Example Databases
- SQL to other databases/Firebird Query
- SQL to other databases/Microsoft SQL Execute
- SQL to other databases/MySQL example
- SQL to other databases/MySQL Query
- SQL to other databases/ODBC Query
- SQL to other databases/ODBC to FIleMaker/ODBC Test
- SQL to other databases/PostgreSQL Query
- SQL to other databases/SQL Export
- SQL to other databases/SQLite fun
- Third Party/FileMaker Snippet Storage
Blog Entries
- Connect to DuckDB in FileMaker
- Connect to Postgres in FileMaker
- Moving data from ODBC to FileMaker via script
- Transactions with SQL functions
- Using TLS when connecting to MySQL server
- MBS FileMaker Plugin, version 9.5pr1
- MBS FileMaker Plugin, version 9.3pr7
- Tip of the day: Connect to MySQL and run a query
FileMaker Magazin
This function is free to use.
Created 18th August 2014, last changed 5th October 2020
