Error Handling


reports errors to the calling application by throwing SQLExceptions. Each SQLException contains the following information:

SQL Server 2000 JDBC Errors

An error generated by has the following format:

[Microsoft][SQL Server 2000 JDBC Driver]message 

For example:

[Microsoft][SQL Server 2000 JDBC Driver]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 JDBC Driver][SQL Server] message 

For example:

[Microsoft][SQL Server 2000 JDBC Driver][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