Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Get the SQL String From a JDBC Prepared Statement

Posted on 2001-06-21
3
Medium Priority
?
404 Views
Last Modified: 2010-04-16
I've instantiated a PreparedStatement object and set all its string parameters but I want to get a look at the complete SQL string before i send it to the database. toString() just prints out the object reference. Does anyone know how?
0
Comment
Question by:comahony
  • 2
3 Comments
 
LVL 35

Accepted Solution

by:
TimYates earned 150 total points
ID: 6214726
Don't think you can with Java...

Maybe if you turn on SQL logging on your database, that would show it?

Tim
0
 

Expert Comment

by:Nachiap
ID: 6215904
yeah you cant see the full query in java ..
0
 
LVL 35

Expert Comment

by:TimYates
ID: 6256475
Wow! Thanks for the points :-D

Good luck in the future,

Tim.
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
Suggested Courses

927 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question