DatabaseLink`
DatabaseLink`
SQLConnectionPoolClose
SQLConnectionPoolClose[pool]
closes a connection pool.
更多信息和选项
- To use SQLConnectionPoolClose, you first need to load DatabaseLink using Needs["DatabaseLink`"].
- Closing a connection pool closes any connections opened from the pool.
范例
基本范例 (1)
Needs["DatabaseLink`"]conn = OpenSQLConnection["publisher", UseConnectionPool -> True]The connection pool used to connect to the database:
pool = SQLConnectionPools[conn]Close the connection pool and any associated connections:
SQLConnectionPoolClose[pool]