Topics
All
MacOS
(Only)
Windows
(Only)
Linux
(Only, Not)
iOS
(Only, Not)
Components
Crossplatform Mac & Win
Server
Client
Old
Deprecated
Guides
Examples
Videos
New in version:
9.4
9.5
10.0
10.1
10.2
10.3
10.4
10.5
11.0
11.1
Statistic
FMM
Blog
SQL.FreeConnection
Call this method if you are done with a connection.
Component | Version | macOS | Windows | Linux | Server | FileMaker 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.Connect
- SQL.Disconnect
- SQL.Execute
- SQL.FreeAllConnections
- SQL.InsertOrUpdateRecords
- SQL.NewCommand
- SQL.NewConnection
- SQL.ResetConnection
- SQL.SetConnectionOption
- SSH.Tunnel.Run
Example Databases
- SQL to other databases/Firebird Query
- SQL to other databases/Microsoft SQL Execute
- SQL to other databases/Microsoft SQL Server Connect
- SQL to other databases/Microsoft SQL Server Query
- SQL to other databases/MySQL example
- SQL to other databases/ODBC Query
- SQL to other databases/ODBC to FIleMaker/ODBC Test
- SQL to other databases/SQL Export
- SQL to other databases/SQLite fun
- Third Party/FileMaker Snippet Storage
Blog Entries
- 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
- Ausgabe 4/2016, Seite 28
- Ausgabe 3/2016, Seite 30
- Ausgabe 3/2016, Seite 29
- Ausgabe 1/2016, Seite 30
- Ausgabe 1/2016, Seite 28
- Ausgabe 4/2015, Seite 16
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.
Created 18th August 2014, last changed 5th October 2020
SQL.FreeCommand - SQL.GetAutoCommit
Feedback: Report problem or ask question.

Links
MBS FileMaker Plugins