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 do you understand by jdbc driver and explain its types?
What is de-normalization?
Explain the locking system in jdbc?
What are statements in JAVA ?
What is com mysql jdbc driver?
How can I get information about foreign keys used in a table?
How can you know about drivers and database information ?
What are different types of transactions?
Is the JDBC-ODBC Bridge multi-threaded?
What do you mean by batch processing in jdbc?
What is a jdbc connection pool?
signature of init method?