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 |
What is JDBC Connection? Explain steps to get Database connection in a simple java program.
What are the conditions applies to varchar variable, when using in procedures?
How many types of statements are there in jdbc?
How to retrieve warnings in jdbc?
List the common jdbc exceptions ?
How do I set properties for a JDBC driver and where are the properties stored?
How do you insert images into database using jdbc?
Why do we need a jdbcrowset like wrapper around resultset?
what is CallableStatement and what is its usage?
How many isolation levels are supported in JDBC and what are they?
How do you create Connection?
What do you mean by metadata and why we are using it?