Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JDBC

 
sandhya takkar
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How can u retrieve warning in JDBC.
 
Jim Yingst
Wanderer
Sheriff
Posts: 18671
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Since this question has nothing to do with applets, I'm moving it to our JDBC forum...
 
Jim Yingst
Wanderer
Sheriff
Posts: 18671
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Both Statements and ResultSets have a getWarnings() method which, well, gets your warnings. Be aware that if there are multiple warnings, they will be chained to the one SQLWarning you receive. So process in a loop:

Does that help?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic