How do find debugging problems related to JDBC API?
Answer / aditi
A good way to find out what JDBC calls are doing is to
enable JDBC tracing. The JDBC trace contains a detailed
listing of the activity occurring in the system that is
related to JDBC operations.
If you use the DriverManager facility to establish your
database connection, you use the DriverManager.setLogWriter
method to enable tracing of JDBC operations. If you use a
DataSource object to get a connection, you use the
DataSource.setLogWriter method to enable tracing. (For
pooled connections, you use the
ConnectionPoolDataSource.setLogWriter method, and for
connections that can participate in distributed
transactions, you use the XADataSource.setLogWriter method.)
| Is This Answer Correct ? | 1 Yes | 0 No |
How can I manage special characters when I execute an insert query?
What is meant by dao?
What is the difference between triggers and procedures?
Define preparedstatement.
Why do we use jdbc statements?
What is JDBC?
3 Answers Akamai Technologies,
What is hbm xml?
Which package is used for jdbc application?
Give an example for execution of sql statement.
What does it mean to "materialize" data?
How to check jdbc connection in java?
HI ALL, How to Overcome "OutOfMemoryException"? when I am compiling source having more than 1000 LOC throwing this exception. Can any one give correct answer to my question? thx