Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SQL Warnings

Status
Not open for further replies.

fatcodeguy

Programmer
Feb 25, 2002
281
CA
Hi, When I try and connect to my database, get this caught error from SQLException. "JZ00L: Login failed. Examine SQLWarnigns chained to this exception for the reason(s).

How do I examine the warnings? Thanks
 
try looking for a file called sql.log somewhere on your harddrive.
 
Code:
Connection
,
Code:
Statement
, and
Code:
ResultSet
all have a
Code:
getWarnings()
method. Also
Code:
SQLException
is chainable and has a
Code:
getNextException()
method to allow you to retrieve the next exception in the chain.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top