This discussion is archived
2 Replies Latest reply: Nov 29, 2012 4:42 AM by JT26 RSS

Killing Query execution based on a counter

JT26 Newbie
Currently Being Moderated
Hi,

I would appreciate some help in this.

My task is to kill a query execution in case it takes more than 10 minutes to execute.
  IQPConnection con = IQPHandler.getConnection(context);
  IQPResultSet res = null;

  IQPStatement stmt = con.createStatement();
  res = stmt.executeQuery(adHocQuery);
How do I achieve this?

Edited by: JT26 on Nov 28, 2012 7:26 PM

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points