Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SQL Timer, Performer

Status
Not open for further replies.

orozcom

Programmer
Joined
Mar 1, 2004
Messages
1
Location
US
I need to find a free tool, or develop and application that will take an Collection of String SQL Statements from an Oracle DB. Process each statement one at a time and time each statement from start to return. Anyone know of anything?
 
Code:
String[] statements = ...
Connection conn = ...
for (int i = 0; i < statements.length; i++) {
  // should use Callable or Prepared Statements if you can
 Statement s = conn.createStatement();
 ResultSet rs = s.executeQuery(statements[i]);
 while (rs.next()) {
   // do stuff with ResultSet
 }
}
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top