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 and its advantages?
What are different types of transactions?
Are there any ODBC drivers that do not work with the JDBC- ODBC Bridge?
Is jdbc secure?
There is a method getColumnCount in the JDBC API. Is there a similar method to find the number of rows in a result set?
How do you insert images into database using jdbc?
How can I write to the log used by DriverManager and JDBC drivers?
Is the JDBC-ODBC Bridge multi-threaded?
Briefly tell about the jdbc architecture.
what happen if we set JDBC string to NULL?
Jdbc-odbc bridge is multi-threaded or not?
What types of DataSource objects are specified in the Optional Package?