Error Handling


The SQL Server 2000 Driver for JDBC reports errors to the calling application by throwing SQLExceptions. Each SQLException contains the following information:

SQL Server 2000 Driver for JDBC Errors

An error generated by the SQL Server 2000 Driver for JDBC has the following format:

[Microsoft][SQL Server 2000 Driver for JDBC]message 

For example:

[Microsoft][SQL Server 2000 Driver for JDBC]Timeout expired. 

You may, at times, need to check the last JDBC call your application made and refer to the JDBC specification for the recommended action.

Database Errors

An error generated by the database has the following format:

[Microsoft][SQL Server 2000 Driver for JDBC][SQL Server] message 

For example:

[Microsoft][SQL Server 2000 Driver for JDBC][SQL Server] 
Invalid Object Name. 

Use the native error code to look up details about the possible cause of the error. For these details, refer to your database documentation.


Previous Document Previous Page Next Document Next Page Synchronize TOC Synchronize with Contents