Link to home
Start Free TrialLog in
Avatar of comahony
comahony

asked on

Get the SQL String From a JDBC Prepared Statement

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?
ASKER CERTIFIED SOLUTION
Avatar of TimYates
TimYates
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Nachiap
Nachiap

yeah you cant see the full query in java ..
Wow! Thanks for the points :-D

Good luck in the future,

Tim.