JDBC and handling of errors
From: Kalle Dahlberg (kalle_at_newsgroups.nospam)
Date: 03/16/04
- Next message: Dorte: "Set time zone in query"
- Previous message: Preet Kanwaljit Singh Shergill: "date solution, second opinion"
- Next in thread: Yuan Shao: "RE: JDBC and handling of errors"
- Reply: Yuan Shao: "RE: JDBC and handling of errors"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 16 Mar 2004 00:36:06 -0800
Hi!
I'm working in a project which uses JDBC to connect to an SQL Server and execute some stored procedures. It works fine so far, excepting one thing: Some errors from SQL Server do not cause an SQLException to be thrown in the Java program. Most errors work fine, but some don't work.
For example, this query:
select 15/0
generates a divide by zero error in QA, but does not produce an exception in the Java program.
I'm using SQL Server 2000 sp 3a, and MS JDBC driver for SQL Server 2000 sp2.
I would be happy for any help/ideas you can give.
/Kalle Dahlberg
- Next message: Dorte: "Set time zone in query"
- Previous message: Preet Kanwaljit Singh Shergill: "date solution, second opinion"
- Next in thread: Yuan Shao: "RE: JDBC and handling of errors"
- Reply: Yuan Shao: "RE: JDBC and handling of errors"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|