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 the latest version of JDBC? What are the new features added in that?
How does jdbc connect to database?
Explain how data flows from view to db and reverse
Define preparedstatement.
Is odbc an api?
How to achieve JDBC Connection Pooling using JDBC DataSource and JNDI in Apache Tomcat Server?
Why we use jdbc instead of odbc?
How can I connect mysql or oracle with java?
What are the different classes through which JDBC represents statements?
What is url in jdbc connection?
What are the types of statements in jdbc?
What is the query used to display all tables names in SQL Server (Query analyzer)?