Skip to Content.
Sympa Menu

freetds - Re: JDBC: what kind of MSSQL errors are caught?

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: Bob Kline <bkline AT rksystems.com>
  • To: TDS Development Group <freetds AT franklin.oit.unc.edu>
  • Subject: Re: JDBC: what kind of MSSQL errors are caught?
  • Date: Wed, 14 Nov 2001 06:36:43 -0500 (EST)


On Wed, 14 Nov 2001, Michael Suedkamp wrote:

> Thanks for your answer!
>
> I found the getWarnings() methods in the JavaDoc of the classes
> Connection, Statement and ResultSet of the package java.sql. I tried
> to to call the Statement getWarnings() method after the execute()
> call which caused the unique index constraint violation. But it only
> tells me "The statement has been terminated" rather than the
> expected warning. What am I doing wrong?
>
> BTW, I use a FreeTDS snapshot which is rather old but I am very
> satisfied with it's stability. The Statement.java file contains a
> version string "1.24 2000/07/17". The classes TDSConnection and so
> on your mentioned are not present in this distribution.

You'll need to pull down a more recent version of the driver.
Otherwise the best you'll be able to do is use my TDS_SHOW_WARNINGS
hack. I recommend getting the latest code from SourceForge.[1]

[1] https://sourceforge.net/projects/jtds/

--
Bob Kline
mailto:bkline AT rksystems.com
http://www.rksystems.com






Archive powered by MHonArc 2.6.24.

Top of Page