Forums Register Login

Viewing SQL from PreparedStatements

+Pie Number of slices to send: Send
Hi,

is there a way to view the SQL-Statement that was created from a PreparedStatement? I'd like to view it filled with parameters instead of ?'s for debug reasons.

Thanks, b.
+Pie Number of slices to send: Send
You almost answered your own question
Search for DebuggableStatement
+Pie Number of slices to send: Send
Ben,
Perhaps P6 Spy will be of help.

David,
Were you referring to the JavaWorld article entitled Overpower the PreparedStatement?

Good Luck,
Avi.
[ February 14, 2005: Message edited by: Avi Abrami ]
+Pie Number of slices to send: Send
That's the one. I've found it very useful many times.
Any sufficiently advanced technology will be used as a cat toy. And this tiny ad contains a very small cat:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 973 times.
Similar Threads
netstat, telnet: TCP/IP connection to localhost 1433 failed
Entity Bean - View mapping
select * from ABC where ID in (?)
Distributed Txn
Different restults from Oracle and JDBC
More...

All times above are in ranch (not your local) time.
The current ranch time is
Apr 16, 2024 04:55:56.