AdobeStock_455007340

Forcing the Closing of Database Connections

ColdFusion pools database connections to improve performance. Data source connections may be dropped as needed using the ColdFusion Administrator (this process also unlocks any locked files, for example, Microsoft Access MDB files), but you can also do this programmatically using the undocumented CFusion_DBConnections_Flush() function. This function, which takes no parameters, will drop all open connections (forcing them all to be reopened when needed). (Applies to: ColdFusion 4.x or 5)

Leave a Reply

Discover more from Ben Forta

Subscribe now to keep reading and get access to the full archive.

Continue reading