This week's book giveaways are in the Scala and Android forums. We're giving away four copies each of Machine Learning Systems: Designs that scale and Xamarin in Action: Creating native cross-platform mobile apps and have the authors on-line! See this thread and this one for details.
Hello : is there a way to cancel a SQL query that takes long time to get the results set in JDBC. Basically once a query is submitted a prorgess bar or progress moniter should display,which gives the user a chance to cancel. Once cancelled the program control comes back Any ideas, suggestion thanks Selvan
Hi Selvan tiru, If you had taken a look to the Statement Interface methods, you would have found that the method cancel(), answers exactly your question. This method assumes that both the driver and the database server support this operation. Now if you are using a stored procedure to execute your query, you can still use the cancel() method since the CallableStatement and the PreparedStatement are both derived from the Statement Interface. regards. [This message has been edited by Omar IRAQI (edited July 12, 2001).]
Omar IRAQI Houssaini
Why am I so drawn to cherry pie? I can't seem to stop. Save me tiny ad!