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 Type-1 Driver and when this driver is used?
How to connect html page to database using jdbc?
If iam using JDBC API, do I also have to use ODBC?
what is the meaning of following code snippets Class c=class.forName(driverClassName); Driver d=(driver)c.newInstance();
How the JDBC application works?
what is connection pooling?
What is the query used to display all tables names in SQL Server (Query analyzer)?
Write an sql to find all records having all upper case alphanumeric characters in a field ?
What are different types of ResultSet?
What is the use of getGeneratedKeys() method in Statement?
explain about special characters?
What is JDBC ResultSet?