Page 1 of 1

Data Access Application Block and ClearAllPools function

Posted: Fri 20 Mar 2009 09:29
by Marcus
Hi,

i need a solution to use the ClearAllPools function with the Data Access Application Block.

I tried this:

Code: Select all

  db = DatabaseFactory.CreateDatabase()
  conn = db.CreateConnection()
  conn.Open()

  Devart.Data.Oracle.OracleConnection.ClearPool(CType(conn, Devart.Data.Oracle.OracleConnection))
best regards
Marcus

Posted: Mon 23 Mar 2009 11:55
by Shalex
I have tried the following code with the 5.20.24 version of dotConnect for Oracle. It works fine.

Code: Select all

      Database db = DatabaseFactory.CreateDatabase("connStingName");
      DbConnection conn = db.CreateConnection();
      conn.Open();
      OracleConnection.ClearPool((OracleConnection)conn);
Please specify the version of dotConnect for Oracle you are using. Give us a more detailed description of the problem. Please specify the error message you are getting.