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
- FM.SQL.InsertRecordsToSQL
- SQL.Connect
- SQL.Disconnect
- SQL.Execute
- SQL.FreeAllConnections
- SQL.ListConnections
- SQL.NewCommand
- SQL.NewConnection
- SQL.ResetConnection
- SSH.Tunnel.Run
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 Access Execute
- 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 Query
- SQL to other databases/SQL Export
- SQL to other databases/SQLite blob
- SQL to other databases/SQLite fun
- Third Party/FileMaker Snippet Storage
Blog Entries
- 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