Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试查询第三方应用程序填充的现有 Paradox 数据库。我的应用程序现在正在阻止第三方应用程序,我想知道是否有任何“查询提示”或连接字符串属性可以在不阻塞的情况下查询/打开数据库。
使用“.NET Framework Data Provider for ODBC”连接查询数据库。
即使您遵循标准的 .NET“断开连接”模式(您应该尽快关闭每个连接),由于默认连接池,您可能仍然保持连接打开。要测试您应该在执行查询后清除 ConnectionPool。
据我所知,对于 ODBC,它应该是:
System.Data.Odbc.OdbcConnection.ReleaseObjectPool()