Cannot close ODBC connections

折月煮酒 提交于 2019-12-11 05:54:32

问题


I use odbc_connect() to open a DSN-less connection with a Microsoft Access file under PHP/5.6.21 and write into the file:

$conn = odbc_connect('DRIVER={Microsoft Access Driver (*.mdb, *.accdb)}; DBQ=D:\\Path\\To\\Output.mdb', '', '');

Apparently, both odbc_close($conn) nor odbc_close_all() destroy the resource but don't really close the connection. As a result:

  • I cannot move or delete the file when I'm done because I get file is in use by another process error messages.

  • I cannot write as many files as I need because I get Too many client tasks.

Is it possible to effectively close an ODBC connection to Microsoft Access from PHP or the feature is just not implemented?

来源:https://stackoverflow.com/questions/37024428/cannot-close-odbc-connections

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!